From 00fd10e24f4757078fcde24645da751efc17b63e Mon Sep 17 00:00:00 2001 From: Julius Volz Date: Thu, 20 Nov 2014 18:10:43 +0100 Subject: [PATCH] Update GeneratorURL field name in notification tests. Change-Id: Ic4357999b6ebcf54008869a395e56d12a0ead211 --- notification/notification_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/notification/notification_test.go b/notification/notification_test.go index 5bd856b89..48424f2e5 100644 --- a/notification/notification_test.go +++ b/notification/notification_test.go @@ -66,7 +66,7 @@ func (s *testNotificationScenario) test(i int, t *testing.T) { Value: clientmodel.SampleValue(1.0 / 3.0), ActiveSince: time.Time{}, RuleString: "Test rule string", - GeneratorUrl: "prometheus_url", + GeneratorURL: "prometheus_url", }, } @@ -82,7 +82,7 @@ func TestNotificationHandler(t *testing.T) { // Correct message. summary: "Summary", description: "Description", - message: `[{"Description":"Description","Labels":{"instance":"testinstance"},"Payload":{"ActiveSince":"0001-01-01T00:00:00Z","AlertingRule":"Test rule string","GeneratorUrl":"prometheus_url","Value":"0.333333"},"Summary":"Summary"}]`, + message: `[{"Description":"Description","Labels":{"instance":"testinstance"},"Payload":{"ActiveSince":"0001-01-01T00:00:00Z","AlertingRule":"Test rule string","GeneratorURL":"prometheus_url","Value":"0.333333"},"Summary":"Summary"}]`, }, }