alertmanager/api/v2
George Robinson b676fc4d2e
Add tests for create and then update silences (#3899)
This commit adds a unit test for the postSilencesHandler to
create and then update a silence. It shows that changing the
ID of an existing silence returns 404 Not Found, and removing
the ID of an existing silence re-creates that silence with
a different ID.

Signed-off-by: George Robinson <george.robinson@grafana.com>
2024-06-25 11:58:45 +01:00
..
client API: Allow the Silences API to use their own 400 response (#3610) 2023-11-22 10:25:27 +00:00
models Bump: go-swagger to latest stable 2023-10-19 12:11:29 +01:00
restapi API: Allow the Silences API to use their own 400 response (#3610) 2023-11-22 10:25:27 +00:00
api.go Rename matchers package to matcher singular (#3777) 2024-06-21 16:17:27 +02:00
api_test.go Add tests for create and then update silences (#3899) 2024-06-25 11:58:45 +01:00
compat.go
openapi.yaml API: Allow the Silences API to use their own 400 response (#3610) 2023-11-22 10:25:27 +00:00
testing.go Add tests for create and then update silences (#3899) 2024-06-25 11:58:45 +01:00