You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// SCENARIO - evaluating an operator fails. Meaning, [for example] user has added a numeric value(int/float) in appconfig segment attribute, but in their application they pass the attribute with a boolean value.
@@ -270,17 +278,15 @@ pub mod tests {
270
278
// We are checking here that the parts are present to allow debugging of config by the user:
271
279
272
280
let e = rule.unwrap_err();
273
-
assert!(matches!(
274
-
e,
275
-
Error::EntityEvaluationError(ref v)
276
-
));
277
-
278
-
let msg = e.to_string();
279
-
assert_eq!(msg,"lol");
280
-
assert!(msg.contains("'a2'"));
281
-
assert!(msg.contains("'0'"));
282
-
assert!(msg.contains("'some_segment_id_1'"));
283
-
assert!(msg.contains("'name' 'is' 'heinz'"));
284
-
assert!(msg.contains("Entity attribute has unexpected type: Number"));
0 commit comments