SCIMReferenceCode icon indicating copy to clipboard operation
SCIMReferenceCode copied to clipboard

Issue with test -- misspelled attribute

Open plamenGo opened this issue 5 years ago • 0 comments

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.

plamenGo avatar May 02 '20 02:05 plamenGo