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
2023-09-22 10:36:42 +09:00
committed by GitHub
parent 0e9df7f00f
commit 8fbfba2163
2 changed files with 4 additions and 3 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 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",
},
}