Alerting: Improve validation of query and expressions on rule submit (#53258)
* Improve error messages of server-side expression * move validation of alert queries and a condition to eval package
This commit is contained in:
@@ -77,7 +77,7 @@ func TestServicebuildPipeLine(t *testing.T) {
|
||||
},
|
||||
},
|
||||
},
|
||||
expectErrContains: "self referencing node",
|
||||
expectErrContains: "expression 'A' cannot reference itself. Must be query or another expression",
|
||||
},
|
||||
{
|
||||
name: "missing dependency will error",
|
||||
|
||||
Reference in New Issue
Block a user