Skip to content

Commit d3dd255

Browse files
Smoke test
1 parent 55c8333 commit d3dd255

File tree

1 file changed

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

1 file changed

+17
-0
lines changed

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

+17
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,23 @@ class RisksSmokeTest : DescribeSpec(
5959
)
6060
}
6161

62+
it("returns risk categories for a person") {
63+
val response = httpClient.performAuthorised("$basePath/categories")
64+
65+
response.statusCode().shouldBe(HttpStatus.OK.value())
66+
response.body().shouldEqualJson(
67+
"""
68+
{
69+
"data": {
70+
"offenderNo": null,
71+
"assessments": []
72+
}
73+
}
74+
75+
""".removeWhitespaceAndNewlines(),
76+
)
77+
}
78+
6279
it("returns rosh risks for a person") {
6380
val response = httpClient.performAuthorised(basePath)
6481

0 commit comments

Comments
 (0)