Skip to content

Commit

Permalink
Po 827 tests (#595)
Browse files Browse the repository at this point in the history
* 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
CadeFaulkner and rajanigandra authored Oct 17, 2024
1 parent cfdd6b6 commit d86cf8f
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
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
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
Expand Down

0 comments on commit d86cf8f

Please sign in to comment.