Skip to content

Commit 815de5c

Browse files
author
popey2700
committed
Fix smoketests
1 parent 8c88e0a commit 815de5c

File tree

1 file changed

+65
-63
lines changed
  • src/test/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/smoke/person

1 file changed

+65
-63
lines changed

src/test/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/smoke/person/PersonSmokeTest.kt

+65-63
Original file line numberDiff line numberDiff line change
@@ -44,70 +44,72 @@ class PersonSmokeTest : DescribeSpec(
4444

4545
response.body().shouldBe(
4646
"""
47-
{
48-
"data":{
49-
"prisonerOffenderSearch":{
50-
"firstName":"Robert",
51-
"lastName":"Larsen",
52-
"middleName":"John James",
53-
"dateOfBirth":"1975-04-02",
54-
"gender":"Female",
55-
"ethnicity":"White: Eng./Welsh/Scot./N.Irish/British",
56-
"aliases":[
57-
{
58-
"firstName":"Robert",
59-
"lastName":"Lorsen",
60-
"middleName":"Trevor",
61-
"dateOfBirth":"1975-04-02",
62-
"gender":"Male",
63-
"ethnicity":"White : Irish"
64-
}
65-
],
66-
"identifiers":{
67-
"nomisNumber":"A1234AA",
68-
"croNumber":"29906/12J",
69-
"deliusCrn":null
70-
},
71-
"pncId":"12/394773H",
72-
"hmppsId":null,
73-
"contactDetails":null
74-
},
75-
"probationOffenderSearch":{
76-
"firstName":"string",
77-
"lastName":"string",
78-
"middleName":"string",
79-
"dateOfBirth":"2019-08-24",
80-
"gender":"string",
81-
"ethnicity":"string",
82-
"aliases":[
83-
{
84-
"firstName":"string",
85-
"lastName":"string",
86-
"middleName":"string",
87-
"dateOfBirth":"2019-08-24",
88-
"gender":"string",
89-
"ethnicity":null
47+
{
48+
"data": {
49+
"prisonerOffenderSearch": {
50+
"firstName": "Robert",
51+
"lastName": "Larsen",
52+
"middleName": "John James",
53+
"dateOfBirth": "1975-04-02",
54+
"gender": "Female",
55+
"ethnicity": "White: Eng./Welsh/Scot./N.Irish/British",
56+
"aliases": [
57+
{
58+
"firstName": "Robert",
59+
"lastName": "Lorsen",
60+
"middleName": "Trevor",
61+
"dateOfBirth": "1975-04-02",
62+
"gender": "Male",
63+
"ethnicity": "White : Irish"
64+
}
65+
],
66+
"identifiers": {
67+
"nomisNumber": "A1234AA",
68+
"croNumber": "29906/12J",
69+
"deliusCrn": null
70+
},
71+
"pncId": "12/394773H",
72+
"hmppsId": null,
73+
"contactDetails": null
74+
},
75+
"probationOffenderSearch": {
76+
"firstName": "string",
77+
"lastName": "string",
78+
"middleName": "string",
79+
"dateOfBirth": "2019-08-24",
80+
"gender": "string",
81+
"ethnicity": "string",
82+
"aliases": [
83+
{
84+
"firstName": "string",
85+
"lastName": "string",
86+
"middleName": "string",
87+
"dateOfBirth": "2019-08-24",
88+
"gender": "string",
89+
"ethnicity": null
90+
}
91+
],
92+
"identifiers": {
93+
"nomisNumber": "G5555TT",
94+
"croNumber": "123456/24A",
95+
"deliusCrn": "A123456"
96+
},
97+
"pncId": "2012/0052494Q",
98+
"hmppsId": "A123456",
99+
"contactDetails": {
100+
"phoneNumbers": [
101+
{
102+
"number": "string",
103+
"type": "TELEPHONE"
104+
}
105+
],
106+
"emails": [
107+
"string"
108+
]
109+
}
110+
}
90111
}
91-
],
92-
"identifiers":{
93-
"nomisNumber":"G5555TT",
94-
"croNumber":"123456/24A",
95-
"deliusCrn":"A123456"
96-
},
97-
"pncId":"2012/0052494Q",
98-
"hmppsId":"A123456",
99-
"contactDetails":{
100-
"phoneNumbers":[
101-
{
102-
"number":"string",
103-
"type":"TELEPHONE"
104-
}
105-
],
106-
"emails":null
107-
}
108-
}
109-
}
110-
}
112+
}
111113
""".removeWhitespaceAndNewlines(),
112114
)
113115
}

0 commit comments

Comments
 (0)