Skip to content

Commit

Permalink
adjustments to tests for new data
Browse files Browse the repository at this point in the history
  • Loading branch information
CadeFaulkner authored and RustyHMCTS committed Sep 16, 2024
1 parent 3a22129 commit 04a328b
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Feature: tests for changes to postedBy and postedByAAD
Given I am testing as the "opal-test@hmcts.net" user
When I make a request to the defendant account add notes api with
| associatedRecordId | 500000010 |
| businessUnitId | 71 |
| businessUnitId | 73 |
| noteText | test postedBy and PostedByAAD Opal user1 |
And the add notes response contains
| associatedRecordId | 500000010 |
Expand All @@ -23,7 +23,7 @@ Feature: tests for changes to postedBy and postedByAAD
Given I am testing as the "opal-test-3@hmcts.net" user
When I make a request to the defendant account add notes api with
| associatedRecordId | 500000010 |
| businessUnitId | 60 |
| businessUnitId | 26 |
| noteText | test postedBy and PostedByAAD Opal user3 |
And the add notes response contains
| associatedRecordId | 500000010 |
Expand All @@ -34,7 +34,7 @@ Feature: tests for changes to postedBy and postedByAAD
Given I am testing as the "opal-test-4@hmcts.net" user
When I make a request to the defendant account add notes api with
| associatedRecordId | 500000010 |
| businessUnitId | 43 |
| businessUnitId | 47 |
| noteText | test postedBy and PostedByAAD Opal user4 |
And the add notes response contains
| associatedRecordId | 500000010 |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,26 @@ Feature: tests for notes roles/permissions for accounts dependant on business un
Given I am testing as the "opal-test@hmcts.net" user
When I make a request to the defendant account add notes api with
| associatedRecordId | 500000010 |
| businessUnitId | 71 |
| businessUnitId | 73 |
| noteText | test roles and perms Opal user1 |
And the add notes response contains
| associatedRecordId | 500000010 |
| noteText | test roles and perms Opal user1 |
| postedBy | L073JG |
| postedByUserId | 500000000 |
| businessUnitId | 71 |
| businessUnitId | 73 |


When I make a request to the defendant account add notes api with
| associatedRecordId | 500000010 |
| businessUnitId | 69 |
| businessUnitId | 77 |
| noteText | test roles and perms Opal user1 |
And the add notes response contains
| associatedRecordId | 500000010 |
| noteText | test roles and perms Opal user1 |
| postedBy | L078JG |
| postedBy | L067JG |
| postedByUserId | 500000000 |
| businessUnitId | 69 |
| businessUnitId | 77 |

Scenario: A user cannot add a note to a business unit it is not part of
Given I am testing as the "opal-test@hmcts.net" user
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,14 @@ Feature: Authorisation on endpoints
Given I am testing as the "opal-test@hmcts.net" user
When I make a request to the defendant account add notes api with
| associatedRecordId | 500000010 |
| businessUnitId | 71 |
| businessUnitId | 73 |
| noteText | test roles and perms Opal user1 |
And the add notes response contains
| associatedRecordId | 500000010 |
| noteText | test roles and perms Opal user1 |
| postedBy | L073JG |
| postedByUserId | 500000000 |
| businessUnitId | 71 |
| businessUnitId | 73 |

Given I am testing as the "opal-test-2@hmcts.net" user
When I make a request to the defendant account add notes api with
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Feature: Test the add note endpoint for Opal PO-139
Given I am testing as the "opal-test@hmcts.net" user
When I make a request to the defendant account add notes api with
| associatedRecordId | 500000000 |
| businessUnitId | 71 |
| businessUnitId | 73 |
| noteText | test account note Opal |
Then the add notes response contains
| associatedRecordId | 500000000 |
Expand All @@ -14,7 +14,7 @@ Feature: Test the add note endpoint for Opal PO-139
Given I am testing as the "opal-test@hmcts.net" user
When I make a request to the defendant account add notes api with
| associatedRecordId | 500000001 |
| businessUnitId | 71 |
| businessUnitId | 73 |
| noteText | test account note2 Opal |
And the add notes response contains
| associatedRecordId | 500000001 |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Feature: Major Creditors Api returns Business unit level Data
| majorCreditorId | 15 |
| name | CHESTERFIELD BOROUGH COUNCIL |
| majorCreditorCode | CHBC |
| businessUnitId | 49 |
| businessUnitId | 10 |


@Opal @PO-421
Expand All @@ -19,4 +19,4 @@ Feature: Major Creditors Api returns Business unit level Data
| majorCreditorId | 15 |
| name | CHESTERFIELD BOROUGH COUNCIL |
| majorCreditorCode | CHBC |
| businessUnitId | 49 |
| businessUnitId | 10 |
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Feature: PO-559 get draft account
| account_snapshot.DateOfBirth | 01/01/2000 |
| account_snapshot.AccountType | Fine |
| account_snapshot.SubmittedBy | opal-test@HMCTS.NET |
| account_snapshot.BusinessUnitName | MBEC London |
| account_snapshot.BusinessUnitName | West London |

Then I delete the created draft accounts

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Feature: PO-591 create draft account
| account_snapshot.DateOfBirth | 01/01/2000 |
| account_snapshot.AccountType | Fine |
| account_snapshot.SubmittedBy | opal-test@HMCTS.NET |
| account_snapshot.BusinessUnitName | MBEC London |
| account_snapshot.BusinessUnitName | West London |

Then I delete the created draft accounts

Expand Down

0 comments on commit 04a328b

Please sign in to comment.