generated from hmcts/spring-boot-template
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Tom Elliott
authored and
Tom Elliott
committed
Jun 12, 2023
1 parent
c1e0c18
commit 7fde3b0
Showing
6 changed files
with
233 additions
and
34 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
69 changes: 69 additions & 0 deletions
69
src/functionalTest/resources/features/F-011/S-232.v1_1_rejected.td.json
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,69 @@ | ||
{ | ||
"title": "must receive a Reject response when begin date is in the future for specific access denied role for PRIVATELAW admin", | ||
"_guid_": "S-232.v1_1_rejection", | ||
"_extends_": "F-011_Test_Data_Base", | ||
"specs": [ | ||
"Befta1 - who is the actor for requested role", | ||
"contains specific-access-admin case denied role assignment with begin date in the future" | ||
], | ||
|
||
"request": { | ||
"headers": { | ||
"ServiceAuthorization": "${[scenarioContext][customValues][generateS2STokenForXui]}" | ||
}, | ||
"body": { | ||
"roleRequest": { | ||
"assignerId": "${[scenarioContext][testData][users][invokingUser][id]}", | ||
"reference": "1607103938250138/specific-access-admin/${[scenarioContext][testData][users][invokingUser][id]}", | ||
"process" : "specific-access", | ||
"replaceExisting" : true | ||
}, | ||
"requestedRoles": [ | ||
{ | ||
"_extends_": "RequestedRole", | ||
"roleType" : "CASE", | ||
"grantType" : "BASIC", | ||
"classification" : "RESTRICTED", | ||
"attributes": { | ||
"caseId": "1607103938250138", | ||
"requestedRole":"specific-access-admin" | ||
}, | ||
"roleName": "specific-access-requested", | ||
"roleCategory": "ADMIN", | ||
"actorId": "${[scenarioContext][testData][users][invokingUser][id]}", | ||
"beginTime": "2025-12-01T00:00Z", | ||
"endTime" : "2026-03-02T00:00Z", | ||
"readOnly": true, | ||
"notes" : [{ | ||
"userId": "${[scenarioContext][testData][users][invokingUser][id]}", | ||
"time": "2022-01-01T00:00Z", | ||
"comment": "Need Access to case number 1607103938250138 for a month" | ||
}] | ||
} | ||
] | ||
} | ||
}, | ||
|
||
"expectedResponse": { | ||
"responseCode": 422, | ||
"responseMessage": "Unprocessable Entity", | ||
"headers": { | ||
"Content-Length": "[[ANYTHING_PRESENT]]", | ||
"Content-Type": "application/json" | ||
}, | ||
"body": { | ||
"roleAssignmentResponse": { | ||
"roleRequest": { | ||
"_extends_": "ResponseRoleRequest", | ||
"status": "REJECTED" | ||
}, | ||
"requestedRoles": [ | ||
{ | ||
"_extends_": "ResponseRequestedRole", | ||
"status": "REJECTED" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
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
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
Oops, something went wrong.