Skip to content

Commit

Permalink
Generate wiremock responses for the AlertsApiClient
Browse files Browse the repository at this point in the history
  • Loading branch information
tobyprivett committed Oct 24, 2024
1 parent f657321 commit 55dcaa2
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 0 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"content":[{"alertUuid":"6548400d-80b4-4f2c-b329-cd9e54030d5e","prisonNumber":"G8133UA","alertCode":{"alertTypeCode":"P","alertTypeDescription":"MAPPP Case","code":"PC2","description":"MAPPA Cat 2"},"description":"HRErJMfhUuLHisGPkEhGRpvHSvjfHHRErJMfhUuLHisGPkEhGRpvHSvjfH","authorisedBy":"UEU","activeFrom":"2017-02-03","activeTo":null,"isActive":true,"comments":[],"createdAt":"2017-02-03T08:29:46","createdBy":"RQX53K","createdByDisplayName":"Omchijohn Dantexia","lastModifiedAt":"2017-05-09T21:54:15","lastModifiedBy":"OMS_OWNER","lastModifiedByDisplayName":"Admin&onb Cnomis","activeToLastSetAt":null,"activeToLastSetBy":null,"activeToLastSetByDisplayName":null},{"alertUuid":"4aa8e4b1-b633-4db4-b234-53e2b21c71e6","prisonNumber":"G8133UA","alertCode":{"alertTypeCode":"R","alertTypeDescription":"Risk","code":"ROM","description":"OASys Serious Harm-Medium"},"description":null,"authorisedBy":null,"activeFrom":"2015-02-22","activeTo":null,"isActive":true,"comments":[],"createdAt":"2015-02-22T10:51:59","createdBy":"TQD98V","createdByDisplayName":"Ehicey Caitlariah","lastModifiedAt":"2017-05-09T21:52:37","lastModifiedBy":"OMS_OWNER","lastModifiedByDisplayName":"Admin&onb Cnomis","activeToLastSetAt":null,"activeToLastSetBy":null,"activeToLastSetByDisplayName":null}],"pageable":{"pageNumber":0,"pageSize":2147483647,"sort":{"empty":false,"sorted":true,"unsorted":false},"offset":0,"paged":true,"unpaged":false},"last":true,"totalElements":2,"totalPages":1,"first":true,"size":2147483647,"number":0,"sort":{"empty":false,"sorted":true,"unsorted":false},"numberOfElements":2,"empty":false}
23 changes: 23 additions & 0 deletions spec/wiremock/prison-api/mappings/mapping-alert-types-CU48p.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"id" : "ed4bf823-5579-3b04-856f-73c547d4dcc0",
"request" : {
"url" : "/alert-types",
"method" : "GET"
},
"response" : {
"status" : 200,
"bodyFileName" : "body-alert-types-CU48p.json",
"headers" : {
"Date" : "Fri, 18 Oct 2024 12:46:48 GMT",
"Content-Type" : "application/json",
"X-Content-Type-Options" : "nosniff",
"X-XSS-Protection" : "0",
"Cache-Control" : "no-cache, no-store, max-age=0, must-revalidate",
"Pragma" : "no-cache",
"Expires" : "0",
"Strict-Transport-Security" : "max-age=15724800; includeSubDomains",
"X-Frame-Options" : "SAMEORIGIN"
}
},
"uuid" : "ed4bf823-5579-3b04-856f-73c547d4dcc0"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"id" : "926f3d86-3971-391b-821d-e51695dbcdd9",
"request" : {
"url" : "/prisoners/G8133UA/alerts?isActive=true",
"method" : "GET"
},
"response" : {
"status" : 200,
"bodyFileName" : "body-prisoners-G8133UA-alerts-Q0luD.json",
"headers" : {
"Date" : "Fri, 18 Oct 2024 12:46:48 GMT",
"Content-Type" : "application/json",
"X-Content-Type-Options" : "nosniff",
"X-XSS-Protection" : "0",
"Cache-Control" : "no-cache, no-store, max-age=0, must-revalidate",
"Pragma" : "no-cache",
"Expires" : "0",
"Strict-Transport-Security" : "max-age=15724800; includeSubDomains",
"X-Frame-Options" : "SAMEORIGIN"
}
},
"uuid" : "926f3d86-3971-391b-821d-e51695dbcdd9"
}

0 comments on commit 55dcaa2

Please sign in to comment.