Open juho9000 opened 1 month ago
This PR implements parsing a JSON response from the body and checking the result using a CEL query. Looking for feedback on this.
Sample usage:
modules: http_2xx: prober: http http: fail_if_body_json_not_matches_cel: "body.foo.bar == 'baz'"
If response is {"foo": { "bar": "qux" } } the probe fails. fail_if_body_json_matches_cel is also implemented and should work as expected.
{"foo": { "bar": "qux" } }
@roidelapluie @mem Ping :)
This PR implements parsing a JSON response from the body and checking the result using a CEL query. Looking for feedback on this.
Sample usage:
If response is
{"foo": { "bar": "qux" } }
the probe fails. fail_if_body_json_matches_cel is also implemented and should work as expected.