generated from hmcts/spring-boot-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Tests added for PO-647 * updated draft account get steps * updated as per the functional checks * updated the endpoints --------- Co-authored-by: rajanigandra <Rajani Gandra>
- Loading branch information
1 parent
c4e5cc1
commit 7a5bfce
Showing
3 changed files
with
78 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
...opalMode/manualAccountCreation/draftAccounts/PO-647_getDraftAccountsErrorHandling.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
@Opal | ||
Feature: PO-647 get draft accounts error handling | ||
|
||
@PO-647 @cleanUpData | ||
Scenario: Get draft account - CEP2 - Invalid or No Access Token | ||
Given I am testing as the "opal-test@hmcts.net" user | ||
When I attempt to get draft accounts with an invalid token | ||
Then The draft account response returns 401 | ||
|
||
@PO-647 @cleanUpData | ||
Scenario: Get draft account - CEP5 - Unsupported Content Type | ||
Given I am testing as the "opal-test@hmcts.net" user | ||
When I create a draft account with the following details | ||
| business_unit_id | 73 | | ||
| account | draftAccounts/accountJson/account.json | | ||
| account_type | Fine | | ||
| account_status | | | ||
| submitted_by | BUUID | | ||
| timeline_data | | | ||
Then The draft account response returns 201 | ||
And I store the created draft account ID | ||
When I create a draft account with the following details | ||
| business_unit_id | 65 | | ||
| account | draftAccounts/accountJson/adultAccount.json | | ||
| account_type | Fine | | ||
| account_status | | | ||
| submitted_by | BUUID | | ||
| timeline_data | | | ||
Then The draft account response returns 201 | ||
And I store the created draft account ID | ||
|
||
When I attempt to get draft accounts with an unsupported content type | ||
Then The draft account response returns 406 | ||
|
||
@PO-647 @cleanUpData | ||
Scenario: Get draft account - CEP9 - Other Server Error | ||
Given I am testing as the "opal-test@hmcts.net" user | ||
When I get the draft accounts trying to provoke an internal server error | ||
Then The draft account response returns 500 |