-
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 #142 from hmcts/ia-wa-post-deployment-ft-tests-mas…
…ter-remitted RIA-TASK - REMITTED -> Master: DO NOT MERGE
- Loading branch information
Showing
1 changed file
with
151 additions
and
0 deletions.
There are no files selected for viewing
151 changes: 151 additions & 0 deletions
151
...cenarios/ia/IA-RIA-8285-markAppealAsRemitted-should-create-reviewRemittedAppeal-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,151 @@ | ||
{ | ||
"description": "RIA-8285 markAppealAsRemitted event should create reviewRemittedAppeal 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": "protection", | ||
"homeOfficeDecisionDate": "{$TODAY-14}" | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
"test": { | ||
"request": { | ||
"credentials": "AdminOfficer", | ||
"input": { | ||
"eventMessages": [ | ||
{ | ||
"template": "minimal-ccd-event-message.json", | ||
"replacements": { | ||
"EventId": "markAppealAsRemitted", | ||
"AdditionalData": { | ||
"Data": { | ||
"appealType": "protection" | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"expectations": [ | ||
{ | ||
"credentials": "IACaseworker", | ||
"status": 200, | ||
"numberOfTasksAvailable": 1, | ||
"taskTypes": ["reviewRemittedAppeal"], | ||
"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 remitted appeal", | ||
"type": "reviewRemittedAppeal", | ||
"task_state": "unassigned", | ||
"task_system": "SELF", | ||
"security_classification": "PUBLIC", | ||
"task_title": "Review remitted appeal", | ||
"created_date": "{$VERIFIER-ZONED_DATETIME_TODAY}", | ||
"due_date": "{$VERIFIER-ZONED_DATETIME_TODAY+5_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": "LEGAL_OPERATIONS", | ||
"warning_list": { | ||
"values": [ | ||
|
||
] | ||
}, | ||
"case_management_category": "Protection", | ||
"work_type_id": "routine_work", | ||
"permissions": { | ||
"values": [ | ||
"Read", | ||
"Own", | ||
"Claim", | ||
"Manage","Unassign","Assign","Complete", | ||
"Execute", | ||
"Cancel" | ||
] | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"numberOfRolesAvailable": 4, | ||
"roleData": { | ||
"roles": [ | ||
{ | ||
"role_category": "LEGAL_OPERATIONS", | ||
"role_name": "case-manager", | ||
"permissions": [ | ||
"Read", | ||
"Own","Claim", | ||
"Cancel" | ||
], | ||
"authorisations": [ | ||
] | ||
}, | ||
{ | ||
"role_category": "LEGAL_OPERATIONS", | ||
"role_name": "senior-tribunal-caseworker", | ||
"permissions": [ | ||
"Read", | ||
"Own","Claim", | ||
"Manage","Unassign","Assign","Complete", | ||
"Cancel" | ||
], | ||
"authorisations": [ | ||
] | ||
}, | ||
{ | ||
"role_name": "task-supervisor", | ||
"permissions": [ | ||
"Read", | ||
"Manage","Unassign","Assign","Complete", | ||
"Execute","Claim", | ||
"Cancel" | ||
], | ||
"authorisations": [ | ||
] | ||
}, | ||
{ | ||
"role_category": "LEGAL_OPERATIONS", | ||
"role_name": "tribunal-caseworker", | ||
"permissions": [ | ||
"Read", | ||
"Own","Claim", | ||
"Manage","Unassign","Assign","Complete", | ||
"Cancel" | ||
], | ||
"authorisations": [ | ||
] | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} |