-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate wiremock responses for the AlertsApiClient
- Loading branch information
1 parent
f657321
commit 55dcaa2
Showing
4 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
spec/wiremock/prison-api/__files/body-prisoners-G8133UA-alerts-Q0luD.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
23
spec/wiremock/prison-api/mappings/mapping-alert-types-CU48p.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} |
23 changes: 23 additions & 0 deletions
23
spec/wiremock/prison-api/mappings/mapping-prisoners-G8133UA-alerts-Q0luD.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} |