diff --git a/src/functionalTest/resources/scenarios/ia/IA-RIA-8279-requestNewHearingRequirements-should-create-printAndSendReheardHearingRequirements-task.json b/src/functionalTest/resources/scenarios/ia/IA-RIA-8279-requestNewHearingRequirements-should-create-printAndSendReheardHearingRequirements-task.json new file mode 100644 index 0000000..136e5c1 --- /dev/null +++ b/src/functionalTest/resources/scenarios/ia/IA-RIA-8279-requestNewHearingRequirements-should-create-printAndSendReheardHearingRequirements-task.json @@ -0,0 +1,127 @@ +{ + "description": "requestNewHearingRequirements event should create a printAndSendReheardHearingRequirements task", + "enabled": true, + "jurisdiction": "IA", + "caseType": "Asylum", + "options": { + "taskRetrievalApi": "task-management-api" + }, + "required": { + "credentials": "IALegalRepresentative", + "ccd": [ + { + "eventId": "startAppeal", + "state": "appealStarted", + "caseData": { + "template": "minimal-appeal-started.json", + "replacements": { + "appealType": "protection" + } + } + } + ] + }, + "test": { + "request": { + "credentials": "IACaseworker", + "input": { + "eventMessages": [ + { + "template": "minimal-ccd-event-message.json", + "replacements": { + "EventId": "requestNewHearingRequirements", + "NewStateId": "submitHearingRequirements", + "AdditionalData": { + "Data": { + "appealType": "protection", + "isAdmin": true + } + } + } + } + ] + } + }, + "expectations": [ + { + "credentials": "NBCAdmin", + "status": 200, + "numberOfTasksAvailable": 1, + "taskTypes": ["printAndSendReheardHearingRequirements"], + "taskData": { + "template": "minimal-task-response.json", + "replacements": { + "tasks": [ + { + "id": "{$VERIFIER-UUID}", + "case_name": "Functional PostDeployment", + "case_id": "{$GENERATED_CASE_ID}", + "case_category": "Protection", + "name": "Print and send reheard appeal hearing requirements form", + "type": "printAndSendReheardHearingRequirements", + "task_state": "unassigned", + "task_system": "SELF", + "security_classification": "PUBLIC", + "task_title": "Print and send reheard appeal hearing requirements form", + "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": "routine_work", + "permissions": { + "values": [ + "Read", + "Own","Claim", + "Manage","Unassign","Assign","Complete", + "Cancel" + ] + } + } + ] + } + }, + "numberOfRolesAvailable": 2, + "roleData": { + "roles":[ + { + "role_category":"ADMIN", + "role_name":"national-business-centre", + "permissions":[ + "Read", + "Own","Claim", + "Manage","Unassign","Assign","Complete", + "Cancel" + ], + "authorisations":[ + ] + }, + { + "role_name":"task-supervisor", + "permissions":[ + "Read", + "Manage","Unassign","Assign","Complete", + "Execute","Claim", + "Cancel" + ], + "authorisations":[ + ] + } + ] + } + } + ] + } +}