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.
* updated tests for PO-831 removing un-needed annotation * Tests for PO-827 --------- Co-authored-by: rajanigandra <167096333+rajanigandra@users.noreply.github.com>
- Loading branch information
1 parent
cfdd6b6
commit d86cf8f
Showing
2 changed files
with
39 additions
and
1 deletion.
There are no files selected for viewing
38 changes: 38 additions & 0 deletions
38
...opalMode/manualAccountCreation/draftAccounts/PO-827_postDraftAccountAuthorisation.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,38 @@ | ||
@Opal | ||
Feature: PO-827 - Authorisation for Post Draft Account | ||
|
||
@PO-827 @cleanUpData | ||
Scenario: Post Draft Account - Invalid Auth | ||
Given I set an invalid token | ||
When I create a draft account with the following details | ||
| business_unit_id | 73 | | ||
| account | draftAccounts/accountJson/adultAccount.json | | ||
| account_type | Fine | | ||
| account_status | | | ||
| submitted_by | BUUID | | ||
| timeline_data | | | ||
Then The draft account response returns 401 | ||
|
||
@PO-827 @cleanUpData | ||
Scenario: Post Draft Account - No Permission | ||
Given I am testing as the "opal-test-2@hmcts.net" user | ||
When I create a draft account with the following details | ||
| business_unit_id | 73 | | ||
| account | draftAccounts/accountJson/adultAccount.json | | ||
| account_type | Fine | | ||
| account_status | | | ||
| submitted_by | BUUID | | ||
| timeline_data | | | ||
Then The draft account response returns 403 | ||
|
||
@PO-827 @cleanUpData | ||
Scenario: Post Draft Account - Permission in different BU | ||
Given I am testing as the "opal-test@hmcts.net" user | ||
When I create a draft account with the following details | ||
| business_unit_id | 26 | | ||
| account | draftAccounts/accountJson/adultAccount.json | | ||
| account_type | Fine | | ||
| account_status | | | ||
| submitted_by | BUUID | | ||
| timeline_data | | | ||
Then The draft account response returns 403 |
2 changes: 1 addition & 1 deletion
2
...palMode/manualAccountCreation/draftAccounts/PO-831_patchDraftAccountAuthorisation.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
@Opal @CF | ||
@Opal | ||
Feature: PO-831 - Authorisation for patch draft account | ||
|
||
@PO-831 @cleanUpData | ||
|