-
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 #107 from hmcts/RIA-7636
RIA-7636 - WA task to review interpreter details when case is auto updated or cancelled
- Loading branch information
Showing
12 changed files
with
1,439 additions
and
11 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
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
181 changes: 181 additions & 0 deletions
181
...rces/scenarios/ia/IA-RIA-7636-case-is-auto-updated-or-cancelled-should-create-a-task.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,181 @@ | ||
{ | ||
"description": "Should create review interpreter details task when case is auto updated or cancelled", | ||
"enabled": true, | ||
"jurisdiction": "IA", | ||
"caseType": "Asylum", | ||
"options": { | ||
"taskRetrievalApi": "task-management-api" | ||
}, | ||
"required": { | ||
"credentials": "IALegalRepresentative", | ||
"ccd": [ | ||
{ | ||
"eventId": "triggerReviewInterpreterBookingTask", | ||
"state": "appealStarted", | ||
"caseData": { | ||
"template": "minimal-appeal-started.json", | ||
"replacements": { | ||
"appealType": "protection", | ||
"homeOfficeDecisionDate": "{$TODAY-14}" | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
"test": { | ||
"request": { | ||
"credentials": "IACaseworker", | ||
"input": { | ||
"eventMessages": [ | ||
{ | ||
"template": "minimal-ccd-event-message.json", | ||
"replacements": { | ||
"EventId": "triggerReviewInterpreterBookingTask", | ||
"AdditionalData": { | ||
"Data": { | ||
"appealType": "protection", | ||
"lastModifiedApplication": { | ||
"type": "Adjourn", | ||
"decision": "Granted" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"expectations": [ | ||
{ | ||
"credentials": "IACaseworker", | ||
"status": 200, | ||
"numberOfTasksAvailable": 1, | ||
"taskTypes": ["reviewInterpreters"], | ||
"taskData": { | ||
"template": "minimal-task-response.json", | ||
"replacements": { | ||
"tasks": [ | ||
{ | ||
"id": "{$VERIFIER-UUID}", | ||
"case_name": "Functional PostDeployment", | ||
"case_id": "{$GENERATED_CASE_ID}", | ||
"case_category": "Protection", | ||
"name": "Review interpreter booking", | ||
"type": "reviewInterpreters", | ||
"task_state": "unassigned", | ||
"task_system": "SELF", | ||
"security_classification": "PUBLIC", | ||
"task_title": "Review interpreter booking", | ||
"created_date": "{$VERIFIER-ZONED_DATETIME_TODAY}", | ||
"due_date": "{$VERIFIER-ZONED_DATETIME_TODAY+0_WORKING_DAYS}", | ||
"execution_type": "Case Management Task", | ||
"jurisdiction": "IA", | ||
"case_type_id": "Asylum", | ||
"region": "1", | ||
"location": "765324", | ||
"location_name": "Taylor House", | ||
"auto_assigned": false, | ||
"warnings": false, | ||
"role_category": "ADMIN", | ||
"warning_list": { | ||
"values": [ | ||
|
||
] | ||
}, | ||
"case_management_category": "Protection", | ||
"work_type_id": "hearing_work", | ||
"permissions": { | ||
"values": [ | ||
"Read", | ||
"Own", | ||
"Claim", | ||
"Manage","Unassign","Assign","Complete", | ||
"Execute", | ||
"Cancel" | ||
] | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"numberOfRolesAvailable": 6, | ||
"roleData": { | ||
"roles":[ | ||
{ | ||
"role_category":"CTSC", | ||
"role_name":"ctsc", | ||
"permissions":[ | ||
"Read", | ||
"Own","Claim", | ||
"Manage","Unassign","Assign","Complete", | ||
"Cancel" | ||
], | ||
"authorisations":[ | ||
] | ||
}, | ||
{ | ||
"role_category":"CTSC", | ||
"role_name":"ctsc-team-leader", | ||
"permissions":[ | ||
"Read", | ||
"Own","Claim", | ||
"Manage","Unassign","Assign","Complete", | ||
"Cancel" | ||
], | ||
"authorisations":[ | ||
] | ||
}, | ||
{ | ||
"role_category":"ADMIN", | ||
"role_name":"hearing-centre-admin", | ||
"permissions":[ | ||
"Read", | ||
"Own","Claim", | ||
"Manage","Unassign","Assign","Complete", | ||
"Cancel" | ||
], | ||
"authorisations":[ | ||
] | ||
}, | ||
{ | ||
"role_category":"LEGAL_OPERATIONS", | ||
"role_name":"senior-tribunal-caseworker", | ||
"permissions":[ | ||
"Read", | ||
"Own", | ||
"Manage","Unassign","Assign","Complete", | ||
"Claim", | ||
"Cancel" | ||
], | ||
"authorisations":[ | ||
] | ||
}, | ||
{ | ||
"role_name": "task-supervisor", | ||
"permissions": [ | ||
"Read", | ||
"Execute","Claim", | ||
"Manage","Unassign","Assign","Complete", | ||
"Cancel" | ||
], | ||
"authorisations": [ | ||
] | ||
}, | ||
{ | ||
"role_category":"LEGAL_OPERATIONS", | ||
"role_name":"tribunal-caseworker", | ||
"permissions":[ | ||
"Read", | ||
"Own","Claim", | ||
"Manage","Unassign","Assign","Complete", | ||
"Cancel" | ||
], | ||
"authorisations":[ | ||
] | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} |
139 changes: 139 additions & 0 deletions
139
...-decisionAndReasonsStarted-with-listCaseHearingCentre-should-create-listTheCase-task.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,139 @@ | ||
{ | ||
"description": "decisionAndReasonsStarted with listCaseHearingCentre should create listTheCase task", | ||
"enabled": true, | ||
"jurisdiction": "IA", | ||
"caseType": "Asylum", | ||
"options": { | ||
"taskRetrievalApi": "task-management-api" | ||
}, | ||
"required": { | ||
"credentials": "IALegalRepresentative", | ||
"ccd": [ | ||
{ | ||
"eventId": "submitAppeal", | ||
"state": "appealStarted", | ||
"caseData": { | ||
"template": "minimal-appeal-started.json", | ||
"replacements": { | ||
"appealType": "refusalOfHumanRights", | ||
"homeOfficeDecisionDate": "{$TODAY-14}" | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
"test": { | ||
"request": { | ||
"credentials": "IACaseworker", | ||
"input": { | ||
"eventMessages": [ | ||
{ | ||
"template": "minimal-ccd-event-message.json", | ||
"replacements": { | ||
"EventId": "decisionAndReasonsStarted", | ||
"NewStateId": "decision", | ||
"AdditionalData": { | ||
"Data": { | ||
"listCaseHearingCentre": "decisionWithoutHearing" | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"expectations": [ | ||
{ | ||
"credentials": "CTSCAdmin", | ||
"status": 200, | ||
"numberOfTasksAvailable": 1, | ||
"taskTypes": ["listTheCase"], | ||
"taskData": { | ||
"template": "minimal-task-response.json", | ||
"replacements": { | ||
"tasks": [ | ||
{ | ||
"id": "{$VERIFIER-UUID}", | ||
"case_name": "Functional PostDeployment", | ||
"case_id": "{$GENERATED_CASE_ID}", | ||
"case_category": "Human rights", | ||
"name": "List the case", | ||
"type": "listTheCase", | ||
"task_state": "unassigned", | ||
"task_system": "SELF", | ||
"security_classification": "PUBLIC", | ||
"task_title": "List the case", | ||
"created_date": "{$VERIFIER-ZONED_DATETIME_TODAY}", | ||
"due_date": "{$VERIFIER-ZONED_DATETIME_TODAY+2_WORKING_DAYS}", | ||
"execution_type": "Case Management Task", | ||
"jurisdiction": "IA", | ||
"case_type_id": "Asylum", | ||
"region": "1", | ||
"location": "765324", | ||
"location_name": "Taylor House", | ||
"auto_assigned": false, | ||
"warnings": false, | ||
"role_category": "CTSC", | ||
"warning_list": { | ||
"values": [ | ||
|
||
] | ||
}, | ||
"case_management_category": "Human rights", | ||
"work_type_id": "hearing_work", | ||
"permissions": { | ||
"values": [ | ||
"Read", | ||
"Own","Claim", | ||
"Manage","Unassign","Assign","Complete", | ||
"Cancel" | ||
] | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"numberOfRolesAvailable": 3, | ||
"roleData": { | ||
"roles":[ | ||
{ | ||
"role_category":"CTSC", | ||
"role_name":"ctsc", | ||
"permissions":[ | ||
"Read", | ||
"Own","Claim", | ||
"Manage","Unassign","Assign","Complete", | ||
"Cancel" | ||
], | ||
"authorisations":[ | ||
] | ||
}, | ||
{ | ||
"role_category":"CTSC", | ||
"role_name":"ctsc-team-leader", | ||
"permissions":[ | ||
"Read", | ||
"Own","Claim", | ||
"Manage","Unassign","Assign","Complete", | ||
"Cancel" | ||
], | ||
"authorisations":[ | ||
] | ||
}, | ||
{ | ||
"role_name":"task-supervisor", | ||
"permissions":[ | ||
"Read", | ||
"Manage","Unassign","Assign","Complete", | ||
"Execute","Claim", | ||
"Cancel" | ||
], | ||
"authorisations":[ | ||
] | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} |
Oops, something went wrong.