Alerting: Update alerting module to 3befd25883e0d17673e5590cc5c5702bbc031b16 (#114062)
* [create-pull-request] automated change * fix module path for alerting notify test receivers --------- Co-authored-by: moustafab <27738648+moustafab@users.noreply.github.com> Co-authored-by: Moustafa Baiou <moustafa.baiou@grafana.com>
This commit is contained in:
co-authored by
moustafab
Moustafa Baiou
parent
7264803016
commit
53c39ccda3
@@ -2023,7 +2023,16 @@ func TestApiContactPointExportSnapshot(t *testing.T) {
|
||||
|
||||
exportRaw, err := receiverExportResponses.ReadFile(p)
|
||||
require.NoError(t, err)
|
||||
require.Equal(t, string(exportRaw), string(actualBody))
|
||||
switch tc.exportType {
|
||||
case "json":
|
||||
require.JSONEq(t, string(exportRaw), string(actualBody))
|
||||
case "yaml":
|
||||
require.YAMLEq(t, string(exportRaw), string(actualBody))
|
||||
case "hcl":
|
||||
require.Equal(t, string(exportRaw), string(actualBody))
|
||||
default:
|
||||
t.Fatalf("unknown export type %q", tc.exportType)
|
||||
}
|
||||
}
|
||||
|
||||
t.Run("contact point export for all known configs", func(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user