fcsonline/drill

Assign response code for assertions

puls-com-leon-komarovsky opened this issue · 4 comments

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"

Good one! I'll code it today and let you know.

Done!

Wow, that was fast.
Thank you!