hurl/integration/tests_failed/assert_status.json
jcamiel 6b7753e174
Check HTTP version and status first, then other asserts.
If HTTP version or status are not correct, we fail the test without running others asserts.
2022-12-10 14:44:23 +01:00

2 lines
488 B
JSON

{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/not_found"},"response":{"status":200,"headers":[{"name":"x-baz","value":"xxx"}],"asserts":[{"query":{"type":"duration"},"predicate":{"type":"less","value":0}},{"query":{"type":"jsonpath","expr":"$.foo"},"predicate":{"type":"start-with","value":"something"}},{"query":{"type":"jsonpath","expr":"$.bar"},"predicate":{"not":true,"type":"exist"}},{"query":{"type":"header","name":"x-bar"},"predicate":{"type":"exist"}}]}}]}