Skip to content

Commit

Permalink
Merge pull request #152 from hmcts/RIA-8279-print-reheard-appeal-form
Browse files Browse the repository at this point in the history
RIA-8279 Added FT for WA task "requestNewHearingRequirements"
  • Loading branch information
ThomasKKC authored Jun 25, 2024
2 parents 00729d3 + 33b6447 commit c153617
Showing 1 changed file with 127 additions and 0 deletions.
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":[
]
}
]
}
}
]
}
}

0 comments on commit c153617

Please sign in to comment.