Skip to content

Issue with test -- misspelled attribute #23

Open
@plamenGo

Description

@plamenGo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtestIssue with a test

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions