Invalid Value for Open Status Parameter
Table of Contents
Purpose #
Validates behavior of the server when an invalid value is sent for the open status param as part of Australian CDR calls. What is an invalid open status param? The Open status parameter is an ENUM with value of OPEN
, CLOSED
and ALL
. For this test we pass an alternate value such as test
. An ENUM is defined as String representing an option from a defined list of values
- All possible values MUST be provided
- Values MUST be in all caps
- Spaces MUST be replaced with under bars ‘_’
- Values MUST be limited to the ASCII character set
The server is expected to respond with an error.
Spec reference #
- Error Codes
- https://consumerdatastandardsaustralia.github.io/standards/#error-codes
- Common Field Types
- https://consumerdatastandardsaustralia.github.io/standards/#common-field-types
Checks #
- Response is returned
- Status code
- Error body
- Error message
Expects #
- Status code of 400
- Response body containing
- error title
Invalid Field
- error code
urn:au-cds:error:cds-all:Field/Invalid
- error detail
a human readable message
- error title
{
errors: [
{
code: 'urn:au-cds:error:cds-all:Field/Invalid',
detail: 'A detailed description',
title: 'Invalid Field'
}
]
}
Messages #
- Endpoint did not respond with errors when a bad open-status was sent
- Returned when the server returned an empty response.
- No Error body returned on error response
- Returned when the server responded with an empty body.
- Unexpected error status, expected 400, got XXX
- Returned when the status was not 400 as expected but instead returned the value specified.
- An error with code: urn:au-cds:error:cds-all:Field/Invalid and title Invalid Field is expected to be returned
- Returned when the response body contains a different error code or title than those expected.