Open
Description
Hi, pertaining to this test -- Put a user misspelled attribute.
The RFC states that we should return 400, when the schema is violated:
https://tools.ietf.org/html/rfc7644
| 400 (Bad | GET, POST, | Request is unparsable, |
| Request) | PUT, PATCH, | syntactically incorrect, or |
| | DELETE | violates schema.
However your test expects a 200, and thus fails.
pm.test("Status code is 200", function () {
pm.response.to.have.status(200);
});
pm.test("Body does not contains Addresses", function () {
pm.expect(pm.response.text()).to.not.include("Addresses");
});
Can you shed some light on whether this is accurate or am I misunderstanding something.