Skip to content

E2E recovery alert closes correct incident

Tiffany Rea requested to merge trea-e2e-recovery-alert-resolves-incident into master

What does this MR do and why?

Describe in detail what your merge request does and why.

New E2E - Recover alert closes correct incident

  1. Login to gitlab
  2. Create project via API -> visit project

With Http enpoint integration

  1. Go to Settings -> Monitor -> setup HTTP endpoint integration and enable to auto create incident
  2. Send 2 different test alerts by sending in different JSON payloads (payload_to_be_resolved, unresolved_payload)
  3. Append end_time field to payload_to_be_resolved
  4. Send payload_to_be_resolved again
  5. Go to Monitor -> Incidents
  6. Verify
    • Incident with resolve_title does not appear in Open tab, it is in Closed tab instead
    • Incident with unresolve_title is in Open tab, not in Closed tab

With Prometheus integration

  1. Go to Settings -> Monitor -> setup Prometheus integration and enable to auto create incident
  2. Send 2 different test alerts by sending in different JSON payloads (payload_to_be_resolved, unresolved_payload)
  3. Append end_time field to payload_to_be_resolved as well as update status to resolved
  4. Send payload_to_be_resolved again
  5. Go to Monitor -> Incidents
  6. Verify
    • Incident with resolve_title does not appear in Open tab, it is in Closed tab instead
    • Incident with unresolve_title is in Open tab, not in Closed tab

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports

Loading