fix(alerting): Set correct email subject to resolved alert (#572)

fix(alerting): Set correct email subject to resolved alert (#566)
This commit is contained in:
lolgopher authored and GitHub committed 2023-09-21 21:36:42 -04:00
1 parent 0e9df7f00f
commit 8fbfba2163
2 files changed
+4 -3

No files matched your search

+1 -1
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 triggered",
ExpectedSubject: "[endpoint-name] Alert resolved",
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",
},
}