Browse Source

Update GeneratorURL field name in notification tests.

Change-Id: Ic4357999b6ebcf54008869a395e56d12a0ead211
changes/00/400/1
Julius Volz 10 years ago
parent
commit
00fd10e24f
  1. 4
      notification/notification_test.go

4
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"}]`,
},
}

Loading…
Cancel
Save