You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/main/kotlin/uk/gov/justice/digital/hmpps/personintegrationapi/common/client/request/UpdateBirthPlace.kt
Copy file name to clipboardexpand all lines: src/main/kotlin/uk/gov/justice/digital/hmpps/personintegrationapi/common/client/request/UpdateNationality.kt
Copy file name to clipboardexpand all lines: src/main/kotlin/uk/gov/justice/digital/hmpps/personintegrationapi/corepersonrecord/resource/CorePersonRecordV1Resource.kt
+11-1
Original file line number
Diff line number
Diff line change
@@ -167,6 +167,16 @@ class CorePersonRecordV1Resource(
167
167
description ="Unauthorised, requires a valid Oauth2 token",
Copy file name to clipboardexpand all lines: src/test/kotlin/uk/gov/justice/digital/hmpps/personintegrationapi/corepersonrecord/resource/CorePersonRecordV1ResourceIntTest.kt
+9-3
Original file line number
Diff line number
Diff line change
@@ -177,16 +177,22 @@ class CorePersonRecordV1ResourceIntTest : IntegrationTestBase() {
177
177
innerclassHappyPath {
178
178
179
179
@Test
180
-
fun`can update core person record profile image by prisoner number`() {
Copy file name to clipboardexpand all lines: src/test/kotlin/uk/gov/justice/digital/hmpps/personintegrationapi/corepersonrecord/service/CorePersonRecordServiceTest.kt
Copy file name to clipboardexpand all lines: src/test/kotlin/uk/gov/justice/digital/hmpps/personintegrationapi/integration/wiremock/PrisonApiMockServer.kt
+31
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,26 @@ internal const val PRISON_API_NOT_FOUND_RESPONSE = """
22
22
"developerMessage": "Prisoner not found"
23
23
}
24
24
"""
25
+
internalconstvalPRISON_API_REFERENCE_CODES="""
26
+
[
27
+
{
28
+
"domain": "TEST",
29
+
"code": "ONE",
30
+
"description": "Code One",
31
+
"activeFlag": "Y",
32
+
"listSeq": 99,
33
+
"subCodes": []
34
+
},
35
+
{
36
+
"domain": "TEST",
37
+
"code": "TWO",
38
+
"description": "Code Two",
39
+
"activeFlag": "Y",
40
+
"listSeq": 99,
41
+
"subCodes": []
42
+
}
43
+
]
44
+
"""
25
45
26
46
classPrisonApiMockServer : WireMockServer(8082) {
27
47
funstubHealthPing(status:Int) {
@@ -57,6 +77,16 @@ class PrisonApiMockServer : WireMockServer(8082) {
0 commit comments