alerting: propagate alert validation issues to the user instead of just 'invalid alert data' message

This commit is contained in:
Torkel Ödegaard
2018-10-12 23:03:54 -07:00
parent 7051a150cf
commit ec4698fb96
8 changed files with 23 additions and 19 deletions
+1 -1
View File
@@ -258,7 +258,7 @@ func TestAlertRuleExtraction(t *testing.T) {
Convey("Should fail on save", func() {
_, err := extractor.GetAlerts()
So(err, ShouldEqual, m.ErrDashboardContainsInvalidAlertData)
So(err.Error(), ShouldEqual, "Alert validation error: Panel id is not correct, alertName=Influxdb, panelId=1")
})
})
})