diff --git a/mock-integrations/lpa-data-store/mock-responses.js b/mock-integrations/lpa-data-store/mock-responses.js index 2712b99fc9..9427e164e3 100644 --- a/mock-integrations/lpa-data-store/mock-responses.js +++ b/mock-integrations/lpa-data-store/mock-responses.js @@ -50,6 +50,7 @@ address: { line1: "74 Cloob Close", town: "Mahhhhhhhhhh", + postcode: "TP6 8EX", country: "GB" }, dateOfBirth: "1970-01-24", @@ -68,12 +69,27 @@ address: { line1: "81 NighOnTimeWeBuiltIt Street", town: "Mahhhhhhhhhh", + postcode: "PC4 6UZ", country: "GB" }, dateOfBirth: "1982-07-24", status: "active", channel: "paper", signedAt: "2024-01-10T23:00:00Z" + }, + { + uid: "9201a0b8-70a2-47db-93f2-c7510b4210ae", + firstNames: "Jessica", + lastName: "Seakrest", + address: { + line1: "81 NighOnTimeWeBuiltIt Street", + town: "Mahhhhhhhhhh", + country: "GB" + }, + dateOfBirth: "1984-04-13", + status: "replacement", + channel: "online", + signedAt: "2024-01-10T23:00:00Z" } ], trustCorporations: [ @@ -120,7 +136,7 @@ UX3_default ]; var getLpa = (uid) => { - const lpas = self.getList([uid]); + const lpas = getList([uid]); return lpas.lpas.pop(); }; var getList = (uids) => { diff --git a/mock-integrations/lpa-data-store/src/lpas/4UX3.json b/mock-integrations/lpa-data-store/src/lpas/4UX3.json index f1d5e0397b..e0f5ccd943 100644 --- a/mock-integrations/lpa-data-store/src/lpas/4UX3.json +++ b/mock-integrations/lpa-data-store/src/lpas/4UX3.json @@ -12,6 +12,7 @@ "address": { "line1": "74 Cloob Close", "town": "Mahhhhhhhhhh", + "postcode": "TP6 8EX", "country": "GB" }, "dateOfBirth": "1970-01-24", @@ -30,12 +31,27 @@ "address": { "line1": "81 NighOnTimeWeBuiltIt Street", "town": "Mahhhhhhhhhh", + "postcode": "PC4 6UZ", "country": "GB" }, "dateOfBirth": "1982-07-24", "status": "active", "channel": "paper", "signedAt": "2024-01-10T23:00:00Z" + }, + { + "uid": "9201a0b8-70a2-47db-93f2-c7510b4210ae", + "firstNames": "Jessica", + "lastName": "Seakrest", + "address": { + "line1": "81 NighOnTimeWeBuiltIt Street", + "town": "Mahhhhhhhhhh", + "country": "GB" + }, + "dateOfBirth": "1984-04-13", + "status": "replacement", + "channel": "online", + "signedAt": "2024-01-10T23:00:00Z" } ], "trustCorporations": [ diff --git a/mock-integrations/lpa-data-store/src/lpas/lpas.mjs b/mock-integrations/lpa-data-store/src/lpas/lpas.mjs index eb846bc7ed..d1e54f734d 100644 --- a/mock-integrations/lpa-data-store/src/lpas/lpas.mjs +++ b/mock-integrations/lpa-data-store/src/lpas/lpas.mjs @@ -5,7 +5,7 @@ const lpaData = [ ] const getLpa = uid => { - const lpas = self.getList([uid]) + const lpas = getList([uid]) return lpas.lpas.pop() } diff --git a/mock-integrations/nginx.conf b/mock-integrations/nginx.conf index 13a6794b71..421e4d2aec 100644 --- a/mock-integrations/nginx.conf +++ b/mock-integrations/nginx.conf @@ -14,7 +14,6 @@ map $request_uri $swagger_example { "~700000000252" "lpa0252"; "~700000000138" "lpa0138"; "~700000000047" "lpa0047"; - # 404 - results in a "waiting" status in Make # NB there doesn't seem to be a way to supply an example for a non-200 # response so we just request an example which doesn't exist, which diff --git a/mock-integrations/opg-data-lpa/generate_examples/make_examples.sh b/mock-integrations/opg-data-lpa/generate_examples/make_examples.sh index 621a9af4b1..3e45bfc628 100755 --- a/mock-integrations/opg-data-lpa/generate_examples/make_examples.sh +++ b/mock-integrations/opg-data-lpa/generate_examples/make_examples.sh @@ -9,13 +9,17 @@ for n in $(cat list.txt ) do echo "Working on $n..." example_name="lpa${n: -4:4}" - lpa_yaml_data=$(python3 ../../../scripts/call-api-gateway/call_api_gateway.py $n | yq -P) + lpa_yaml_data=$(\ + python3 ../../../scripts/call-api-gateway/call_api_gateway.py $n | \ + yq '(.. | select(key == "uId")) |= sub("-", "")' -P \ + ) lpa_example_name=$example_name lpa_data=$lpa_yaml_data \ yq 'with(.paths[].get.responses.[].content.[].examples; . | .[env(lpa_example_name)].value=env(lpa_data))' \ temp.yaml >> temp.yaml - sed -i '' -e "5s/^//p; 6s/^.*/ \"~$n\" \"$example_name\";/" ../../nginx.conf + sed -i '' -e "5s/^//p; 6s/^.*/ \"~$n\" \"$example_name\";/" nginx.conf done yq ea '. as $item ireduce ({}; . * $item )' temp.yaml > ../mock-openapi-examples.yaml +mv nginx.conf ../../nginx.conf rm -f temp.yaml diff --git a/mock-integrations/opg-data-lpa/generate_examples/nginx-template.conf b/mock-integrations/opg-data-lpa/generate_examples/nginx-template.conf index c75b8ba162..ca787dad56 100644 --- a/mock-integrations/opg-data-lpa/generate_examples/nginx-template.conf +++ b/mock-integrations/opg-data-lpa/generate_examples/nginx-template.conf @@ -17,11 +17,18 @@ server { location /v1/use-an-lpa/lpas/ { rewrite ^/v1(.*)$ $1 last; + } + + location /use-an-lpa/lpas/ { proxy_set_header Prefer example=$swagger_example; proxy_pass http://mock-data-lpa:4010; } location /v1/image-request/ { - proxy_pass http://mock-image-request-handler:8080; + proxy_pass http://mock-image-request-handler:4012; + } + + location / { + root /var/www/html; } } diff --git a/mock-integrations/opg-data-lpa/mock-openapi-examples.yaml b/mock-integrations/opg-data-lpa/mock-openapi-examples.yaml index 4843260819..10b468d9ff 100644 --- a/mock-integrations/opg-data-lpa/mock-openapi-examples.yaml +++ b/mock-integrations/opg-data-lpa/mock-openapi-examples.yaml @@ -27,13 +27,13 @@ paths: dob: "1990-05-04" email: "" firstname: Jean - otherNames: "" id: 9 middlenames: "" + otherNames: null salutation: "" surname: Sanderson systemStatus: true - uId: 7000-0000-0815 + uId: "700000000815" - addresses: - addressLine1: 7 The Low Street addressLine2: "" @@ -48,13 +48,13 @@ paths: dob: "1975-10-05" email: XXXXX firstname: Annette - otherNames: Anne id: 12 middlenames: "" + otherNames: null salutation: Mrs surname: Doe systemStatus: true - uId: 7000-0000-0849 + uId: "700000000849" - addresses: - addressLine1: Home addressLine2: "" @@ -69,13 +69,13 @@ paths: dob: "2000-12-15" email: null firstname: Jess - otherNames: null id: 3453 middlenames: null + otherNames: null salutation: null surname: Doe systemStatus: true - uId: 7000-0015-0610 + uId: "700000150610" - addresses: - addressLine1: "" addressLine2: "" @@ -90,13 +90,13 @@ paths: dob: null email: null firstname: "" - otherNames: "" id: 3481 middlenames: null + otherNames: null salutation: null surname: "" systemStatus: true - uId: 7000-0015-1816 + uId: "700000151816" - addresses: - addressLine1: "" addressLine2: "" @@ -111,13 +111,13 @@ paths: dob: null email: null firstname: "" - otherNames: "" id: 3482 middlenames: null + otherNames: null salutation: null surname: "" systemStatus: true - uId: 7000-0015-1840 + uId: "700000151840" - addresses: - addressLine1: Embankment House addressLine2: "" @@ -132,13 +132,13 @@ paths: dob: "1941-01-03" email: null firstname: Ọlá-Bándélé - otherNames: Ṣhókkẹ́ id: 3568 middlenames: Ṣhókọ̀yà + otherNames: null salutation: Mr surname: Ọ̀kẹ́ systemStatus: true - uId: 7000-0015-5924 + uId: "700000155924" cancellationDate: null caseAttorneyJointly: false caseAttorneyJointlyAndJointlyAndSeverally: true @@ -159,12 +159,12 @@ paths: dob: null email: null firstname: Danielle - otherNames: null id: 11 middlenames: null + otherNames: null salutation: Miss surname: 'Hart ' - uId: 7000-0000-0831 + uId: "700000000831" dispatchDate: "2021-04-26" donor: addresses: @@ -181,15 +181,15 @@ paths: dob: "1948-11-01" email: RachelSanderson@opgtest.com firstname: Rachel - otherNames: Rach id: 7 linked: - id: 7 - uId: 7000-0000-0799 + uId: "700000000799" middlenames: Emma + otherNames: "" salutation: Mr surname: Sanderson - uId: 7000-0000-0799 + uId: "700000000799" hasSeveranceWarning: false id: 2 invalidDate: null @@ -204,11 +204,11 @@ paths: status: Registered statusDate: null trustCorporations: [] - uId: 7000-0000-0047 + uId: "700000000047" withdrawnDate: null lpa0138: value: - applicationHasGuidance: true + applicationHasGuidance: false applicationHasRestrictions: true applicationType: Classic attorneyActDecisions: null @@ -227,13 +227,13 @@ paths: dob: "1975-10-05" email: SimonMatthews@opgtest.com firstname: Simon - otherNames: Si id: 25 middlenames: "" + otherNames: null salutation: Mr surname: Matthews systemStatus: true - uId: 7000-0000-0997 + uId: "700000000997" - addresses: - addressLine1: my house addressLine2: "" @@ -248,13 +248,13 @@ paths: dob: "1990-03-17" email: "" firstname: Simone - otherNames: "" id: 2588 middlenames: "" + otherNames: null salutation: Miss surname: Matthews systemStatus: true - uId: 7000-0011-6322 + uId: "700000116322" - addresses: - addressLine1: Home addressLine2: "" @@ -269,13 +269,13 @@ paths: dob: "2000-05-14" email: null firstname: Doobie - otherNames: Scooby id: 3352 middlenames: null + otherNames: null salutation: Mr surname: Doo systemStatus: true - uId: 7000-0014-6980 + uId: "700000146980" - addresses: - addressLine1: Home addressLine2: Home @@ -290,13 +290,13 @@ paths: dob: "1981-06-14" email: null firstname: David - otherNames: null id: 3353 middlenames: null + otherNames: null salutation: null surname: Jones systemStatus: true - uId: 7000-0014-7012 + uId: "700000147012" - addresses: - addressLine1: 25 The High Street addressLine2: "" @@ -311,13 +311,13 @@ paths: dob: "1961-06-14" email: null firstname: Jane - otherNames: null id: 3357 middlenames: null + otherNames: null salutation: null surname: Doe systemStatus: true - uId: 7000-0014-7137 + uId: "700000147137" - addresses: - addressLine1: 7 The Low Street addressLine2: "" @@ -332,13 +332,13 @@ paths: dob: "1981-06-14" email: null firstname: Daisy - otherNames: null id: 3383 middlenames: null + otherNames: null salutation: null surname: Brown systemStatus: true - uId: 7000-0014-7947 + uId: "700000147947" - addresses: - addressLine1: 115 Danford Lane addressLine2: "" @@ -353,13 +353,13 @@ paths: dob: "1981-06-14" email: null firstname: Daisy - otherNames: null id: 3396 middlenames: null + otherNames: null salutation: null surname: Chain systemStatus: true - uId: 7000-0014-8515 + uId: "700000148515" - addresses: - addressLine1: 1 test road addressLine2: "" @@ -373,14 +373,14 @@ paths: companyName: null dob: "1989-01-01" email: null - firstname: daniel's - otherNames: null + firstname: Daniels id: 3460 middlenames: null + otherNames: null salutation: mr - surname: john + surname: John systemStatus: true - uId: 7000-0015-0974 + uId: "700000150974" cancellationDate: "2020-03-17" caseAttorneyJointly: true caseAttorneyJointlyAndJointlyAndSeverally: false @@ -401,12 +401,12 @@ paths: dob: null email: null firstname: Joanne - otherNames: null id: 27 middlenames: null + otherNames: null salutation: Mrs surname: Armstrong - uId: 7000-0000-1011 + uId: "700000001011" dispatchDate: "2021-10-14" donor: addresses: @@ -423,30 +423,30 @@ paths: dob: "1948-11-01" email: babaragilson@opgtest.com firstname: Babara - otherNames: Bab id: 23 linked: - id: 23 - uId: 7000-0000-0971 + uId: "700000000971" middlenames: Suzanne + otherNames: Barbara Gilson Stewart salutation: Mrs surname: Gilson - uId: 7000-0000-0971 - hasSeveranceWarning: false + uId: "700000000971" + hasSeveranceWarning: true id: 5 - invalidDate: null + invalidDate: "2024-06-04" lifeSustainingTreatment: Option B lpaDonorSignatureDate: "2016-01-01" lpaIsCleansed: false onlineLpaId: A15527329531 receiptDate: "2014-09-26" - registrationDate: "2018-05-15" + registrationDate: "2024-06-04" rejectedDate: null replacementAttorneys: [] status: Registered - statusDate: null + statusDate: "2024-06-04" trustCorporations: [] - uId: 7000-0000-0138 + uId: "700000000138" withdrawnDate: null lpa0252: value: @@ -469,13 +469,13 @@ paths: dob: "1975-10-05" email: TainaRucker@opgtest.com firstname: Taina - otherNames: "" id: 45 middlenames: "" + otherNames: "" salutation: Mr surname: Rucker systemStatus: false - uId: 7000-0000-1235 + uId: "700000001235" cancellationDate: "2020-02-03" caseAttorneyJointly: false caseAttorneyJointlyAndJointlyAndSeverally: false @@ -496,12 +496,12 @@ paths: dob: null email: null firstname: Desire - otherNames: null id: 47 middlenames: null + otherNames: null salutation: Miss surname: Beasley - uId: 7000-0000-1250 + uId: "700000001250" dispatchDate: null donor: addresses: @@ -518,15 +518,15 @@ paths: dob: "1948-11-01" email: orethalang@opgtest.com firstname: Babara - otherNames: null id: 43 linked: - id: 43 - uId: 7000-0000-1219 + uId: "700000001219" middlenames: Suzanne + otherNames: "" salutation: "" surname: Gilson - uId: 7000-0000-1219 + uId: "700000001219" hasSeveranceWarning: false id: 9 invalidDate: null @@ -541,7 +541,7 @@ paths: status: Cancelled statusDate: null trustCorporations: [] - uId: 7000-0000-0252 + uId: "700000000252" withdrawnDate: null lpa0344: value: @@ -564,13 +564,13 @@ paths: dob: "1975-10-05" email: SimonMatthews@opgtest.com firstname: Simon - otherNames: Si id: 64 middlenames: null + otherNames: null salutation: Mr surname: Matthews systemStatus: true - uId: 7000-0000-1441 + uId: "700000001441" - addresses: - addressLine1: 1 Use Lane addressLine2: "" @@ -585,13 +585,13 @@ paths: dob: "1975-10-05" email: null firstname: simone - otherNames: null id: 3022 middlenames: null + otherNames: null salutation: miss surname: matthews systemStatus: true - uId: 7000-0013-6098 + uId: "700000136098" cancellationDate: null caseAttorneyJointly: false caseAttorneyJointlyAndJointlyAndSeverally: false @@ -612,12 +612,12 @@ paths: dob: null email: null firstname: David - otherNames: null id: 63 middlenames: null + otherNames: null salutation: Mr surname: Stewart - uId: 7000-0000-1433 + uId: "700000001433" dispatchDate: null donor: addresses: @@ -634,22 +634,22 @@ paths: dob: "1948-11-01" email: linkedpersonone@opgtest.com firstname: Linked - otherNames: Link id: 53 linked: - id: 53 - uId: 7000-0000-1334 + uId: "700000001334" - id: 59 - uId: 7000-0000-1391 + uId: "700000001391" - id: 98 - uId: 7000-0000-1813 + uId: "700000001813" - id: 110 - uId: 7000-0000-1938 + uId: "700000001938" middlenames: Person + otherNames: "" salutation: Mr surname: One - uId: 7000-0000-1334 - hasSeveranceWarning: false + uId: "700000001334" + hasSeveranceWarning: true id: 12 invalidDate: null lifeSustainingTreatment: null @@ -663,7 +663,7 @@ paths: status: Registered statusDate: null trustCorporations: [] - uId: 7000-0000-0344 + uId: "700000000344" withdrawnDate: null lpa0435: value: @@ -686,13 +686,13 @@ paths: dob: "1975-10-05" email: AndreaRobinson@opgtest.com firstname: Andrea - otherNames: null id: 78 middlenames: null + otherNames: null salutation: Mrs surname: Robinson systemStatus: true - uId: 7000-0000-1599 + uId: "700000001599" cancellationDate: null caseAttorneyJointly: false caseAttorneyJointlyAndJointlyAndSeverally: false @@ -713,12 +713,12 @@ paths: dob: null email: null firstname: Rachel - otherNames: Rach id: 80 middlenames: null + otherNames: null salutation: Mrs surname: Sanderson - uId: 7000-0000-1615 + uId: "700000001615" dispatchDate: "2022-02-17" donor: addresses: @@ -735,15 +735,15 @@ paths: dob: "1948-11-01" email: demtriceflood@opgtest.com firstname: Demetrice - otherNames: null id: 76 linked: - id: 76 - uId: 7000-0000-1573 + uId: "700000001573" middlenames: Ophelia + otherNames: "" salutation: Mrs surname: Flood - uId: 7000-0000-1573 + uId: "700000001573" hasSeveranceWarning: false id: 15 invalidDate: null @@ -758,7 +758,7 @@ paths: status: Registered statusDate: "2022-01-17" trustCorporations: [] - uId: 7000-0000-0435 + uId: "700000000435" withdrawnDate: null lpa0526: value: @@ -781,13 +781,13 @@ paths: dob: "1975-10-05" email: SimonMatthews@opgtest.com firstname: Simon - otherNames: Si id: 97 middlenames: null + otherNames: null salutation: Mr surname: Matthews systemStatus: true - uId: 7000-0000-1805 + uId: "700000001805" cancellationDate: null caseAttorneyJointly: false caseAttorneyJointlyAndJointlyAndSeverally: true @@ -808,12 +808,12 @@ paths: dob: null email: null firstname: David - otherNames: null id: 96 middlenames: null + otherNames: null salutation: Mr surname: Stewart - uId: 7000-0000-1797 + uId: "700000001797" dispatchDate: null donor: addresses: @@ -830,15 +830,15 @@ paths: dob: "1948-11-01" email: cherrylschindler@opgtest.com firstname: Cherryl - otherNames: null id: 92 linked: - id: 92 - uId: 7000-0000-1755 + uId: "700000001755" middlenames: Marie + otherNames: "" salutation: Ms surname: Schindler - uId: 7000-0000-1755 + uId: "700000001755" hasSeveranceWarning: false id: 18 invalidDate: null @@ -853,7 +853,7 @@ paths: status: Pending statusDate: null trustCorporations: [] - uId: 7000-0000-0526 + uId: "700000000526" withdrawnDate: null lpa0617: value: @@ -876,13 +876,13 @@ paths: dob: "1975-10-05" email: SimonMatthews@opgtest.com firstname: Simon - otherNames: Si id: 115 middlenames: null + otherNames: null salutation: Mr surname: Matthews systemStatus: true - uId: 7000-0000-1987 + uId: "700000001987" cancellationDate: null caseAttorneyJointly: false caseAttorneyJointlyAndJointlyAndSeverally: false @@ -903,12 +903,12 @@ paths: dob: null email: null firstname: David - otherNames: null id: 114 middlenames: null + otherNames: null salutation: Mr surname: Stewart - uId: 7000-0000-1979 + uId: "700000001979" dispatchDate: null donor: addresses: @@ -925,21 +925,21 @@ paths: dob: "1948-11-01" email: linkedpersonone@opgtest.com firstname: Linked - otherNames: Link id: 53 linked: - id: 53 - uId: 7000-0000-1334 + uId: "700000001334" - id: 59 - uId: 7000-0000-1391 + uId: "700000001391" - id: 98 - uId: 7000-0000-1813 + uId: "700000001813" - id: 110 - uId: 7000-0000-1938 + uId: "700000001938" middlenames: Person + otherNames: "" salutation: Mr surname: One - uId: 7000-0000-1334 + uId: "700000001334" hasSeveranceWarning: false id: 21 invalidDate: null @@ -954,7 +954,7 @@ paths: status: Pending statusDate: null trustCorporations: [] - uId: 7000-0000-0617 + uId: "700000000617" withdrawnDate: null lpa1451: value: @@ -977,13 +977,13 @@ paths: dob: "1989-01-01" email: null firstname: ross - otherNames: null id: 3471 middlenames: null + otherNames: null salutation: mr surname: smith systemStatus: true - uId: 7000-0015-1485 + uId: "700000151485" - addresses: - addressLine1: "10" addressLine2: "" @@ -998,13 +998,13 @@ paths: dob: "2010-01-02" email: null firstname: rachel - otherNames: rach id: 3472 middlenames: null + otherNames: null salutation: mr surname: smith systemStatus: true - uId: 7000-0015-1519 + uId: "700000151519" - addresses: - addressLine1: 1 test road addressLine2: "" @@ -1019,13 +1019,13 @@ paths: dob: "1911-01-01" email: null firstname: phoebe - otherNames: null id: 3500 middlenames: null + otherNames: null salutation: null surname: mills systemStatus: true - uId: 7000-0015-2475 + uId: "700000152475" cancellationDate: null caseAttorneyJointly: false caseAttorneyJointlyAndJointlyAndSeverally: false @@ -1049,15 +1049,15 @@ paths: dob: "1944-08-14" email: null firstname: Donald - otherNames: null id: 136 linked: - id: 136 - uId: 7000-0000-2266 + uId: "700000002266" middlenames: John + otherNames: null salutation: Mr surname: Smith - uId: 7000-0000-2266 + uId: "700000002266" hasSeveranceWarning: false id: 1863 invalidDate: null @@ -1086,14 +1086,14 @@ paths: dob: null email: null firstname: trust - otherNames: null id: 3485 middlenames: null + otherNames: null salutation: null surname: test systemStatus: true - uId: 7000-0015-1998 - uId: 7000-0015-1451 + uId: "700000151998" + uId: "700000151451" withdrawnDate: null lpa6361: value: @@ -1116,13 +1116,13 @@ paths: dob: "2000-06-09" email: "" firstname: Jessica - otherNames: null id: 3037 middlenames: "" + otherNames: null salutation: Mrs surname: Test systemStatus: true - uId: 7000-0013-6908 + uId: "700000136908" - addresses: - addressLine1: 7 The Low Street addressLine2: "" @@ -1137,13 +1137,13 @@ paths: dob: "1981-06-14" email: null firstname: John - otherNames: null id: 3318 middlenames: null + otherNames: null salutation: Mr surname: Doe systemStatus: true - uId: 7000-0014-5909 + uId: "700000145909" cancellationDate: null caseAttorneyJointly: false caseAttorneyJointlyAndJointlyAndSeverally: false @@ -1167,16 +1167,16 @@ paths: dob: "1990-01-01" email: "" firstname: Donor - otherNames: "" id: 3024 linked: - id: 3024 - uId: 7000-0013-6270 + uId: "700000136270" middlenames: "" + otherNames: "" salutation: Mr surname: Two - uId: 7000-0013-6270 - hasSeveranceWarning: false + uId: "700000136270" + hasSeveranceWarning: true id: 1732 invalidDate: null lifeSustainingTreatment: Option A @@ -1201,17 +1201,38 @@ paths: dob: "1990-01-01" email: null firstname: Replacement - otherNames: null id: 3039 middlenames: null + otherNames: null salutation: Mr surname: Attorney systemStatus: true - uId: 7000-0013-6965 + uId: "700000136965" status: Registered statusDate: null - trustCorporations: [] - uId: 7000-0013-6361 + trustCorporations: + - addresses: + - addressLine1: "" + addressLine2: "" + addressLine3: "" + country: "" + county: "" + id: 3409 + postcode: "" + town: "" + type: Primary + companyName: jdoe org + dob: null + email: null + firstname: julie + id: 3692 + middlenames: "" + otherNames: null + salutation: null + surname: doe org + systemStatus: true + uId: "700000160361" + uId: "700000136361" withdrawnDate: null lpa7237: value: @@ -1234,13 +1255,13 @@ paths: dob: "1986-09-01" email: null firstname: bill - otherNames: null id: 3492 middlenames: null + otherNames: null salutation: null surname: horton systemStatus: true - uId: 7000-0015-2236 + uId: "700000152236" - addresses: - addressLine1: 1 test street addressLine2: "" @@ -1255,13 +1276,13 @@ paths: dob: "1982-07-05" email: null firstname: Julie - otherNames: null id: 3493 middlenames: null + otherNames: null salutation: null surname: Doe systemStatus: true - uId: 7000-0015-2269 + uId: "700000152269" - addresses: - addressLine1: 1 test road addressLine2: "" @@ -1276,13 +1297,13 @@ paths: dob: "1985-09-01" email: null firstname: sarah - otherNames: null id: 3494 middlenames: null + otherNames: null salutation: null surname: lewis systemStatus: true - uId: 7000-0015-2293 + uId: "700000152293" - addresses: - addressLine1: White Gates addressLine2: The Street @@ -1297,13 +1318,13 @@ paths: dob: "2000-12-12" email: cris@crisreynolds.com firstname: jane - otherNames: null id: 3620 middlenames: null + otherNames: null salutation: null surname: doe systemStatus: true - uId: 7000-0015-8084 + uId: "700000158084" cancellationDate: "2020-07-02" caseAttorneyJointly: false caseAttorneyJointlyAndJointlyAndSeverally: false @@ -1327,15 +1348,15 @@ paths: dob: "1990-07-01" email: "" firstname: Status - otherNames: null id: 3044 linked: - id: 3044 - uId: 7000-0013-7112 + uId: "700000137112" middlenames: "" + otherNames: "" salutation: Mr surname: Test - uId: 7000-0013-7112 + uId: "700000137112" hasSeveranceWarning: false id: 1740 invalidDate: null @@ -1350,5 +1371,5 @@ paths: status: Registered statusDate: null trustCorporations: [] - uId: 7000-0013-7237 + uId: "700000137237" withdrawnDate: null diff --git a/mock-integrations/opg-data-lpa/mock-openapi.yaml b/mock-integrations/opg-data-lpa/mock-openapi.yaml index dfb0a15815..a5f03e753a 100644 --- a/mock-integrations/opg-data-lpa/mock-openapi.yaml +++ b/mock-integrations/opg-data-lpa/mock-openapi.yaml @@ -27,13 +27,13 @@ paths: dob: "1990-05-04" email: "" firstname: Jean - otherNames: "" id: 9 middlenames: "" + otherNames: null salutation: "" surname: Sanderson systemStatus: true - uId: 7000-0000-0815 + uId: "700000000815" - addresses: - addressLine1: 7 The Low Street addressLine2: "" @@ -48,13 +48,13 @@ paths: dob: "1975-10-05" email: XXXXX firstname: Annette - otherNames: Anne id: 12 middlenames: "" + otherNames: null salutation: Mrs surname: Doe systemStatus: true - uId: 7000-0000-0849 + uId: "700000000849" - addresses: - addressLine1: Home addressLine2: "" @@ -69,13 +69,13 @@ paths: dob: "2000-12-15" email: null firstname: Jess - otherNames: null id: 3453 middlenames: null + otherNames: null salutation: null surname: Doe systemStatus: true - uId: 7000-0015-0610 + uId: "700000150610" - addresses: - addressLine1: "" addressLine2: "" @@ -90,13 +90,13 @@ paths: dob: null email: null firstname: "" - otherNames: "" id: 3481 middlenames: null + otherNames: null salutation: null surname: "" systemStatus: true - uId: 7000-0015-1816 + uId: "700000151816" - addresses: - addressLine1: "" addressLine2: "" @@ -111,13 +111,13 @@ paths: dob: null email: null firstname: "" - otherNames: "" id: 3482 middlenames: null + otherNames: null salutation: null surname: "" systemStatus: true - uId: 7000-0015-1840 + uId: "700000151840" - addresses: - addressLine1: Embankment House addressLine2: "" @@ -132,13 +132,13 @@ paths: dob: "1941-01-03" email: null firstname: Ọlá-Bándélé - otherNames: Ṣhókkẹ́ id: 3568 middlenames: Ṣhókọ̀yà + otherNames: null salutation: Mr surname: Ọ̀kẹ́ systemStatus: true - uId: 7000-0015-5924 + uId: "700000155924" cancellationDate: null caseAttorneyJointly: false caseAttorneyJointlyAndJointlyAndSeverally: true @@ -159,12 +159,12 @@ paths: dob: null email: null firstname: Danielle - otherNames: null id: 11 middlenames: null + otherNames: null salutation: Miss surname: 'Hart ' - uId: 7000-0000-0831 + uId: "700000000831" dispatchDate: "2021-04-26" donor: addresses: @@ -181,15 +181,15 @@ paths: dob: "1948-11-01" email: RachelSanderson@opgtest.com firstname: Rachel - otherNames: Rach id: 7 linked: - id: 7 - uId: 7000-0000-0799 + uId: "700000000799" middlenames: Emma + otherNames: "" salutation: Mr surname: Sanderson - uId: 7000-0000-0799 + uId: "700000000799" hasSeveranceWarning: false id: 2 invalidDate: null @@ -204,11 +204,11 @@ paths: status: Registered statusDate: null trustCorporations: [] - uId: 7000-0000-0047 + uId: "700000000047" withdrawnDate: null lpa0138: value: - applicationHasGuidance: true + applicationHasGuidance: false applicationHasRestrictions: true applicationType: Classic attorneyActDecisions: null @@ -227,13 +227,13 @@ paths: dob: "1975-10-05" email: SimonMatthews@opgtest.com firstname: Simon - otherNames: Si id: 25 middlenames: "" + otherNames: null salutation: Mr surname: Matthews systemStatus: true - uId: 7000-0000-0997 + uId: "700000000997" - addresses: - addressLine1: my house addressLine2: "" @@ -248,13 +248,13 @@ paths: dob: "1990-03-17" email: "" firstname: Simone - otherNames: "" id: 2588 middlenames: "" + otherNames: null salutation: Miss surname: Matthews systemStatus: true - uId: 7000-0011-6322 + uId: "700000116322" - addresses: - addressLine1: Home addressLine2: "" @@ -269,13 +269,13 @@ paths: dob: "2000-05-14" email: null firstname: Doobie - otherNames: Scooby id: 3352 middlenames: null + otherNames: null salutation: Mr surname: Doo systemStatus: true - uId: 7000-0014-6980 + uId: "700000146980" - addresses: - addressLine1: Home addressLine2: Home @@ -290,13 +290,13 @@ paths: dob: "1981-06-14" email: null firstname: David - otherNames: null id: 3353 middlenames: null + otherNames: null salutation: null surname: Jones systemStatus: true - uId: 7000-0014-7012 + uId: "700000147012" - addresses: - addressLine1: 25 The High Street addressLine2: "" @@ -311,13 +311,13 @@ paths: dob: "1961-06-14" email: null firstname: Jane - otherNames: null id: 3357 middlenames: null + otherNames: null salutation: null surname: Doe systemStatus: true - uId: 7000-0014-7137 + uId: "700000147137" - addresses: - addressLine1: 7 The Low Street addressLine2: "" @@ -332,13 +332,13 @@ paths: dob: "1981-06-14" email: null firstname: Daisy - otherNames: null id: 3383 middlenames: null + otherNames: null salutation: null surname: Brown systemStatus: true - uId: 7000-0014-7947 + uId: "700000147947" - addresses: - addressLine1: 115 Danford Lane addressLine2: "" @@ -353,13 +353,13 @@ paths: dob: "1981-06-14" email: null firstname: Daisy - otherNames: null id: 3396 middlenames: null + otherNames: null salutation: null surname: Chain systemStatus: true - uId: 7000-0014-8515 + uId: "700000148515" - addresses: - addressLine1: 1 test road addressLine2: "" @@ -373,14 +373,14 @@ paths: companyName: null dob: "1989-01-01" email: null - firstname: daniel's - otherNames: null + firstname: Daniels id: 3460 middlenames: null + otherNames: null salutation: mr - surname: john + surname: John systemStatus: true - uId: 7000-0015-0974 + uId: "700000150974" cancellationDate: "2020-03-17" caseAttorneyJointly: true caseAttorneyJointlyAndJointlyAndSeverally: false @@ -401,12 +401,12 @@ paths: dob: null email: null firstname: Joanne - otherNames: null id: 27 middlenames: null + otherNames: null salutation: Mrs surname: Armstrong - uId: 7000-0000-1011 + uId: "700000001011" dispatchDate: "2021-10-14" donor: addresses: @@ -423,30 +423,30 @@ paths: dob: "1948-11-01" email: babaragilson@opgtest.com firstname: Babara - otherNames: Bab id: 23 linked: - id: 23 - uId: 7000-0000-0971 + uId: "700000000971" middlenames: Suzanne + otherNames: Barbara Gilson Stewart salutation: Mrs surname: Gilson - uId: 7000-0000-0971 - hasSeveranceWarning: false + uId: "700000000971" + hasSeveranceWarning: true id: 5 - invalidDate: null + invalidDate: "2024-06-04" lifeSustainingTreatment: Option B lpaDonorSignatureDate: "2016-01-01" lpaIsCleansed: false onlineLpaId: A15527329531 receiptDate: "2014-09-26" - registrationDate: "2018-05-15" + registrationDate: "2024-06-04" rejectedDate: null replacementAttorneys: [] status: Registered - statusDate: null + statusDate: "2024-06-04" trustCorporations: [] - uId: 7000-0000-0138 + uId: "700000000138" withdrawnDate: null lpa0252: value: @@ -469,13 +469,13 @@ paths: dob: "1975-10-05" email: TainaRucker@opgtest.com firstname: Taina - otherNames: "" id: 45 middlenames: "" + otherNames: "" salutation: Mr surname: Rucker systemStatus: false - uId: 7000-0000-1235 + uId: "700000001235" cancellationDate: "2020-02-03" caseAttorneyJointly: false caseAttorneyJointlyAndJointlyAndSeverally: false @@ -496,12 +496,12 @@ paths: dob: null email: null firstname: Desire - otherNames: null id: 47 middlenames: null + otherNames: null salutation: Miss surname: Beasley - uId: 7000-0000-1250 + uId: "700000001250" dispatchDate: null donor: addresses: @@ -518,15 +518,15 @@ paths: dob: "1948-11-01" email: orethalang@opgtest.com firstname: Babara - otherNames: null id: 43 linked: - id: 43 - uId: 7000-0000-1219 + uId: "700000001219" middlenames: Suzanne + otherNames: "" salutation: "" surname: Gilson - uId: 7000-0000-1219 + uId: "700000001219" hasSeveranceWarning: false id: 9 invalidDate: null @@ -541,7 +541,7 @@ paths: status: Cancelled statusDate: null trustCorporations: [] - uId: 7000-0000-0252 + uId: "700000000252" withdrawnDate: null lpa0344: value: @@ -564,13 +564,13 @@ paths: dob: "1975-10-05" email: SimonMatthews@opgtest.com firstname: Simon - otherNames: Si id: 64 middlenames: null + otherNames: null salutation: Mr surname: Matthews systemStatus: true - uId: 7000-0000-1441 + uId: "700000001441" - addresses: - addressLine1: 1 Use Lane addressLine2: "" @@ -585,13 +585,13 @@ paths: dob: "1975-10-05" email: null firstname: simone - otherNames: null id: 3022 middlenames: null + otherNames: null salutation: miss surname: matthews systemStatus: true - uId: 7000-0013-6098 + uId: "700000136098" cancellationDate: null caseAttorneyJointly: false caseAttorneyJointlyAndJointlyAndSeverally: false @@ -612,12 +612,12 @@ paths: dob: null email: null firstname: David - otherNames: null id: 63 middlenames: null + otherNames: null salutation: Mr surname: Stewart - uId: 7000-0000-1433 + uId: "700000001433" dispatchDate: null donor: addresses: @@ -634,22 +634,22 @@ paths: dob: "1948-11-01" email: linkedpersonone@opgtest.com firstname: Linked - otherNames: Link id: 53 linked: - id: 53 - uId: 7000-0000-1334 + uId: "700000001334" - id: 59 - uId: 7000-0000-1391 + uId: "700000001391" - id: 98 - uId: 7000-0000-1813 + uId: "700000001813" - id: 110 - uId: 7000-0000-1938 + uId: "700000001938" middlenames: Person + otherNames: "" salutation: Mr surname: One - uId: 7000-0000-1334 - hasSeveranceWarning: false + uId: "700000001334" + hasSeveranceWarning: true id: 12 invalidDate: null lifeSustainingTreatment: null @@ -663,7 +663,7 @@ paths: status: Registered statusDate: null trustCorporations: [] - uId: 7000-0000-0344 + uId: "700000000344" withdrawnDate: null lpa0435: value: @@ -686,13 +686,13 @@ paths: dob: "1975-10-05" email: AndreaRobinson@opgtest.com firstname: Andrea - otherNames: null id: 78 middlenames: null + otherNames: null salutation: Mrs surname: Robinson systemStatus: true - uId: 7000-0000-1599 + uId: "700000001599" cancellationDate: null caseAttorneyJointly: false caseAttorneyJointlyAndJointlyAndSeverally: false @@ -713,12 +713,12 @@ paths: dob: null email: null firstname: Rachel - otherNames: Rach id: 80 middlenames: null + otherNames: null salutation: Mrs surname: Sanderson - uId: 7000-0000-1615 + uId: "700000001615" dispatchDate: "2022-02-17" donor: addresses: @@ -735,15 +735,15 @@ paths: dob: "1948-11-01" email: demtriceflood@opgtest.com firstname: Demetrice - otherNames: null id: 76 linked: - id: 76 - uId: 7000-0000-1573 + uId: "700000001573" middlenames: Ophelia + otherNames: "" salutation: Mrs surname: Flood - uId: 7000-0000-1573 + uId: "700000001573" hasSeveranceWarning: false id: 15 invalidDate: null @@ -758,7 +758,7 @@ paths: status: Registered statusDate: "2022-01-17" trustCorporations: [] - uId: 7000-0000-0435 + uId: "700000000435" withdrawnDate: null lpa0526: value: @@ -781,13 +781,13 @@ paths: dob: "1975-10-05" email: SimonMatthews@opgtest.com firstname: Simon - otherNames: Si id: 97 middlenames: null + otherNames: null salutation: Mr surname: Matthews systemStatus: true - uId: 7000-0000-1805 + uId: "700000001805" cancellationDate: null caseAttorneyJointly: false caseAttorneyJointlyAndJointlyAndSeverally: true @@ -808,12 +808,12 @@ paths: dob: null email: null firstname: David - otherNames: null id: 96 middlenames: null + otherNames: null salutation: Mr surname: Stewart - uId: 7000-0000-1797 + uId: "700000001797" dispatchDate: null donor: addresses: @@ -830,15 +830,15 @@ paths: dob: "1948-11-01" email: cherrylschindler@opgtest.com firstname: Cherryl - otherNames: null id: 92 linked: - id: 92 - uId: 7000-0000-1755 + uId: "700000001755" middlenames: Marie + otherNames: "" salutation: Ms surname: Schindler - uId: 7000-0000-1755 + uId: "700000001755" hasSeveranceWarning: false id: 18 invalidDate: null @@ -853,7 +853,7 @@ paths: status: Pending statusDate: null trustCorporations: [] - uId: 7000-0000-0526 + uId: "700000000526" withdrawnDate: null lpa0617: value: @@ -876,13 +876,13 @@ paths: dob: "1975-10-05" email: SimonMatthews@opgtest.com firstname: Simon - otherNames: Si id: 115 middlenames: null + otherNames: null salutation: Mr surname: Matthews systemStatus: true - uId: 7000-0000-1987 + uId: "700000001987" cancellationDate: null caseAttorneyJointly: false caseAttorneyJointlyAndJointlyAndSeverally: false @@ -903,12 +903,12 @@ paths: dob: null email: null firstname: David - otherNames: null id: 114 middlenames: null + otherNames: null salutation: Mr surname: Stewart - uId: 7000-0000-1979 + uId: "700000001979" dispatchDate: null donor: addresses: @@ -925,21 +925,21 @@ paths: dob: "1948-11-01" email: linkedpersonone@opgtest.com firstname: Linked - otherNames: Link id: 53 linked: - id: 53 - uId: 7000-0000-1334 + uId: "700000001334" - id: 59 - uId: 7000-0000-1391 + uId: "700000001391" - id: 98 - uId: 7000-0000-1813 + uId: "700000001813" - id: 110 - uId: 7000-0000-1938 + uId: "700000001938" middlenames: Person + otherNames: "" salutation: Mr surname: One - uId: 7000-0000-1334 + uId: "700000001334" hasSeveranceWarning: false id: 21 invalidDate: null @@ -954,7 +954,7 @@ paths: status: Pending statusDate: null trustCorporations: [] - uId: 7000-0000-0617 + uId: "700000000617" withdrawnDate: null lpa1451: value: @@ -977,13 +977,13 @@ paths: dob: "1989-01-01" email: null firstname: ross - otherNames: null id: 3471 middlenames: null + otherNames: null salutation: mr surname: smith systemStatus: true - uId: 7000-0015-1485 + uId: "700000151485" - addresses: - addressLine1: "10" addressLine2: "" @@ -998,13 +998,13 @@ paths: dob: "2010-01-02" email: null firstname: rachel - otherNames: rach id: 3472 middlenames: null + otherNames: null salutation: mr surname: smith systemStatus: true - uId: 7000-0015-1519 + uId: "700000151519" - addresses: - addressLine1: 1 test road addressLine2: "" @@ -1019,13 +1019,13 @@ paths: dob: "1911-01-01" email: null firstname: phoebe - otherNames: null id: 3500 middlenames: null + otherNames: null salutation: null surname: mills systemStatus: true - uId: 7000-0015-2475 + uId: "700000152475" cancellationDate: null caseAttorneyJointly: false caseAttorneyJointlyAndJointlyAndSeverally: false @@ -1049,15 +1049,15 @@ paths: dob: "1944-08-14" email: null firstname: Donald - otherNames: null id: 136 linked: - id: 136 - uId: 7000-0000-2266 + uId: "700000002266" middlenames: John + otherNames: null salutation: Mr surname: Smith - uId: 7000-0000-2266 + uId: "700000002266" hasSeveranceWarning: false id: 1863 invalidDate: null @@ -1086,14 +1086,14 @@ paths: dob: null email: null firstname: trust - otherNames: null id: 3485 middlenames: null + otherNames: null salutation: null surname: test systemStatus: true - uId: 7000-0015-1998 - uId: 7000-0015-1451 + uId: "700000151998" + uId: "700000151451" withdrawnDate: null lpa6361: value: @@ -1116,13 +1116,13 @@ paths: dob: "2000-06-09" email: "" firstname: Jessica - otherNames: null id: 3037 middlenames: "" + otherNames: null salutation: Mrs surname: Test systemStatus: true - uId: 7000-0013-6908 + uId: "700000136908" - addresses: - addressLine1: 7 The Low Street addressLine2: "" @@ -1137,13 +1137,13 @@ paths: dob: "1981-06-14" email: null firstname: John - otherNames: null id: 3318 middlenames: null + otherNames: null salutation: Mr surname: Doe systemStatus: true - uId: 7000-0014-5909 + uId: "700000145909" cancellationDate: null caseAttorneyJointly: false caseAttorneyJointlyAndJointlyAndSeverally: false @@ -1167,16 +1167,16 @@ paths: dob: "1990-01-01" email: "" firstname: Donor - otherNames: "" id: 3024 linked: - id: 3024 - uId: 7000-0013-6270 + uId: "700000136270" middlenames: "" + otherNames: "" salutation: Mr surname: Two - uId: 7000-0013-6270 - hasSeveranceWarning: false + uId: "700000136270" + hasSeveranceWarning: true id: 1732 invalidDate: null lifeSustainingTreatment: Option A @@ -1201,17 +1201,38 @@ paths: dob: "1990-01-01" email: null firstname: Replacement - otherNames: null id: 3039 middlenames: null + otherNames: null salutation: Mr surname: Attorney systemStatus: true - uId: 7000-0013-6965 + uId: "700000136965" status: Registered statusDate: null - trustCorporations: [] - uId: 7000-0013-6361 + trustCorporations: + - addresses: + - addressLine1: "" + addressLine2: "" + addressLine3: "" + country: "" + county: "" + id: 3409 + postcode: "" + town: "" + type: Primary + companyName: jdoe org + dob: null + email: null + firstname: julie + id: 3692 + middlenames: "" + otherNames: null + salutation: null + surname: doe org + systemStatus: true + uId: "700000160361" + uId: "700000136361" withdrawnDate: null lpa7237: value: @@ -1234,13 +1255,13 @@ paths: dob: "1986-09-01" email: null firstname: bill - otherNames: null id: 3492 middlenames: null + otherNames: null salutation: null surname: horton systemStatus: true - uId: 7000-0015-2236 + uId: "700000152236" - addresses: - addressLine1: 1 test street addressLine2: "" @@ -1255,13 +1276,13 @@ paths: dob: "1982-07-05" email: null firstname: Julie - otherNames: null id: 3493 middlenames: null + otherNames: null salutation: null surname: Doe systemStatus: true - uId: 7000-0015-2269 + uId: "700000152269" - addresses: - addressLine1: 1 test road addressLine2: "" @@ -1276,13 +1297,13 @@ paths: dob: "1985-09-01" email: null firstname: sarah - otherNames: null id: 3494 middlenames: null + otherNames: null salutation: null surname: lewis systemStatus: true - uId: 7000-0015-2293 + uId: "700000152293" - addresses: - addressLine1: White Gates addressLine2: The Street @@ -1297,13 +1318,13 @@ paths: dob: "2000-12-12" email: cris@crisreynolds.com firstname: jane - otherNames: null id: 3620 middlenames: null + otherNames: null salutation: null surname: doe systemStatus: true - uId: 7000-0015-8084 + uId: "700000158084" cancellationDate: "2020-07-02" caseAttorneyJointly: false caseAttorneyJointlyAndJointlyAndSeverally: false @@ -1327,15 +1348,15 @@ paths: dob: "1990-07-01" email: "" firstname: Status - otherNames: null id: 3044 linked: - id: 3044 - uId: 7000-0013-7112 + uId: "700000137112" middlenames: "" + otherNames: "" salutation: Mr surname: Test - uId: 7000-0013-7112 + uId: "700000137112" hasSeveranceWarning: false id: 1740 invalidDate: null @@ -1350,7 +1371,7 @@ paths: status: Registered statusDate: null trustCorporations: [] - uId: 7000-0013-7237 + uId: "700000137237" withdrawnDate: null schema: $ref: '#/components/schemas/Lpa' diff --git a/mock-integrations/secrets-manager/localstack_init.sh b/mock-integrations/secrets-manager/localstack_init.sh index b52b13cc7d..188c179cc7 100755 --- a/mock-integrations/secrets-manager/localstack_init.sh +++ b/mock-integrations/secrets-manager/localstack_init.sh @@ -13,4 +13,4 @@ awslocal secretsmanager create-secret --name gov-uk-onelogin-identity-private-ke awslocal secretsmanager create-secret --name lpa-data-store-secret \ --region "eu-west-1" \ --description "Local development lpa store secret" \ - --secret-string "A shared secret string" \ No newline at end of file + --secret-string "A shared secret string that needs to be at least 128 bits long"