hurl/integration/tests_failed/assert_status.hurl
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

16 lines
400 B
Plaintext

# We add various explicit asserts on the body, and
# implicit asserts on the response headers.
# As the status code is not correct, those asserts
# should not be tested (the status code is a "stronger"
# assert than the others).
GET http://localhost:8000/not_found
HTTP 200
x-baz: xxx
[Asserts]
duration < 0
jsonpath "$.foo" startsWith "something"
jsonpath "$.bar" not exists
header "x-bar" exists