Skip to content

Commit

Permalink
COT-779 update to tribunal_caseworker to add work type (#1760)
Browse files Browse the repository at this point in the history
* AM-2936 - Minor space change to trigger re-build

* COT-779 update of functional test to add in decision making work.
  • Loading branch information
anthonydummer authored Feb 15, 2024
1 parent 40119bc commit aae1ab9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/functionalTest/resources/features/F-010/S-101.td.json
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
"primaryLocation": "[[ANYTHING_PRESENT]]",
"jurisdiction": "EMPLOYMENT",
"region": "[[ANYTHING_PRESENT]]",
"workTypes": "hearing_work,routine_work,applications,amendments"
"workTypes": "hearing_work,routine_work,applications,amendments,decision_making_work"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ then
Map<String,JsonNode> attribute = new HashMap<>();
attribute.put("jurisdiction", JacksonUtils.convertObjectIntoJsonNode("EMPLOYMENT"));
attribute.put("primaryLocation", JacksonUtils.convertObjectIntoJsonNode($cap.getPrimaryLocationId()));
attribute.put("workTypes", JacksonUtils.convertObjectIntoJsonNode("hearing_work,routine_work,applications,amendments"));
attribute.put("workTypes", JacksonUtils.convertObjectIntoJsonNode("hearing_work,routine_work,applications,amendments,decision_making_work"));
attribute.put("region", JacksonUtils.convertObjectIntoJsonNode($cap.getRegionId()));

insert(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ void shouldReturnEmploymentCaseWorkerMappings(String roleId, String serviceCode,
if (("senior-tribunal-caseworker").equals(r.getRoleName())) {
assertNull(r.getAttributes().get("workTypes"));
} else if (("tribunal-caseworker").equals(r.getRoleName())) {
assertEquals("hearing_work,routine_work,applications,amendments",
assertEquals("hearing_work,routine_work,applications,amendments,decision_making_work",
r.getAttributes().get("workTypes").asText());
} else if (Objects.equals("specific-access-approver-legal-ops", r.getRoleName())) {
assertEquals("access_requests",
Expand Down

0 comments on commit aae1ab9

Please sign in to comment.