generated from ministryofjustice/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* PI-2667 Common Platform Address records - OS Places API * PI-2667 Common Platform Address records - OS Places API * PI-2667 Common Platform Address records - OS Places API - Added wiremock mappings files - Fixed failing tests * PI-2667 Common Platform Address records - OS Places API * PI-2667 Common Platform Address records - OS Places API * Formatting changes * PI-2667 Common Platform Address records - OS Places API * PI-2667 Common Platform Address records - OS Places API --------- Co-authored-by: probation-integration-bot[bot] <177347787+probation-integration-bot[bot]@users.noreply.github.com>
- Loading branch information
1 parent
b14f213
commit 8948a7e
Showing
9 changed files
with
376 additions
and
94 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
...-platform-and-delius/src/dev/resources/simulations/__files/address-lookup-no-results.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,4 @@ | ||
{ | ||
"header": { "totalresults": 0 }, | ||
"results": [] | ||
} |
41 changes: 41 additions & 0 deletions
41
...atform-and-delius/src/dev/resources/simulations/__files/address-lookup-single-result.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,41 @@ | ||
{ | ||
"header": { | ||
"totalresults": 1 | ||
}, | ||
"results": [ | ||
{ | ||
"DPA": { | ||
"UPRN": 123456789012, | ||
"UDPRN": 12345678, | ||
"ADDRESS": "123 Test Street, Test, AB1 2CD", | ||
"POSTCODE": "AB1 2CD", | ||
"BUILDING_NUMBER": 123, | ||
"THOROUGHFARE_NAME": "Test Street", | ||
"POST_TOWN": "Test", | ||
"RPC": "2", | ||
"X_COORDINATE": 123456.78, | ||
"Y_COORDINATE": 876543.21, | ||
"STATUS": "APPROVED", | ||
"MATCH": 0.9, | ||
"LANGUAGE": "EN", | ||
"COUNTRY_CODE": "E", | ||
"COUNTRY_CODE_DESCRIPTION": "This record is within England", | ||
"LOCAL_CUSTODIAN_CODE": 1760, | ||
"LOCAL_CUSTODIAN_CODE_DESCRIPTION": "Test", | ||
"CLASSIFICATION_CODE": "CO01GV", | ||
"CLASSIFICATION_CODE_DESCRIPTION": "Central Government Service", | ||
"POSTAL_ADDRESS_CODE": "D", | ||
"POSTAL_ADDRESS_CODE_DESCRIPTION": "A record which is linked to PAF", | ||
"LOGICAL_STATUS_CODE": 1, | ||
"BLPU_STATE_CODE": 2, | ||
"BLPU_STATE_CODE_DESCRIPTION": "In use", | ||
"TOPOGRAPHY_LAYER_TOID": "osgb1234567890123456", | ||
"LAST_UPDATE_DATE": "2024-01-01", | ||
"ENTRY_DATE": "2024-01-01", | ||
"DELIVERY_POINT_SUFFIX": "1A", | ||
"PARISH_CODE": "E87654321", | ||
"WARD_CODE": "E12345678" | ||
} | ||
} | ||
] | ||
} |
13 changes: 13 additions & 0 deletions
13
...on-platform-and-delius/src/dev/resources/simulations/mappings/address-lookup-mapping.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,13 @@ | ||
{ | ||
"request": { | ||
"method": "GET", | ||
"urlPath": "/address-lookup/search/places/v1/find" | ||
}, | ||
"response": { | ||
"status": 200, | ||
"headers": { | ||
"Content-Type": "application/json" | ||
}, | ||
"bodyFileName": "address-lookup-single-result.json" | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...-platform-and-delius/src/dev/resources/simulations/mappings/probation-search-mapping.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,13 @@ | ||
{ | ||
"request": { | ||
"method": "POST", | ||
"urlPath": "/probation-search/match" | ||
}, | ||
"response": { | ||
"status": 200, | ||
"headers": { | ||
"Content-Type": "application/json" | ||
}, | ||
"bodyFileName": "probation-search-no-results.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
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
Oops, something went wrong.