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 for 183 * spelling mistake in test name
- Loading branch information
1 parent
789e4ab
commit bbe2c3f
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
src/functionalTest/resources/features/opalMode/PO-183_accountSearchAuthorisation.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,28 @@ | ||
@PO-183 @Opal | ||
Feature: tests for authorisation on the defendant account search endpoint | ||
Scenario: authorised user can make the request | ||
Given I am testing as the "[email protected]" user | ||
When I make a call to the defendant search API using the parameters | ||
| forename | Smart | | ||
| surname | John | | ||
| initials | D | | ||
| dayOfMonth | 23 | | ||
| monthOfYear | 11 | | ||
| year | 1999 | | ||
| addressLine | 10 Brooks Lake | | ||
Then there is one result returned matching | ||
| name | Mr Smart D John | | ||
| dateOfBirth | 1999-11-23 | | ||
| addressLine1 | 10 Brooks Lake | | ||
|
||
Scenario: unauthorised user cannot make the request | ||
Given I am testing as the "[email protected]" user | ||
When I make a call to the defendant search API using the parameters | ||
| forename | Smart | | ||
| surname | John | | ||
| initials | D | | ||
| dayOfMonth | 23 | | ||
| monthOfYear | 11 | | ||
| year | 1999 | | ||
| addressLine | 10 Brooks Lake | | ||
Then the add notes request is forbidden |