Alerting: Check if TimeInterval is used in ActiveTimings when deleting (#110691)

* check for active timing in route

* Update test

* Add integration test
This commit is contained in:
Fayzal Ghantiwala
2025-09-08 15:04:40 +01:00
committed by GitHub
parent 7fd9ab9481
commit 22ed5499a2
4 changed files with 60 additions and 13 deletions
@@ -14,10 +14,13 @@
]
],
"mute_time_intervals": [
"test-interval", "persisted-interval"
"test-interval",
"persisted-interval"
],
"active_time_intervals": [
"test-interval", "persisted-interval"
"test-interval",
"persisted-interval",
"test-interval-for-active-time-interval"
]
}
]
@@ -40,6 +43,15 @@
"end_time": "23:59"
}
]
},
{
"name": "test-interval-for-active-time-interval",
"time_intervals": [
{
"start_time": "06:00",
"end_time": "23:59"
}
]
}
],
"receivers": [