mirror of
https://github.com/cozystack/cozystack.git
synced 2026-12-01 12:46:14 +09:00
test(monitoring): check the listed alert still reaches email after the blackhole
The case lists InfoInhibitor in email.alertnames but only asserted the
route order up to the blackhole, so it would still pass if the email
route for a listed name stopped being rendered.
Assisted-by: LLM
Signed-off-by: Yan Bondarenko <202671653+yankawai@users.noreply.github.com>
(cherry picked from commit 00c11c7a74)
Signed-off-by: cozystack-ci[bot] <274107086+cozystack-ci[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
caca8c61c3
commit
f050496011
1 file changed
+6
@@ -43,3 +43,9 @@ tests:
|
||||
matchRegex:
|
||||
path: stringData["alertmanager.yaml"]
|
||||
pattern: '\n routes:\n - receiver: alerta_no_resolve\n repeat_interval: 1m\n matchers:\n - .event="Heartbeat".\n - receiver: blackhole\n matchers:\n - .severity="none".\n'
|
||||
- documentSelector:
|
||||
path: metadata.labels.app
|
||||
value: alertmanager
|
||||
matchRegex:
|
||||
path: stringData["alertmanager.yaml"]
|
||||
pattern: '(?s)\n - receiver: blackhole\n matchers:\n - .severity="none".\n.*\n - receiver: email\n group_wait: 1m\n group_interval: 5m\n repeat_interval: .12h.\n matchers:\n - .alertname=~"\^\(InfoInhibitor\)\$".\n'
|
||||
Reference in new issue
Block a user