Skip to content

E2E recovery alert resolves correct alert && incident

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

What does this MR do and why?

Describe in detail what your merge request does and why.

Recovery alert resolves correct alert

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

With Http enpoint integration

  1. Go to Settings -> Monitor -> setup HTTP endpoint integration
  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. Verify
    • payload_to_be_resolved does not appear in Open tab, it is in Resolved tab instead
    • unresolved_payload is in Open tab, not in Resolved tab

With Prometheus integration

  1. Go to Settings -> Monitor -> setup Prometheus integration
  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. Verify
    • Alert with resolve_title does not appear in Open tab, it is in Resolved tab instead
    • Alert with unresolve_title is in Open tab, not in Resolved tab

Recovery 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.

Edited by Tiffany Rea

Merge request reports

Loading