|
|
|
@ -49,7 +49,7 @@ func TestPushoverNotifier(t *testing.T) { |
|
|
|
|
{ |
|
|
|
|
Alert: model.Alert{ |
|
|
|
|
Labels: model.LabelSet{"__alert_rule_uid__": "rule uid", "alertname": "alert1", "lbl1": "val1"}, |
|
|
|
|
Annotations: model.LabelSet{"ann1": "annv1", "__dashboardUid__": "abcd", "__panelId__": "efgh", "__alertScreenshotToken__": "test-image-1"}, |
|
|
|
|
Annotations: model.LabelSet{"ann1": "annv1", "__dashboardUid__": "abcd", "__panelId__": "efgh", "__alertImageToken__": "test-image-1"}, |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
@ -85,12 +85,12 @@ func TestPushoverNotifier(t *testing.T) { |
|
|
|
|
{ |
|
|
|
|
Alert: model.Alert{ |
|
|
|
|
Labels: model.LabelSet{"__alert_rule_uid__": "rule uid", "alertname": "alert1", "lbl1": "val1"}, |
|
|
|
|
Annotations: model.LabelSet{"ann1": "annv1", "__alertScreenshotToken__": "test-image-1"}, |
|
|
|
|
Annotations: model.LabelSet{"ann1": "annv1", "__alertImageToken__": "test-image-1"}, |
|
|
|
|
}, |
|
|
|
|
}, { |
|
|
|
|
Alert: model.Alert{ |
|
|
|
|
Labels: model.LabelSet{"alertname": "alert1", "lbl1": "val2"}, |
|
|
|
|
Annotations: model.LabelSet{"ann1": "annv2", "__alertScreenshotToken__": "test-image-2"}, |
|
|
|
|
Annotations: model.LabelSet{"ann1": "annv2", "__alertImageToken__": "test-image-2"}, |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|