Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expand
titleTest cases

Test Scenario ID

Test ID

Dynamic Field

Test Name

Expected Response Code

Test Description

ACC_010_001

Ensure that the API successfully retrieves account details for a valid accountId with the status 'Active', accountType 'Retail', and accountSubType 'CurrentAccount'. The test should confirm that the response includes the correct account information and returns a status code of 200, indicating successful retrieval.

AIS_A001

accountToTest : Retail_CurrentAccount_Active

"Happy Path - Succeeds with status-Active, accountType-Retail and accountSubType-CurrentAccount fields are populated for valid accountId as query parameter (accountToTest : Retail_CurrentAccount_Active)"

200

"Returns a 200 if all headers are valid and returns a record for specified accountId including account type 'Retail' and account sub type 'CurrentAccount', for a retail user with status 'Active'"

AIS_A002

accountToTest : Corporate_Savings_Inactive

"Happy Path - Succeeds with status-Inactive, accountType-Corporate and accountSubType-Savings fields are populated for valid accountId as query parameter (accountToTest : Corporate_Savings_Inactive)"

200

"Returns a 200 if all headers are valid and returns a record for specified accountId including account type 'Corporate' and account sub type 'Savings', for a retail user with status 'Inactive'"

AIS_A003

accountToTest : Corporate_CurrentAccount_Active

"Happy Path - Succeeds with status-Active, accountType-Corporate and accountSubType-CurrentAccount fields are populated for valid accountId as query parameter (accountToTest : Corporate_CurrentAccount_Active)"

200

"Returns a 200 if all headers are valid and returns a record for specified accountId including account type 'Corporate' and account sub type 'CurrentAccount', for a retail user with status 'Active'"

AIS_A004

accountToTest : Retail_Savings_Inactive

"Happy Path - Succeeds with status-Inactive, accountType-Retail and accountSubType-Savings fields are populated for valid accountId as query parameter (accountToTest : Retail_Savings_Inactive)"

200

"Returns a 200 if all headers are valid and returns a record for specified accountId including account type 'Retail' and account sub type 'Savings', for a retail user with status 'Inactive'"

AIS_A005

accountToTest: Valid_Invalid_AccountIds

Happy Path - Succeeds with combination of valid and invalid accountIds (accountToTest: Valid_Invalid_AccountIds)

200

Returns a 200 if all headers are valid and returns a record for each valid accountId when both valid and invalid accountIds are specified (accountToTest : Valid_Invalid_AccountId)

AIS_A006

accountToTest: Good_And_Badly_Formatted_AccountIds

Happy Path - Succeeds with mix of valid and invalid accountIds (accountToTest: Good_And_Badly_Formatted_AccountIds)

200

Returns a 200 if all headers are valid and returns a record for each valid accountId when both valid and invalid accountIds are specified (accountToTest : Good_And_Badly_Formatted_AccountIds)

AIS_A007

accountToTest: AccountsWithNoCommas

Happy Path - Succeeds with non-comma-separated accountIds (accountToTest: AccountsWithNoCommas)

200

Returns a 200 if all headers are valid and returns an empty array when non-comma-separated accountIds are specified (accountToTest : AccountsWithNoCommas)

ACC_010_002

Ensure that the API correctly handles the scenario where the accountIds query parameter is missing/invalid returning an appropriate error response.

AIS_A008

accountToTest : NoAccount

Negative Test - Fails if accountIds query parameter is missing (accountToTest : NoAccount)

400

"If accountIds path parameter is missing, the API must return a 400 and an error body"

AIS_A009

accountToTest : Invalid_Single_AccountId

Negative Test - Fails if accountId format is invalid (accountToTest : Invalid_Single_AccountId)

400

"If the accountId format is invalid, the API must return a 400 and an error body"

ACC_010_003

Ensure that the API correctly validates mandatory headers.

AIS_A010

accountToTest : NoAccount

Negative Test - Mandatory field validation - Fail if both accountId and o3-psu-identifier are missing (accountToTest : NoAccount)

400

The operation must fail with a status of 400 if both the accountId path parameter and the o3-psu-identifier header parameter are missing

AIS_A011

accountToTest : SampleAccount

Negative Test - Mandatory header validation - Fail if o3-psu-identifier header is missing (accountToTest : SampleAccount)

400

The operation must fail with a status code 400 and error body if the o3-psu-identifier header is missing with accountId passed as query parameter

AIS_A012

accountToTest : SampleAccount

Negative Test - Mandatory header validation - Fail if o3-api-uri header is missing (accountToTest : SampleAccount)

400

The operation must fail with a status code 400 and error body if the o3-api-uri header is missing with accountId passed as query parameter

AIS_A013

accountToTest : SampleAccount

Negative Test - Mandatory header validation - Fail if o3-api-operation header is missing(accountToTest : SampleAccount)

400

The operation must fail with a status code 400 and error body if the o3-api-operation header is missing with accountId passed as query parameter

AIS_A014

accountToTest : SampleAccount

Negative Test - Mandatory header validation - Fail if o3-aspsp-id header is missing(accountToTest : SampleAccount)

400

The operation must fail with a status code 400 and error body if the o3-aspsp-id header is missing with accountId passed as query parameter

AIS_A015

accountToTest : SampleAccount

Negative Test - Mandatory header validation - Fail if o3-ozone-interaction-id header is missing(accountToTest : SampleAccount)

400

The operation must fail with a status code 400 and error body if the o3-ozone-interaction-id header is missing with accountId passed as query parameter

AIS_A016

accountToTest : SampleAccount

Negative Test - Mandatory header validation - Fail if o3-provider-id header is missing(accountToTest : SampleAccount)

400

The operation must fail with a status code 400 and error body if the o3-provider-id header has an unexpected value with accountId passed as query parameter

AIS_A017

accountToTest : SampleAccount

Negative Test - Mandatory header validation - Fail if o3-caller-org-id header is missing(accountToTest : SampleAccount)

400

The operation must fail with a status code 400 and error body if the o3-caller-org-id header is missing with accountId passed as query parameter

AIS_A018

accountToTest : SampleAccount

Negative Test - Mandatory header validation - Fail if o3-caller-client-id header is missing(accountToTest : SampleAccount)

400

The operation must fail with a status code 400 and error body if the o3-caller-client-id header is missing with accountId passed as query parameter

AIS_A019

accountToTest : SampleAccount

Negative Test - Mandatory header validation - Fail if o3-caller-software-statement-id header is missing(accountToTest : SampleAccount)

400

The operation must fail with a status code 400 and error body if the o3-caller-software-statement-id header is missing with accountId passed as query parameter

AIS_A020

accountToTest : SampleAccount

Negative Test - Mandatory header validation - Fail if o3-consent-id header is missing (accountToTest : SampleAccount)

400

The operation must fail with a status code 400 and error body if the o3-consent-id header is missing with accountId passed as query parameter

AIS_A021

accountToTest : SampleAccount

Negative Test - Fails if o3-aspsp-id has an invalid value(accountToTest : SampleAccount)

400

"If o3-aspsp-id has an invalid value with accountId passed as query parameter, the API must return a 400 and an error body"

AIS_A022

accountToTest : SampleAccount

Negative Test - Fails if o3-psu-identifier is not b64 encoded(accountToTest : SampleAccount)

400

"If o3-psu-identifier is not b64 encoded with accountId passed as query parameter, the API must return a 400 and an error body"

AIS_A023

accountToTest : SampleAccount

Negative Test - Fails if o3-psu-identifier does not evaluate to a json structure (accountToTest : SampleAccount)

400

"If o3-psu-identifier does not evaluate to a json structure with accountId passed as query parameter, the API must return a 400 and an error body"

AIS_A024

accountToTest : SampleAccount

Negative Test - Fails if o3-psu-identifier does not contain userId (accountToTest : SampleAccount)

400

"If o3-psu-identifier does not contain userId with accountId passed as query parameter, the API must return a 400 and an error body"

Back to top

GET /accounts/{accountId}

...

Expand
titleTest Cases

Test Scenario ID

Test ID

Dynamic Field

Test Name

Expected Response Code

Test Description

INS_010_001

Ensure the API returns success response for GET /motor-insurance-policies/{InsurancePolicyId}/customer-payment-details

The tests also also cover consent action and even calls related to the insurance payment details

INS_VAL001

insuranceToTest: event_insurance-AwaitingAuthorization-all-permissions

"POST /validate : Happy Path : Success when consent data is valid, allowing creation of consent in the AwaitingAuthorization state for a insurance data sharing(insuranceToTest: event_insurance-AwaitingAuthorization-all-permissions)"

200

The operation must succeed with a status code 200 if the consent data is valid

INS_AUG002

insuranceToTest: event_insurance-AwaitingAuthorization-all-permissions

POST /augment: Happy Path - Success when the augment endpoint is invoked for an insurance consent in AwaitingAuthorisation state (insuranceToTest: event_insurance-AwaitingAuthorization-all-permissions)

200

TThe operation should succeed with a status code 200 if the response contains the necessary fields to augment the consent

INS_EV003

insuranceToTest: event_insurance-AwaitingAuthorization-all-permissions

POST /event/post: Happy Path - Succeed if the event is successfully sent to notify that the consent is created in the AwaitingAuthorisation state with an empty response body for a insurance data sharing(insuranceToTest: event_insurance-AwaitingAuthorization-all-permissions)

204

Ozone will successfully send an event to notify that the consent is created in the AwaitingAuthorisation state with an empty response body (status code 204) after hitting the /event/post endpoint.

INS_EV004

insuranceToTest: event_insurance-Authorized-all-permissions

POST /event/patch: Happy Path - Succeed if the event is successfully sent to notify that the consent is created in the Authorized state with an empty response body for a insurance data sharing (insuranceToTest: event_insurance-Authorized-all-permissions)

204

Ozone will successfully send an event to notify that the consent is created in the Authorized state with an empty response body (status code 204) after hitting the /event/patch endpoint

INS_005

insuranceToTest: valid_insurancePolicyId-all-permissions

GET /motor-insurance-policies/{InsurancePolicyId}/customer-payment-details : Happy Path : Succeeds if a valid insurance policy ID is provided and returns the correct customer payment details (insuranceToTest: valid_insurancePolicyId-all-permissions)

200

The endpoints returns a status code of 200 and the correct customer payment details when a valid InsurancePolicyId is provided in the request path

INS_010_002

Ensure the API returns error response for GET /motor-insurance-policies/{InsurancePolicyId}/customer-payment-details with an invalid insurancePolicyId

INS_006

insuranceToTest: Invalid-insurancePolicyId-all-permissions

"GET /motor-insurance-policies/{InsurancePolicyId}/customer-payment-details: Negative Test - Returns an error response if a invalid InsurancePolicyId, with a length greater than 128 characters, is provided in the path (insuranceToTest: Invalid-insurancePolicyId-all-permissions)"

400

Returns a status code of 400 with the appropriate error details for an invalid InsuranceId with a length greater than the maximum specified

INS_007

insuranceToTest: no-insurancePolicyId-all-permissions

GET /motor-insurance-policies/{InsurancePolicyId}/customer-payment-details: Negative Test - Returns an error response if a InsurancePolicyId path parameter is missing (insuranceToTest: no-insurancePolicyId-all-permissions)

401

Returns a status code of 401 for a missing insurance policy ID as path parameter

INS_010_003

Ensure API returns error mandatory fields are missing for consent event patch related to customer payment details

INS_EV008

insuranceToTest: event_insurance-AwaitingAuthorization-all-permissions

POST event/patch: Negative Test - Verify that the endpoint throws error when mandatory fields are missing for insurance data sharing (insuranceToTest: event_insurance-AwaitingAuthorization-all-permissions)

400

The endpoint responds with a 400 status code when mandatory fields are missing from the request payload

INS_010_004

Ensure the API returns success response for GET /motor-insurance-policies

INS_009

GET /motor-insurance-policies: Happy Path - Succeeds if the list of insurance policies for a valid o3-consent-id provided in the header

200

"The request returns a status code of 200, and the data object should be an array containing the list of insurance policies corresponding to the provided o3-consent-id in the header"

INS_010_005

Ensure the API returns error response for GET /motor-insurance-policies when page and page-size are missing

INS_010

GET /motor-insurance-policies: Negative Test - Verify the endpoint throws an error if the page and page-size query parameters are missing

400

The request returns a status code of 400 with the appropriate error details when the page and page-size query parameters are missing

INS_010_006

Ensure the API returns success response for GET /motor-insurance-policies/{InsurancePolicyId}

INS_011

insuranceToTest: valid_insurancePolicyId-all-permissions

GET /motor-insurance-policies/{InsurancePolicyId} : Happy Path : Succeeds if a valid insurance policy ID as path parameter is provided (insuranceToTest: valid_insurancePolicyId-all-permissions)

200

The endpoints returns a status code of 200 when a valid InsurancePolicyId is provided in the request path

INS_010_007

Ensure the API returns error response for GET /motor-insurance-policies/{InsurancePolicyId} for an invalid InsurancePolicyId

INS_012

insuranceToTest: Invalid-insurancePolicyId-all-permissions

"GET /motor-insurance-policies/{InsurancePolicyId}: Negative Test - Returns an error response if a invalid InsurancePolicyId, with a length greater than 128 characters, is provided in the path (insuranceToTest: Invalid-insurancePolicyId-all-permissions)"

400

Returns a status code of 400 with the appropriate error details for an invalid InsuranceId with a length greater than the maximum specified

INS_010_008

Ensure the API returns error response for GET /motor-insurance-policies/{InsurancePolicyId} for a missing InsurancePolicyId

INS_013

insuranceToTest: no-insurancePolicyId-all-permissions

GET /motor-insurance-policies/{InsurancePolicyId}: Negative Test - Returns an error response if a InsurancePolicyId path parameter is missing (insuranceToTest: no-insurancePolicyId-all-permissions)

401

Returns a status code of 400 for a missing insurance policy ID as path parameter

INS_010_009

Ensure the API returns error for missing / invalid mandatory field validations

INS_014

GET /motor-insurance-policies/{InsurancePolicyId}/customer-payment-details : Negative Test - Mandatory header validation - Fail if o3-ozone-interaction-id header is missing (insuranceToTest: valid_insurancePolicyId-all-permissions

400

The operation must fail with a status code 400 if the o3-ozone-interaction-id header is missing

INS_015

insuranceToTest: valid_insurancePolicyId-all-permissions

GET /motor-insurance-policies/{InsurancePolicyId}/customer-payment-details : Negative Test - Mandatory header validation - Fail if o3-consent-id header is missing (insuranceToTest: valid_insurancePolicyId-all-permissions)

400

The operation must fail with a status code 400 if the o3-consent-id header is missing

INS_016

insuranceToTest: valid_insurancePolicyId-all-permissions

GET /motor-insurance-policies/{InsurancePolicyId}/customer-payment-details : Negative Test - Mandatory header validation - Fail if o3-caller-interaction-id header is missing (insuranceToTest: valid_insurancePolicyId-all-permissions)

400

TThe operation must fail with a status code 400 if the o3-caller-interaction-id header is missing

INS_017

insuranceToTest: valid_insurancePolicyId-all-permissions

GET /motor-insurance-policies/{InsurancePolicyId}/customer-payment-details : Negative Test - Mandatory header validation - Fail if o3-caller-software-statement-id header is missing (insuranceToTest: valid_insurancePolicyId-all-permissions)

400

The operation must fail with a status code 400 if the o3-caller-software-statement-id header is missing

INS_018

GET /motor-insurance-policies : Negative Test - Mandatory header validation - Fail if o3-ozone-interaction-id header is missing (insuranceToTest: valid_insurancePolicyId-all-permissions

400

The operation must fail with a status code 400 if the o3-ozone-interaction-id header is missing

INS_019

insuranceToTest: valid_insurancePolicyId-all-permissions

GET /motor-insurance-policies : Negative Test - Mandatory header validation - Fail if o3-consent-id header is missing (insuranceToTest: valid_insurancePolicyId-all-permissions)

400

The operation must fail with a status code 400 if the o3-consent-id header is missing

INS_020

insuranceToTest: valid_insurancePolicyId-all-permissions

GET /motor-insurance-policies : Negative Test - Mandatory header validation - Fail if o3-caller-interaction-id header is missing (insuranceToTest: valid_insurancePolicyId-all-permissions)

400

TThe operation must fail with a status code 400 if the o3-caller-interaction-id header is missing

INS_021

insuranceToTest: valid_insurancePolicyId-all-permissions

GET /motor-insurance-policies : Negative Test - Mandatory header validation - Fail if o3-caller-software-statement-id header is missing (insuranceToTest: valid_insurancePolicyId-all-permissions)

400

The operation must fail with a status code 400 if the o3-caller-software-statement-id header is missing

INS_022

GET /motor-insurance-policies/{InsurancePolicyId} : Negative Test - Mandatory header validation - Fail if o3-ozone-interaction-id header is missing (insuranceToTest: valid_insurancePolicyId-all-permissions

400

The operation must fail with a status code 400 if the o3-ozone-interaction-id header is missing

INS_023

insuranceToTest: valid_insurancePolicyId-all-permissions

GET /motor-insurance-policies/{InsurancePolicyId} : Negative Test - Mandatory header validation - Fail if o3-consent-id header is missing (insuranceToTest: valid_insurancePolicyId-all-permissions)

400

The operation must fail with a status code 400 if the o3-consent-id header is missing

INS_024

insuranceToTest: valid_insurancePolicyId-all-permissions

GET /motor-insurance-policies/{InsurancePolicyId} : Negative Test - Mandatory header validation - Fail if o3-caller-interaction-id header is missing (insuranceToTest: valid_insurancePolicyId-all-permissions)

400

TThe operation must fail with a status code 400 if the o3-caller-interaction-id header is missing

INS_025

insuranceToTest: valid_insurancePolicyId-all-permissions

GET /motor-insurance-policies/{InsurancePolicyId} : Negative Test - Mandatory header validation - Fail if o3-caller-software-statement-id header is missing (insuranceToTest: valid_insurancePolicyId-all-permissions)

400

The operation must fail with a status code 400 if the o3-caller-software-statement-id header is missing

Back to top