-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1686 from hmcts/AM-3058_FTA_ET_JudicialOrgRoles
AM-3058: FTA for ET Judicial ORG roles.
- Loading branch information
Showing
13 changed files
with
538 additions
and
0 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
182 changes: 182 additions & 0 deletions
182
src/functionalTest/resources/features/F-010/S-106.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,182 @@ | ||
{ | ||
"_guid_": "S-106", | ||
"title": "must successfully create judicial role mapping for Regional Employment Judge - Salaried appointment", | ||
"_extends_": "F-010_Test_Data_Base", | ||
"specs": [ | ||
"contains the actorIds of the user just published" | ||
], | ||
"method": "POST", | ||
"uri": "{{ROLE_ASSIGNMENT_URL}}/am/role-assignments/query", | ||
"request": { | ||
"headers": { | ||
"sort": "roleName", | ||
"direction": "ASC", | ||
"Content-Type": "application/vnd.uk.gov.hmcts.role-assignment-service.post-assignment-query-request+json;charset=UTF-8;version=2.0" | ||
}, | ||
"body": { | ||
"queryRequests":[ | ||
{ | ||
"actorId": "${[scenarioContext][childContexts][S-106_DeleteDataForRoleAssignments][testData][request][body][userIds]}", | ||
"roleName": ["hmcts-judiciary"], | ||
"attributes": { | ||
"contractType": ["Salaried"] | ||
} | ||
}, | ||
{ | ||
"actorId": "${[scenarioContext][childContexts][S-106_DeleteDataForRoleAssignments][testData][request][body][userIds]}", | ||
"attributes": { | ||
"jurisdiction": ["EMPLOYMENT"] | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"expectedResponse": { | ||
"_extends_": "Common_200_Response", | ||
"body": { | ||
"roleAssignmentResponse": [ | ||
{ | ||
"id" : "[[ANYTHING_PRESENT]]", | ||
"actorIdType": "IDAM", | ||
"actorId": "${[scenarioContext][testData][request][body][queryRequests][1][actorId][0]}", | ||
"roleType": "ORGANISATION", | ||
"roleName": "case-allocator", | ||
"classification": "PUBLIC", | ||
"grantType": "STANDARD", | ||
"roleCategory": "JUDICIAL", | ||
"readOnly": false, | ||
"beginTime" : "[[ANYTHING_PRESENT]]", | ||
"created" : "[[ANYTHING_PRESENT]]", | ||
"attributes": { | ||
"substantive": "N", | ||
"contractType": "Salaried", | ||
"primaryLocation" : "[[ANYTHING_PRESENT]]", | ||
"jurisdiction": "EMPLOYMENT" | ||
}, | ||
"authorisations" : "[[ANYTHING_PRESENT]]" | ||
}, | ||
{ | ||
"id" : "[[ANYTHING_PRESENT]]", | ||
"actorIdType": "IDAM", | ||
"actorId": "${[scenarioContext][testData][request][body][queryRequests][1][actorId][0]}", | ||
"roleType": "ORGANISATION", | ||
"roleName": "hearing-viewer", | ||
"classification": "PUBLIC", | ||
"grantType": "STANDARD", | ||
"roleCategory": "JUDICIAL", | ||
"readOnly": false, | ||
"beginTime" : "[[ANYTHING_PRESENT]]", | ||
"created" : "[[ANYTHING_PRESENT]]", | ||
"attributes": { | ||
"substantive": "N", | ||
"primaryLocation" : "[[ANYTHING_PRESENT]]", | ||
"jurisdiction": "EMPLOYMENT" | ||
}, | ||
"authorisations" : "[[ANYTHING_PRESENT]]" | ||
}, | ||
{ | ||
"id": "[[ANYTHING_PRESENT]]", | ||
"actorIdType": "IDAM", | ||
"actorId": "${[scenarioContext][testData][request][body][queryRequests][1][actorId][0]}", | ||
"roleType": "ORGANISATION", | ||
"roleName": "hmcts-judiciary", | ||
"classification": "PRIVATE", | ||
"grantType": "BASIC", | ||
"roleCategory": "JUDICIAL", | ||
"readOnly": true, | ||
"beginTime" : "[[ANYTHING_PRESENT]]", | ||
"created" : "[[ANYTHING_PRESENT]]", | ||
"attributes": { | ||
"substantive": "N", | ||
"contractType": "Salaried" | ||
} | ||
}, | ||
{ | ||
"id": "[[ANYTHING_PRESENT]]", | ||
"actorIdType": "IDAM", | ||
"actorId": "${[scenarioContext][testData][request][body][queryRequests][1][actorId][0]}", | ||
"roleType": "ORGANISATION", | ||
"roleName": "judge", | ||
"classification": "PUBLIC", | ||
"grantType": "STANDARD", | ||
"roleCategory": "JUDICIAL", | ||
"readOnly": false, | ||
"beginTime": "[[ANYTHING_PRESENT]]", | ||
"created": "[[ANYTHING_PRESENT]]", | ||
"attributes": { | ||
"substantive": "Y", | ||
"contractType": "Salaried", | ||
"primaryLocation": "[[ANYTHING_PRESENT]]", | ||
"jurisdiction": "EMPLOYMENT", | ||
"region": "[[ANYTHING_PRESENT]]", | ||
"workTypes": "hearing_work,decision_making_work,routine_work,applications,amendments" | ||
}, | ||
"authorisations" : "[[ANYTHING_PRESENT]]" | ||
}, | ||
{ | ||
"id": "[[ANYTHING_PRESENT]]", | ||
"actorIdType": "IDAM", | ||
"actorId": "${[scenarioContext][testData][request][body][queryRequests][1][actorId][0]}", | ||
"roleType": "ORGANISATION", | ||
"roleName": "leadership-judge", | ||
"classification": "PUBLIC", | ||
"grantType": "STANDARD", | ||
"roleCategory": "JUDICIAL", | ||
"readOnly": false, | ||
"beginTime": "[[ANYTHING_PRESENT]]", | ||
"created": "[[ANYTHING_PRESENT]]", | ||
"attributes": { | ||
"substantive": "Y", | ||
"contractType": "Salaried", | ||
"primaryLocation": "[[ANYTHING_PRESENT]]", | ||
"jurisdiction": "EMPLOYMENT", | ||
"region": "[[ANYTHING_PRESENT]]" | ||
}, | ||
"authorisations": "[[ANYTHING_PRESENT]]" | ||
}, | ||
{ | ||
"id": "[[ANYTHING_PRESENT]]", | ||
"actorIdType": "IDAM", | ||
"actorId": "${[scenarioContext][testData][request][body][queryRequests][1][actorId][0]}", | ||
"roleType": "ORGANISATION", | ||
"roleName": "specific-access-approver-judiciary", | ||
"classification": "PUBLIC", | ||
"grantType": "STANDARD", | ||
"roleCategory": "JUDICIAL", | ||
"readOnly": false, | ||
"beginTime": "[[ANYTHING_PRESENT]]", | ||
"created": "[[ANYTHING_PRESENT]]", | ||
"attributes": { | ||
"substantive": "N", | ||
"contractType": "Salaried", | ||
"primaryLocation": "[[ANYTHING_PRESENT]]", | ||
"jurisdiction": "EMPLOYMENT", | ||
"region": "[[ANYTHING_PRESENT]]", | ||
"workTypes": "access_requests" | ||
}, | ||
"authorisations": "[[ANYTHING_PRESENT]]" | ||
}, | ||
{ | ||
"id" : "[[ANYTHING_PRESENT]]", | ||
"actorIdType": "IDAM", | ||
"actorId": "${[scenarioContext][testData][request][body][queryRequests][1][actorId][0]}", | ||
"roleType": "ORGANISATION", | ||
"roleName": "task-supervisor", | ||
"classification": "PUBLIC", | ||
"grantType": "STANDARD", | ||
"roleCategory": "JUDICIAL", | ||
"readOnly": false, | ||
"beginTime" : "[[ANYTHING_PRESENT]]", | ||
"created" : "[[ANYTHING_PRESENT]]", | ||
"attributes": { | ||
"substantive": "N", | ||
"contractType": "Salaried", | ||
"primaryLocation" : "[[ANYTHING_PRESENT]]", | ||
"jurisdiction": "EMPLOYMENT" | ||
}, | ||
"authorisations" : "[[ANYTHING_PRESENT]]" | ||
} | ||
] | ||
} | ||
} | ||
} |
37 changes: 37 additions & 0 deletions
37
src/functionalTest/resources/features/F-010/S-106_DeleteDataForRoleAssignments.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,37 @@ | ||
{ | ||
"_guid_": "S-106_DeleteDataForRoleAssignments", | ||
"productName": "Role Assignment Service", | ||
"operationName": "Delete Role Assignments by Process", | ||
"method": "DELETE", | ||
"uri": "{{ROLE_ASSIGNMENT_URL}}/am/role-assignments?process={process}&reference={reference}", | ||
"specs": [ | ||
"to delete existing role assignments corresponding to the test actorId" | ||
], | ||
"users": { | ||
"invokingUser": { | ||
"_extends_": "AmBeftaUser1" | ||
} | ||
}, | ||
"request": { | ||
"headers": { | ||
"Authorization": "[[DEFAULT_AUTO_VALUE]]", | ||
"ServiceAuthorization": "[[DEFAULT_AUTO_VALUE]]", | ||
"X-Correlation-ID": "003352d0-e699-48bc-b6f5-5810411e60af" | ||
}, | ||
"pathVariables": { | ||
"process": "judicial-organisational-role-mapping", | ||
"reference":"${[scenarioContext][testData][request][body][userIds][0]}" | ||
}, | ||
"body": { | ||
"_extends_": "S-106_JRDEmploymentJudgeSalariedUser" | ||
} | ||
}, | ||
|
||
"expectedResponse": { | ||
"headers": { | ||
"Content-Length": "[[ANYTHING_PRESENT]]", | ||
"Content-Type": "application/json" | ||
}, | ||
"_extends_": "Common_204_Response" | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
src/functionalTest/resources/features/F-010/S-106_JRDEmploymentJudgeSalariedUser.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,7 @@ | ||
{ | ||
"_guid_": "S-106_JRDEmploymentJudgeSalariedUser", | ||
|
||
"userIds": [ | ||
"6548dbf7-fde6-4ad0-b7aa-511e39f824fb" | ||
] | ||
} |
10 changes: 10 additions & 0 deletions
10
src/functionalTest/resources/features/F-010/S-106_PushMessageToJRDService.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,10 @@ | ||
{ | ||
"_guid_": "S-106_PushMessageToJRDService", | ||
"_extends_": "PushMessageToJRDProfileProcess", | ||
|
||
"request": { | ||
"body": { | ||
"_extends_": "S-106_JRDEmploymentJudgeSalariedUser" | ||
} | ||
} | ||
} |
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,76 @@ | ||
{ | ||
"_guid_": "S-107", | ||
"title": "must successfully create judicial role mapping for Employment Judge - Fee Paid appointment", | ||
"_extends_": "F-010_Test_Data_Base", | ||
"specs": [ | ||
"contains the actorIds of the user just published" | ||
], | ||
"method": "POST", | ||
"uri": "{{ROLE_ASSIGNMENT_URL}}/am/role-assignments/query", | ||
"request": { | ||
"headers": { | ||
"sort": "roleName", | ||
"direction": "ASC", | ||
"Content-Type": "application/vnd.uk.gov.hmcts.role-assignment-service.post-assignment-query-request+json;charset=UTF-8;version=2.0" | ||
}, | ||
"body": { | ||
"queryRequests":[ | ||
{ | ||
"actorId": "${[scenarioContext][childContexts][S-107_DeleteDataForRoleAssignments][testData][request][body][userIds]}", | ||
"attributes": { | ||
"jurisdiction": ["EMPLOYMENT"] | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"expectedResponse": { | ||
"_extends_": "Common_200_Response", | ||
"body": { | ||
"roleAssignmentResponse": [ | ||
{ | ||
"id": "[[ANYTHING_PRESENT]]", | ||
"actorIdType": "IDAM", | ||
"actorId": "${[scenarioContext][testData][request][body][queryRequests][0][actorId][0]}", | ||
"roleType": "ORGANISATION", | ||
"roleName": "fee-paid-judge", | ||
"classification": "PUBLIC", | ||
"grantType": "STANDARD", | ||
"roleCategory": "JUDICIAL", | ||
"readOnly": false, | ||
"beginTime": "[[ANYTHING_PRESENT]]", | ||
"endTime" : "[[ANYTHING_PRESENT]]", | ||
"created": "[[ANYTHING_PRESENT]]", | ||
"attributes": { | ||
"substantive": "N", | ||
"contractType": "Fee-Paid", | ||
"primaryLocation": "[[ANYTHING_PRESENT]]", | ||
"jurisdiction": "EMPLOYMENT", | ||
"workTypes": "hearing_work,decision_making_work,routine_work,applications,amendments" | ||
}, | ||
"authorisations" : "[[ANYTHING_PRESENT]]" | ||
}, | ||
{ | ||
"id" : "[[ANYTHING_PRESENT]]", | ||
"actorIdType": "IDAM", | ||
"actorId": "${[scenarioContext][testData][request][body][queryRequests][0][actorId][0]}", | ||
"roleType": "ORGANISATION", | ||
"roleName": "hearing-viewer", | ||
"classification": "PUBLIC", | ||
"grantType": "STANDARD", | ||
"roleCategory": "JUDICIAL", | ||
"readOnly": false, | ||
"beginTime" : "[[ANYTHING_PRESENT]]", | ||
"endTime" : "[[ANYTHING_PRESENT]]", | ||
"created" : "[[ANYTHING_PRESENT]]", | ||
"attributes": { | ||
"substantive": "N", | ||
"primaryLocation" : "[[ANYTHING_PRESENT]]", | ||
"jurisdiction": "EMPLOYMENT" | ||
}, | ||
"authorisations" : "[[ANYTHING_PRESENT]]" | ||
} | ||
] | ||
} | ||
} | ||
} |
Oops, something went wrong.