Skip to content

Commit

Permalink
Merge pull request #86 from hmcts/new-r4-changes-part-2
Browse files Browse the repository at this point in the history
New r4 changes part 2
  • Loading branch information
rajeshthuraiyur authored Jul 4, 2023
2 parents e93b28c + 6912378 commit 2600b4a
Show file tree
Hide file tree
Showing 15 changed files with 1,181 additions and 6 deletions.
5 changes: 4 additions & 1 deletion Jenkinsfile_CNP
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ def secrets = [
secret('system-password', 'WA_SYSTEM_PASSWORD'),

secret('wa-test-adminofficer-username', 'TEST_ADMINOFFICER_USERNAME'),
secret('wa-test-adminofficer-password', 'TEST_ADMINOFFICER_PASSWORD')
secret('wa-test-adminofficer-password', 'TEST_ADMINOFFICER_PASSWORD'),

secret('wa-test-ctsc-admin-username', 'TEST_CTSC_ADMIN_USERNAME'),
secret('wa-test-ctsc-admin-password', 'TEST_CTSC_ADMIN_PASSWORD')
],
's2s-${env}': [
secret('microservicekey-wa-task-management-api', 'S2S_SECRET_TASK_MANAGEMENT_API'),
Expand Down
5 changes: 4 additions & 1 deletion Jenkinsfile_nightly
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ def secrets = [
secret('system-password', 'WA_SYSTEM_PASSWORD'),

secret('wa-test-adminofficer-username', 'TEST_ADMINOFFICER_USERNAME'),
secret('wa-test-adminofficer-password', 'TEST_ADMINOFFICER_PASSWORD')
secret('wa-test-adminofficer-password', 'TEST_ADMINOFFICER_PASSWORD'),

secret('wa-test-ctsc-admin-username', 'TEST_CTSC_ADMIN_USERNAME'),
secret('wa-test-ctsc-admin-password', 'TEST_CTSC_ADMIN_PASSWORD')
],
's2s-${env}': [
secret('microservicekey-wa-task-management-api', 'S2S_SECRET_TASK_MANAGEMENT_API'),
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
{
"description": "requestFeeRemission event should create a reviewRemissionApplication task",
"enabled": true,
"jurisdiction": "IA",
"caseType": "Asylum",
"options": {
"taskRetrievalApi": "task-management-api"
},
"required": {
"credentials": "IALegalRepresentative",
"ccd": [
{
"eventId": "requestFeeRemission",
"state": "appealSubmitted",
"caseData": {
"template": "minimal-appeal-started.json",
"replacements": {
"appealType": "protection",
"remissionType": "noRemission"
}
}
}
]
},
"test": {
"request": {
"credentials": "IALegalRepresentative",
"input": {
"eventMessages": [
{
"template": "minimal-ccd-event-message.json",
"replacements": {
"EventId": "requestFeeRemission",
"AdditionalData": {
"Data": {
"appealType": "protection",
"remissionType": "exceptionalCircumstancesRemission"
}
}
}
}
]
}
},
"expectations": [
{
"credentials": "CTSCAdmin",
"status": 200,
"numberOfTasksAvailable": 1,
"taskTypes": ["reviewRemissionApplication"],
"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 Remission Application",
"type": "reviewRemissionApplication",
"task_state": "unassigned",
"task_system": "SELF",
"security_classification": "PUBLIC",
"task_title": "Review Remission Application",
"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": "Protection",
"work_type_id": "routine_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":[
]
}
]
}
}
]
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
{
"description": "submitAppeal event with remission applicable and post event state appealSubmitted should create a reviewRemissionApplication 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}",
"remissionType": "exceptionalCircumstancesRemission"
}
}
}
]
},
"test": {
"request": {
"credentials": "IALegalRepresentative",
"input": {
"eventMessages": [
{
"template": "minimal-ccd-event-message.json",
"replacements": {
"EventId": "submitAppeal",
"NewStateId": "appealSubmitted",
"AdditionalData": {
"Data": {
"appealType": "protection",
"remissionType": "exceptionalCircumstancesRemission"
}
}
}
}
]
}
},
"expectations": [
{
"credentials": "CTSCAdmin",
"status": 200,
"numberOfTasksAvailable": 1,
"taskTypes": ["reviewRemissionApplication"],
"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 Remission Application",
"type": "reviewRemissionApplication",
"task_state": "unassigned",
"task_system": "SELF",
"security_classification": "PUBLIC",
"task_title": "Review Remission Application",
"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": "Protection",
"work_type_id": "routine_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":[
]
}
]
}
}
]
}
}

Loading

0 comments on commit 2600b4a

Please sign in to comment.