Skip to content

Commit

Permalink
Add fingerprint to expected template test output (prometheus#1968)
Browse files Browse the repository at this point in the history
This was recently added and the test needs to be updated.

Signed-off-by: stuart nelson <[email protected]>
  • Loading branch information
stuartnelson3 authored and simonpasquier committed Jul 23, 2019
1 parent bdd91d2 commit f450720
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions template/template_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,13 +192,15 @@ func TestData(t *testing.T) {
Labels: KV{"severity": "warning", "job": "foo"},
Annotations: KV{"description": "something happened", "runbook": "foo"},
StartsAt: startTime,
Fingerprint: "9266ef3da838ad95",
},
{
Status: "resolved",
Labels: KV{"severity": "critical", "job": "foo"},
Annotations: KV{"description": "something else happened", "runbook": "foo"},
StartsAt: startTime,
EndsAt: endTime,
Fingerprint: "3b15fd163d36582e",
},
},
GroupLabels: KV{"job": "foo"},
Expand Down Expand Up @@ -248,13 +250,15 @@ func TestData(t *testing.T) {
Labels: KV{"severity": "warning", "job": "foo"},
Annotations: KV{"description": "something happened", "runbook": "foo"},
StartsAt: startTime,
Fingerprint: "9266ef3da838ad95",
},
{
Status: "resolved",
Labels: KV{"severity": "critical", "job": "bar"},
Annotations: KV{"description": "something else happened", "runbook": "bar"},
StartsAt: startTime,
EndsAt: endTime,
Fingerprint: "c7e68cb08e3e67f9",
},
},
GroupLabels: KV{},
Expand Down

0 comments on commit f450720

Please sign in to comment.