-
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 #152 from hmcts/RIA-8279-print-reheard-appeal-form
RIA-8279 Added FT for WA task "requestNewHearingRequirements"
- Loading branch information
Showing
1 changed file
with
127 additions
and
0 deletions.
There are no files selected for viewing
127 changes: 127 additions & 0 deletions
127
...uestNewHearingRequirements-should-create-printAndSendReheardHearingRequirements-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,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":[ | ||
] | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} |