@@ -19,33 +19,38 @@ class AuthoriseConfigTest : DescribeSpec(
19
19
response.body().shouldEqualJson(
20
20
"""
21
21
{
22
- "automated-test-client": [
23
- "/v1/persons",
24
- "/v1/persons/.*",
25
- "/v1/persons/.*/images",
26
- "/v1/images/.*",
27
- "/v1/persons/.*/addresses",
28
- "/v1/persons/.*/offences",
29
- "/v1/persons/.*/alerts",
30
- "/v1/persons/.*/sentences",
31
- "/v1/persons/.*/sentences/latest-key-dates-and-adjustments",
32
- "/v1/persons/.*/risks/scores",
33
- "/v1/persons/.*/needs",
34
- "/v1/persons/.*/risks",
35
- "/v1/persons/.*/reported-adjudications",
36
- "/v1/persons/.*/case-notes",
37
- "/v1/persons/.*/person-responsible-officer",
38
- "/v1/epf/person-details/.*/.*",
39
- "/health",
40
- "/health/ping",
41
- "/health/readiness",
42
- "/health/liveness",
43
- "/info"
44
- ],
45
- "config-test": [
46
- "/v1/config/authorisation"
47
- ]
48
- }
22
+ "automated-test-client": [
23
+ "/v1/persons",
24
+ "/v1/persons/\\.*+[^/]*${'$'}",
25
+ "/v1/persons/.*/images",
26
+ "/v1/images/\\.*+[^/]*${'$'}",
27
+ "/v1/persons/.*/addresses",
28
+ "/v1/persons/.*/offences",
29
+ "/v1/persons/.*/alerts",
30
+ "/v1/persons/.*/sentences",
31
+ "/v1/persons/.*/sentences/latest-key-dates-and-adjustments",
32
+ "/v1/persons/.*/risks/scores",
33
+ "/v1/persons/.*/needs",
34
+ "/v1/persons/.*/risks",
35
+ "/v1/persons/.*/reported-adjudications",
36
+ "/v1/persons/.*/adjudications",
37
+ "/v1/persons/.*/licences/conditions",
38
+ "/v1/persons/.*/protected-characteristics",
39
+ "/v1/persons/.*/risks/mappadetail",
40
+ "/v1/persons/.*/risks/categories",
41
+ "/v1/persons/.*/case-notes",
42
+ "/v1/persons/.*/person-responsible-officer",
43
+ "/v1/epf/person-details/.*/\\.*+[^/]*${'$'}",
44
+ "/health",
45
+ "/health/ping",
46
+ "/health/readiness",
47
+ "/health/liveness",
48
+ "/info"
49
+ ],
50
+ "config-test": [
51
+ "/v1/config/authorisation"
52
+ ]
53
+ }
49
54
""".removeWhitespaceAndNewlines(),
50
55
)
51
56
}
0 commit comments