fix(alerting): use same email subject for trigger and resolution alert (#465)

This commit is contained in:
Sergey Khokhlov
2023-05-06 17:09:05 +03:00
committed by GitHub
parent 669877baf4
commit 74cde8ae8d
2 changed files with 3 additions and 4 deletions

View File

@ -83,7 +83,7 @@ func TestAlertProvider_buildRequestBody(t *testing.T) {
Provider: AlertProvider{},
Alert: alert.Alert{Description: &secondDescription, SuccessThreshold: 5, FailureThreshold: 3},
Resolved: true,
ExpectedSubject: "[endpoint-name] Alert resolved",
ExpectedSubject: "[endpoint-name] Alert triggered",
ExpectedBody: "An alert for endpoint-name has been resolved after passing successfully 5 time(s) in a row\n\nAlert description: description-2\n\nCondition results:\n✅ [CONNECTED] == true\n✅ [STATUS] == 200\n",
},
}