Assign response code for assertions
puls-com-leon-komarovsky opened this issue · 4 comments
puls-com-leon-komarovsky commented
It would be great to be able to assert response codes in assertions, the same way as it is currently done with headers and body.
For example
plan:
- name: Healthcheck
request:
url: /healthcheck
assign: healthcheck
- name: Healtchcheck status assertion
assert:
key: "healthcheck.response_code"
value: "200"
fcsonline commented
Good one! I'll code it today and let you know.
fcsonline commented
Done!
puls-com-leon-komarovsky commented
Wow, that was fast.
Thank you!