Skip to content

Commit

Permalink
fixed TestIntegrationNotificationChannels. (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan-Eng authored Dec 17, 2024
1 parent 1ffb02e commit 0d9cfc4
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions pkg/tests/api/alerting/api_notification_channel_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2505,6 +2505,14 @@ var expEmailNotifications = []*notifications.SendEmailCommandSync{
PanelURL: "",
Values: map[string]float64{"A": 1},
ValueString: "[ var='A' labels={} value=1 ]",
EvalValues: []alertingTemplates.EvalValue{
{
Var: "A",
Metric: "",
Labels: "{}",
Value: "1",
},
},
},
},
"GroupLabels": template.KV{"alertname": "EmailAlert"},
Expand Down Expand Up @@ -2665,6 +2673,14 @@ var expNonEmailNotifications = map[string][]string{
"startsAt": "%s",
"values": {"A": 1},
"valueString": "[ var='A' labels={} value=1 ]",
"evalValues": [
{
"Var": "A",
"Metric": "",
"Labels": "{}",
"Value": "1"
}
],
"endsAt": "0001-01-01T00:00:00Z",
"generatorURL": "http://localhost:3000/alerting/grafana/UID_WebhookAlert/view",
"fingerprint": "15c59b0a380bd9f1",
Expand Down

0 comments on commit 0d9cfc4

Please sign in to comment.