Skip to main content
  1. Data-holder-testings/
  2. Validations/

Non-Integer Min Version

Purpose #

Validates behavior of the server when a non-integer min-version is sent as part of Australian CDR calls.

Spec reference #

Error Codes
https://consumerdatastandardsaustralia.github.io/standards/#error-codes
Http Headers
https://consumerdatastandardsaustralia.github.io/standards/#http-headers

Checks #

  1. Response is returned
  2. Status code
  3. Error body
  4. Error message

Expects #

  1. Status code of 400
  2. Response body containing
    • error title Invalid Version
    • error code urn:au-cds:error:cds-all:Header/InvalidVersion
    • error detail a human readable message
{
    errors: [
        {
            code: 'urn:au-cds:error:cds-all:Header/InvalidVersion',
            detail: 'A detailed description',
            title: 'Invalid Version'
        }
    ]
}

Messages #

Endpoint did not respond with errors when a bad x-v 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:Header/InvalidVersion and title Invalid Version is expected to be returned
Returned when the response body contains a different error code or title than those expected.