E2E recovery alert closes correct incident
What does this MR do and why?
Describe in detail what your merge request does and why.
New E2E - Recover 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.