E2E recovery alert resolves correct alert && incident
What does this MR do and why?
Describe in detail what your merge request does and why.
Recovery alert resolves correct alert
- Login to gitlab
- Create project via API -> visit project
With Http enpoint integration
- Go to Settings -> Monitor -> setup HTTP endpoint integration
- Send 2 different test alerts by sending in different JSON payloads (payload_to_be_resolved, unresolved_payload)
- Append
end_time
field to payload_to_be_resolved - Send payload_to_be_resolved again
- 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
- Go to Settings -> Monitor -> setup Prometheus integration
- Send 2 different test alerts by sending in different JSON payloads (payload_to_be_resolved, unresolved_payload)
- Append
end_time
field to payload_to_be_resolved as well as updatestatus
toresolved
- Send payload_to_be_resolved again
- 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
- Login to gitlab
- Create project via API -> visit project
With Http enpoint integration
- Go to Settings -> Monitor -> setup HTTP endpoint integration and enable to auto create incident
- Send 2 different test alerts by sending in different JSON payloads (payload_to_be_resolved, unresolved_payload)
- Append
end_time
field to payload_to_be_resolved - Send payload_to_be_resolved again
- Go to Monitor -> Incidents
- 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
- Go to Settings -> Monitor -> setup Prometheus integration and enable to auto create incident
- Send 2 different test alerts by sending in different JSON payloads (payload_to_be_resolved, unresolved_payload)
- Append
end_time
field to payload_to_be_resolved as well as updatestatus
toresolved
- Send payload_to_be_resolved again
- Go to Monitor -> Incidents
- 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.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Tiffany Rea