Unmarshall the service name

This commit is contained in:
Alex Ellis
2017-01-22 11:13:45 +00:00
parent 158c412251
commit cf2317696d
2 changed files with 24 additions and 3 deletions

View File

@ -26,4 +26,14 @@ func TestUnmarshallAlert(t *testing.T) {
if (len(alert.Receiver)) == 0 {
t.Fatal("No status read")
}
if (len(alert.Alerts)) == 0 {
t.Fatal("No alerts read")
}
if (len(alert.Alerts[0].Labels.AlertName)) == 0 {
t.Fatal("No alerts name")
}
if (len(alert.Alerts[0].Labels.FunctionName)) == 0 {
t.Fatal("No function name read")
}
}