apiaryio / dredd

Language-agnostic HTTP API Testing Tool
https://dredd.org
MIT License
4.18k stars 279 forks source link

Mismatched response codes not producing errors #24

Closed awinder closed 10 years ago

awinder commented 10 years ago

If I have an api endpoint documented with api blueprint and expect a response code of 200, and when dredd runs against that endpoint it produces a non-200 response code, dredd still marks the test as passing. Right now I can get around this through checking the response body, which does differ, but it would be nice if the response code was strictly checked as well.

ecordell commented 10 years ago

According to this list, HTTP status checking is planned but not yet implemented.

netmilk commented 10 years ago

Thank you very much for the report. It should be fixed/solved asap in the Gavel project and tested in Dredd to avoid regression.

netmilk commented 10 years ago

Hi, please try to upgrade dredd version ~> 0.3.0. It should work as you expect. I created a example and as you can see in Travis-CI it's failing. Adam