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.
Merge pull request #150 from hmcts/RET-5135
RET-5135: MultiplesReviewReferralLegalOps
- Loading branch information
Showing
6 changed files
with
564 additions
and
1 deletion.
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
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
279 changes: 279 additions & 0 deletions
279
...yment/multiples/ET-RET-5135-ReviewReferralLegalOpsMultiple-IsUrgent-shouldCreateTask.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,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": [] | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
Oops, something went wrong.