-
Notifications
You must be signed in to change notification settings - Fork 1
Definition Tests
Omar del Valle edited this page Jun 1, 2019
·
11 revisions
Becouse API-First definition, is better with test
Testing endpoints definition
→ post: /pet
√ Should be contain (400) response.
√ Should be contain (200,201,202,204,206) response.
√ Should be contain produces (content-type) definition.
√ Security definition, should be contain (401) response.
→ get: /pet/findByStatus
√ Should be contain (200,202,206) response.
√ Parameters required in PATH or QUERY, should be contain not found (404) response.
√ Parameter distint of type string, in PATH or QUERY, should be contain bad request (400) response.
√ Parameters required in QUERY, maybe should be change to 'in: path' definition.
√ Enum parameters in PATH or QUERY, should be contain bad request (400) response.
√ Query string parameter [status] should be lower case.
√ Should be contain consumes (accept) definition.
√ Security definition, should be contain (401) response.
→ get: /pet/{petId}
√ Should be contain (200,202,206) response.
√ Parameters required in PATH or QUERY, should be contain not found (404) response.
√ Parameter distint of type string, in PATH or QUERY, should be contain bad request (400) response.
√ Should be contain consumes (accept) definition.
√ Security definition, should be contain (401) response.
→ put: /pet/{petId}
√ Should be contain (400) response.
√ Should be contain (200,202,204,206) response.
√ Parameters required in PATH or QUERY, should be contain not found (404) response.
√ Parameter distint of type string, in PATH or QUERY, should be contain bad request (400) response.
√ Should be contain produces (content-type) definition.
√ Security definition, should be contain (401) response.
→ delete: /pet/{petId}
√ Should be contain (200,202,204) response.
√ Parameters required in PATH or QUERY, should be contain not found (404) response.
√ Parameter distint of type string, in PATH or QUERY, should be contain bad request (400) response.
√ Should be contain produces (content-type) definition.
√ Security definition, should be contain (401) response.