Skip to content

Commit c4cb09e

Browse files
Smokes
1 parent dc976dc commit c4cb09e

File tree

1 file changed

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

1 file changed

+79
-53
lines changed

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

+79-53
Original file line numberDiff line numberDiff line change
@@ -44,62 +44,88 @@ class PersonSmokeTest : DescribeSpec(
4444

4545
response.body().shouldBe(
4646
"""
47-
{
48-
"data": {
49-
"firstName": "string",
50-
"lastName": "string",
51-
"middleName": "string",
52-
"dateOfBirth": "2019-08-24",
53-
"gender": "string",
54-
"ethnicity": "string",
55-
"aliases": [
5647
{
57-
"firstName": "string",
58-
"lastName": "string",
59-
"middleName": "string",
60-
"dateOfBirth": "2019-08-24",
61-
"gender": "string",
62-
"ethnicity": null
63-
}
64-
],
65-
"identifiers": {
66-
"nomisNumber": "G5555TT",
67-
"croNumber": "123456/24A",
68-
"deliusCrn": "A123456"
69-
},
70-
"pncId": "2012/0052494Q",
71-
"hmppsId": "A123456",
72-
"contactDetails": {
73-
"addresses": [
74-
{
75-
"addressNumber": "string",
76-
"district": "string",
77-
"buildingName": "string",
78-
"county": "string",
79-
"from": "2019-08-24",
80-
"postcode": "string",
81-
"streetName": "string",
82-
"type": {
83-
"code": "string",
84-
"description": "string"
48+
"prisonerOffenderSearch": {
49+
"firstName": "Robert",
50+
"lastName": "Larsen",
51+
"middleName": "John James",
52+
"dateOfBirth": "1975-04-02",
53+
"gender": "Female",
54+
"ethnicity": "White: Eng./Welsh/Scot./N.Irish/British",
55+
"aliases": [
56+
{
57+
"firstName": "Robert",
58+
"lastName": "Lorsen",
59+
"middleName": "Trevor",
60+
"dateOfBirth": "1975-04-02",
61+
"gender": "Male",
62+
"ethnicity": "White : Irish"
63+
}
64+
],
65+
"identifiers": {
66+
"nomisNumber": "A1234AA",
67+
"croNumber": "29906/12J",
68+
"deliusCrn": null
8569
},
86-
"to": "2019-08-24",
87-
"town": "string",
88-
"noFixedAbode": true,
89-
"notes": "string"
90-
}
91-
],
92-
"phoneNumbers": [
93-
{
94-
"number": "string",
95-
"type": "TELEPHONE"
70+
"pncId": "12/394773H",
71+
"hmppsId": null,
72+
"contactDetails": null
73+
},
74+
"probationOffenderSearch": {
75+
"firstName": "string",
76+
"lastName": "string",
77+
"middleName": "string",
78+
"dateOfBirth": "2019-08-24",
79+
"gender": "string",
80+
"ethnicity": "string",
81+
"aliases": [
82+
{
83+
"firstName": "string",
84+
"lastName": "string",
85+
"middleName": "string",
86+
"dateOfBirth": "2019-08-24",
87+
"gender": "string",
88+
"ethnicity": null
89+
}
90+
],
91+
"identifiers": {
92+
"nomisNumber": "G5555TT",
93+
"croNumber": "123456/24A",
94+
"deliusCrn": "A123456"
95+
},
96+
"pncId": "2012/0052494Q",
97+
"hmppsId": "A123456",
98+
"contactDetails": {
99+
"addresses": [
100+
{
101+
"addressNumber": "string",
102+
"district": "string",
103+
"buildingName": "string",
104+
"county": "string",
105+
"from": "2019-08-24",
106+
"postcode": "string",
107+
"streetName": "string",
108+
"type": {
109+
"code": "string",
110+
"description": "string"
111+
},
112+
"to": "2019-08-24",
113+
"town": "string",
114+
"noFixedAbode": true,
115+
"notes": "string"
116+
}
117+
],
118+
"phoneNumbers": [
119+
{
120+
"number": "string",
121+
"type": "TELEPHONE"
122+
}
123+
],
124+
"emails": null
125+
}
96126
}
97-
],
98-
"emails":null
99-
}
100-
}
101-
}
102-
""".removeWhitespaceAndNewlines(),
127+
}
128+
""".removeWhitespaceAndNewlines(),
103129
)
104130
}
105131

0 commit comments

Comments
 (0)