Skip to content

Commit

Permalink
COT-905 added in 3 new roles (#2371)
Browse files Browse the repository at this point in the history
* COT-905 added in 3 new roles

* COT-905 updated integration test

---------

Co-authored-by: mikebrownccd <104495891+mikebrownccd@users.noreply.github.com>
  • Loading branch information
anthonydummer and mikebrownccd authored Dec 12, 2024
1 parent ac7dabc commit 173d9f5
Show file tree
Hide file tree
Showing 3 changed files with 94 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ public void shouldGetListOfRoles() throws Exception {
List<RoleConfigRole> roleConfigRoles = mapper.readValue(response, new TypeReference<>() {
});

assertEquals(194, roleConfigRoles.size());
assertEquals(197, roleConfigRoles.size());
for (RoleConfigRole roleConfigRole : roleConfigRoles) {
assertNotNull(roleConfigRole.getName());
assertNotNull(roleConfigRole.getCategory());
Expand Down
90 changes: 90 additions & 0 deletions src/main/resources/roleconfig/role_civil.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,95 @@
}
}
]
},
{
"name": "district-judge",
"label": "District Judge",
"description": "District Judge role for judicial users",
"category": "JUDICIAL",
"substantive": true,
"type": "ORGANISATION",
"patterns": [
{
"roleType": {
"mandatory": true,
"values": ["ORGANISATION"]
},
"grantType": {
"mandatory": true,
"values": ["STANDARD"]
},
"classification": {
"mandatory": true,
"values": ["PUBLIC"]
},
"attributes": {
"jurisdiction": {
"mandatory": true,
"values": ["CIVIL"]
}
}
}
]
},
{
"name": "deputy-district-judge",
"label": "Deputy District Judge",
"description": "Deputy District Judge role for judicial users",
"category": "JUDICIAL",
"substantive": true,
"type": "ORGANISATION",
"patterns": [
{
"roleType": {
"mandatory": true,
"values": ["ORGANISATION"]
},
"grantType": {
"mandatory": true,
"values": ["STANDARD"]
},
"classification": {
"mandatory": true,
"values": ["PUBLIC"]
},
"attributes": {
"jurisdiction": {
"mandatory": true,
"values": ["CIVIL"]
}
}
}
]
},
{
"name": "recorder",
"label": "Recorder",
"description": "Recorder role for judicial users",
"category": "JUDICIAL",
"substantive": true,
"type": "ORGANISATION",
"patterns": [
{
"roleType": {
"mandatory": true,
"values": ["ORGANISATION"]
},
"grantType": {
"mandatory": true,
"values": ["STANDARD"]
},
"classification": {
"mandatory": true,
"values": ["PUBLIC"]
},
"attributes": {
"jurisdiction": {
"mandatory": true,
"values": ["CIVIL"]
}
}
}
]
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,9 @@ void shouldRejectOrgValidation_MissingAttributeJurisdiction() {
"ctsc,CTSC,STANDARD,north-east,SSCS,UK,ORGANISATION,Y,Null,PUBLIC",
"ctsc-team-leader,CTSC,STANDARD,north-east,SSCS,UK,ORGANISATION,Y,Null,PUBLIC",
"nbc-team-leader,ADMIN,STANDARD,north-east,CIVIL,UK,ORGANISATION,Y,Null,PUBLIC",
"district-judge,JUDICIAL,STANDARD,north-east,CIVIL,UK,ORGANISATION,Y,Null,PUBLIC",
"deputy-district-judge,JUDICIAL,STANDARD,north-east,CIVIL,UK,ORGANISATION,Y,Null,PUBLIC",
"recorder,JUDICIAL,STANDARD,north-east,CIVIL,UK,ORGANISATION,Y,Null,PUBLIC",
"national-business-centre,ADMIN,STANDARD,north-east,CIVIL,UK,ORGANISATION,Y,Null,PUBLIC",
"hearing-centre-team-leader,ADMIN,STANDARD,north-east,CIVIL,UK,ORGANISATION,Y,Null,PUBLIC",
"hearing-centre-admin,ADMIN,STANDARD,north-east,CIVIL,UK,ORGANISATION,Y,Null,PUBLIC",
Expand Down

0 comments on commit 173d9f5

Please sign in to comment.