feat(platform): add alert policy escalation
This commit is contained in:
@@ -879,6 +879,10 @@ func TestHandlerQualityNotificationPlan(t *testing.T) {
|
||||
if len(body.Data.Rules) == 0 || len(body.Data.Policies) == 0 || len(body.Data.PriorityIssues) == 0 {
|
||||
t.Fatalf("notification plan should include rules, policies and priority issues: %+v", body.Data)
|
||||
}
|
||||
firstPolicy := body.Data.Policies[0]
|
||||
if firstPolicy.EscalationMinutes <= 0 || firstPolicy.AcceptanceCriteria == "" {
|
||||
t.Fatalf("notification policies should expose escalation minutes and acceptance criteria: %+v", firstPolicy)
|
||||
}
|
||||
first := body.Data.PriorityIssues[0]
|
||||
if first.Priority != "P0" || first.ActionLabel == "" || first.SLA == "" || first.VehicleLabel == "" {
|
||||
t.Fatalf("priority issue should be enriched for notification: %+v", first)
|
||||
|
||||
Reference in New Issue
Block a user