Skip to content

Commit

Permalink
Merge pull request #150 from hmcts/RET-5135
Browse files Browse the repository at this point in the history
RET-5135: MultiplesReviewReferralLegalOps
  • Loading branch information
fergusoshea committed Jun 7, 2024
2 parents b8e3875 + cc4d332 commit 74307a2
Show file tree
Hide file tree
Showing 6 changed files with 564 additions and 1 deletion.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ More info on ACR tasks can be read here: https://docs.microsoft.com/en-us/azure/
./gradlew clean functional --tests ScenarioRunnerTest --info -Dscenario=ET-RET-2501
```

### or in a certain folder:
```bash
./gradlew clean functional --tests ScenarioRunnerTest --info -Dscenario=multiples/
```

## Tips for onboarding teams
if you are onboarding into Task Management, you may clone this repository and customize the following items to setup
your own post deployment tests:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
"referralCollection": [
{
"value": {
"referralNumber": "1",
"referCaseTo": "Admin",
"referralSubject": "ET1",
"referralReplyCollection": [
Expand All @@ -99,6 +100,7 @@
},
{
"value": {
"referralNumber": "2",
"referCaseTo": "Admin",
"referralSubject": "ET3/ECC",
"referralReplyCollection": [
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,279 @@
{
"description": "ET createMultipleReferral should create an urgent ReviewReferralLegalOpsMultiple task",
"enabled": true,
"jurisdiction": "EMPLOYMENT",
"caseType": "ET_EnglandWales_Multiple",
"options": {
"taskRetrievalApi": "task-management-api"
},
"required": {
"credentials": {
"key": "WaSystemUser"
},
"ccd": [
{
"eventId": "createMultiple",
"state": "Open",
"caseData": {
"template": "minimal-multiple-case.json",
"replacements": {
"referralCollection": [
{
"value": {
"referralNumber": "1",
"isUrgent": "No"
}
},
{
"value": {
"referralNumber": "2",
"isUrgent": "Yes"
}
}
]
}
}
}
]
},
"tests": [
{
"request": {
"credentials": {
"key": "WaSystemUser"
},
"input": {
"eventMessages": [
{
"destination": "RestEndpoint",
"template": "ccd-event-message.json",
"replacements": {
"EventId": "createReferral",
"NewStateId": "Open",
"CaseTypeId": "ET_EnglandWales_Multiple",
"AdditionalData": {
"Data": {
"referralCollection": [
{
"value": {
"referralNumber": "1",
"referCaseTo": "Admin",
"referralSubject": "ET1",
"isUrgent": "No"
}
},
{
"value": {
"referralNumber": "2",
"referCaseTo": "Legal officer",
"referralSubject": "Amend claim",
"isUrgent": "Yes"
}
}
]
}
}
}
}
]
}
},
"expectations": [
{
"credentials": {
"key": "WaSystemUser"
},
"status": 200,
"numberOfTasksAvailable": 1,
"taskData": {
"template": "task-response.json",
"replacements": {
"tasks": [
{
"test_meta_data": [
{
"key": "role_data_reference",
"value": "first_role_data",
"description": "role assignment verification object"
}
],
"id": "{$VERIFIER-UUID}",
"name": "Review Multiples Referral #2 - Amend claim",
"type": "ReviewReferralLegalOpsMultiple",
"task_state": "unassigned",
"task_system": "SELF",
"security_classification": "PUBLIC",
"task_title": "Review Multiples Referral #2 - Amend claim",
"created_date": "{$VERIFIER-ZONED_DATETIME_TODAY}",
"due_date": "{$VERIFIER-ZONED_DATETIME_TODAY+1_WORKING_DAYS}",
"location_name": "Bristol",
"location": "819890",
"execution_type": "Case Management Task",
"jurisdiction": "EMPLOYMENT",
"region": "6",
"case_type_id": "ET_EnglandWales_Multiple",
"case_id": "{$GENERATED_CASE_ID}",
"case_category": "Employment",
"case_name": "Post Deploy Functional Test",
"auto_assigned": false,
"warnings": false,
"warning_list": {
"values": []
},
"case_management_category": "Employment",
"work_type_id": "routine_work",
"work_type_label": "Routine work",
"permissions": {
"values": [
"Read",
"Own",
"Manage",
"Cancel",
"Complete",
"CompleteOwn",
"CancelOwn",
"Claim",
"Unclaim",
"Assign",
"Unassign",
"UnclaimAssign"
]
},
"description": "[Review the Referral](/cases/case-details/${[CASE_REFERENCE]}#Referrals)",
"role_category":"LEGAL_OPERATIONS",
"next_hearing_date": null,
"minor_priority": 100,
"major_priority": 1000,
"priority_date": "{$VERIFIER-ZONED_DATETIME_TODAY+1_WORKING_DAYS}"
}
]
}
},
"roleData": [
{
"key": "first_role_data",
"numberOfRolesAvailable": 8,
"roles": [
{
"role_category": "LEGAL_OPERATIONS",
"role_name": "allocated-tribunal-caseworker",
"permissions": [
"Read",
"Own",
"Manage",
"CompleteOwn",
"CancelOwn",
"Claim",
"Unclaim",
"UnclaimAssign"
],
"authorisations": []
},
{
"role_category": "JUDICIAL",
"role_name": "hearing-judge",
"permissions": [
"Read",
"Own",
"Manage",
"CompleteOwn",
"CancelOwn",
"Claim",
"Unclaim",
"UnclaimAssign"
],
"authorisations": []
},
{
"role_category": "JUDICIAL",
"role_name": "judge",
"permissions": [
"Read",
"Own",
"Manage",
"CompleteOwn",
"CancelOwn",
"Claim",
"Unclaim",
"UnclaimAssign"
],
"authorisations": []
},
{
"role_category": "JUDICIAL",
"role_name": "lead-judge",
"permissions": [
"Read",
"Own",
"Manage",
"CompleteOwn",
"CancelOwn",
"Claim",
"Unclaim",
"UnclaimAssign"
],
"authorisations": []
},
{
"role_category": "JUDICIAL",
"role_name": "leadership-judge",
"permissions": [
"Read",
"Manage",
"Execute",
"Cancel",
"Complete",
"Claim",
"Assign",
"Unassign"
],
"authorisations": []
},
{
"role_category": "LEGAL_OPERATIONS",
"role_name": "senior-tribunal-caseworker",
"permissions": [
"Cancel",
"Complete",
"Assign",
"Unassign"
],
"authorisations": []
},
{
"role_name": "task-supervisor",
"permissions": [
"Read",
"Manage",
"Cancel",
"Complete",
"Claim",
"Unclaim",
"Assign",
"Unassign"
],
"authorisations": []
},
{
"role_category": "LEGAL_OPERATIONS",
"role_name": "tribunal-caseworker",
"permissions": [
"Read",
"Own",
"Manage",
"CompleteOwn",
"CancelOwn",
"Claim",
"Unclaim",
"UnclaimAssign"
],
"authorisations": []
}
]
}
]
}
]
}
]
}
Loading

0 comments on commit 74307a2

Please sign in to comment.