From 81fba250df71577d4f7bc1532f0b2bd8fbfb44cf Mon Sep 17 00:00:00 2001 From: kathryn-ods Date: Wed, 21 Aug 2024 10:58:00 +0100 Subject: [PATCH] test --- ....json => duplicatestatementidinvalid.json} | 32 ++------- ...json => duplicatestatementidinvalid2.json} | 22 +++--- ...id.json => duplicatestatementidvalid.json} | 7 +- .../interestedParty_invalid2.json | 62 ----------------- .../statementseriesinvalid.json | 68 ------------------- .../statementseriesinvalid3.json | 68 ------------------- .../statementseriesvalid.json | 68 ------------------- .../statementseriesvalid2.json | 63 ----------------- 8 files changed, 19 insertions(+), 371 deletions(-) rename tests/data/valid-statements/{interestedParty_invalid.json => duplicatestatementidinvalid.json} (53%) rename tests/data/valid-statements/{interestedParty_valid2.json => duplicatestatementidinvalid2.json} (74%) rename tests/data/valid-statements/{interestedParty_valid.json => duplicatestatementidvalid.json} (87%) delete mode 100644 tests/data/valid-statements/interestedParty_invalid2.json delete mode 100644 tests/data/valid-statements/statementseriesinvalid.json delete mode 100644 tests/data/valid-statements/statementseriesinvalid3.json delete mode 100644 tests/data/valid-statements/statementseriesvalid.json delete mode 100644 tests/data/valid-statements/statementseriesvalid2.json diff --git a/tests/data/valid-statements/interestedParty_invalid.json b/tests/data/valid-statements/duplicatestatementidinvalid.json similarity index 53% rename from tests/data/valid-statements/interestedParty_invalid.json rename to tests/data/valid-statements/duplicatestatementidinvalid.json index cbc59de4..f23d9bf1 100644 --- a/tests/data/valid-statements/interestedParty_invalid.json +++ b/tests/data/valid-statements/duplicatestatementidinvalid.json @@ -13,16 +13,14 @@ } }, { - "statementId": "019a93f1-e470-42e9-957b-03559861b2e2", + "statementId": "1dc0e987-5c57-4a1c-b3ad-61353b66a9b7", "declarationSubject": "c359f58d2977", "statementDate": "2020-03-04", "recordId": "10478c6cf6de", - "recordType": "entity", + "recordType": "person", "recordDetails": { "isComponent": false, - "entityType": { - "type": "registeredEntity" - } + "personType": "knownPerson" } }, { @@ -34,29 +32,7 @@ "recordDetails": { "isComponent": false, "subject": "c359f58d2977", - "interestedParty": "123", - "interests":[ - { - "beneficialOwnershipOrControl": true - } - ] - } - }, - { - "statementId": "cd4c52633f6761962e98e1dd9dbf7da7", - "declarationSubject": "c359f58d2977", - "statementDate": "2020-03-04", - "recordId": "", - "recordType": "relationship", - "recordDetails": { - "isComponent": false, - "subject": "c359f58d2977", - "interestedParty": "93b53022ae6a", - "interests":[ - { - "beneficialOwnershipOrControl": true - } - ] + "interestedParty": "10478c6cf6de" } } ] diff --git a/tests/data/valid-statements/interestedParty_valid2.json b/tests/data/valid-statements/duplicatestatementidinvalid2.json similarity index 74% rename from tests/data/valid-statements/interestedParty_valid2.json rename to tests/data/valid-statements/duplicatestatementidinvalid2.json index ed0da590..710cee50 100644 --- a/tests/data/valid-statements/interestedParty_valid2.json +++ b/tests/data/valid-statements/duplicatestatementidinvalid2.json @@ -13,10 +13,10 @@ } }, { - "statementId": "019a93f1-e470-42e9-957b-03559861b2e2", + "statementId": "1dc0e987-5c57-4a1c-b3ad-61353b66a9b7", "declarationSubject": "c359f58d2977", "statementDate": "2020-03-04", - "recordId": "10478c6cf6de", + "recordId": "c359f58d2977", "recordType": "entity", "recordDetails": { "isComponent": false, @@ -25,6 +25,17 @@ } } }, + { + "statementId": "019a93f1-e470-42e9-957b-03559861b2e2", + "declarationSubject": "c359f58d2977", + "statementDate": "2020-03-04", + "recordId": "10478c6cf6de", + "recordType": "person", + "recordDetails": { + "isComponent": false, + "personType": "knownPerson" + } + }, { "statementId": "fbfd0547-d0c6-4a00-b559-5c5e91c34f5c", "declarationSubject": "c359f58d2977", @@ -34,12 +45,7 @@ "recordDetails": { "isComponent": false, "subject": "c359f58d2977", - "interestedParty": "10478c6cf6de", - "interests":[ - { - "beneficialOwnershipOrControl": false - } - ] + "interestedParty": "10478c6cf6de" } } ] diff --git a/tests/data/valid-statements/interestedParty_valid.json b/tests/data/valid-statements/duplicatestatementidvalid.json similarity index 87% rename from tests/data/valid-statements/interestedParty_valid.json rename to tests/data/valid-statements/duplicatestatementidvalid.json index a9d179cf..0a8d9df2 100644 --- a/tests/data/valid-statements/interestedParty_valid.json +++ b/tests/data/valid-statements/duplicatestatementidvalid.json @@ -32,12 +32,7 @@ "recordDetails": { "isComponent": false, "subject": "c359f58d2977", - "interestedParty": "10478c6cf6de", - "interests":[ - { - "beneficialOwnershipOrControl": true - } - ] + "interestedParty": "10478c6cf6de" } } ] diff --git a/tests/data/valid-statements/interestedParty_invalid2.json b/tests/data/valid-statements/interestedParty_invalid2.json deleted file mode 100644 index fcfff556..00000000 --- a/tests/data/valid-statements/interestedParty_invalid2.json +++ /dev/null @@ -1,62 +0,0 @@ -[ - { - "statementId": "1dc0e987-5c57-4a1c-b3ad-61353b66a9b7", - "declarationSubject": "c359f58d2977", - "statementDate": "2020-03-04", - "recordId": "c359f58d2977", - "recordType": "entity", - "recordDetails": { - "isComponent": false, - "entityType": { - "type": "registeredEntity" - } - } - }, - { - "statementId": "019a93f1-e470-42e9-957b-03559861b2e2", - "declarationSubject": "c359f58d2977", - "statementDate": "2020-03-04", - "recordId": "10478c6cf6de", - "recordType": "entity", - "recordDetails": { - "isComponent": false, - "entityType": { - "type": "registeredEntity" - } - } - }, - { - "statementId": "fbfd0547-d0c6-4a00-b559-5c5e91c34f5c", - "declarationSubject": "c359f58d2977", - "statementDate": "2020-03-04", - "recordId": "93b53022ae6a", - "recordType": "relationship", - "recordDetails": { - "isComponent": false, - "subject": "c359f58d2977", - "interestedParty": "10478c6cf6de", - "interests":[ - { - "beneficialOwnershipOrControl": true - } - ] - } - }, - { - "statementId": "cd4c52633f6761962e98e1dd9dbf7da7", - "declarationSubject": "c359f58d2977", - "statementDate": "2020-03-04", - "recordId": "", - "recordType": "relationship", - "recordDetails": { - "isComponent": false, - "subject": "c359f58d2977", - "interestedParty": "93b53022ae6a", - "interests":[ - { - "beneficialOwnershipOrControl": true - } - ] - } - } -] diff --git a/tests/data/valid-statements/statementseriesinvalid.json b/tests/data/valid-statements/statementseriesinvalid.json deleted file mode 100644 index 95280507..00000000 --- a/tests/data/valid-statements/statementseriesinvalid.json +++ /dev/null @@ -1,68 +0,0 @@ -[ - { - "statementId": "1dc0e987-5c57-4a1c-b3ad-61353b66a9b7", - "declarationSubject": "c359f58d2977", - "statementDate": "2020-03-04", - "recordId": "c359f58d2977", - "recordType": "entity", - "recordStatus": "new", - "recordDetails": { - "isComponent": false, - "entityType": { - "type": "registeredEntity" - } - } - }, - { - "statementId": "1dc0e987-5c57-4a1c-b3ad-61353b66a9b7", - "declarationSubject": "c359f58d2977", - "statementDate": "2020-04-04", - "recordId": "c359f58d2977", - "recordType": "entity", - "recordStatus": "new", - "recordDetails": { - "isComponent": false, - "entityType": { - "type": "registeredEntity" - } - } - }, - { - "statementId": "1dc0e987-5c57-4a1c-b3ad-61353b66a9b7", - "declarationSubject": "c359f58d2977", - "statementDate": "2021-03-04", - "recordId": "c359f58d2977", - "recordType": "entity", - "recordStatus": "closed", - "recordDetails": { - "isComponent": false, - "entityType": { - "type": "registeredEntity" - } - } - }, - { - "statementId": "019a93f1-e470-42e9-957b-03559861b2e2", - "declarationSubject": "c359f58d2977", - "statementDate": "2020-03-04", - "recordId": "10478c6cf6de", - "recordType": "person", - "recordStatus": "new", - "recordDetails": { - "isComponent": false, - "personType": "knownPerson" - } - }, - { - "statementId": "019a93f1-e470-42e9-957b-03559861b2e2", - "declarationSubject": "c359f58d2977", - "statementDate": "2021-03-04", - "recordId": "10478c6cf6de", - "recordType": "person", - "recordStatus": "updated", - "recordDetails": { - "isComponent": false, - "personType": "knownPerson" - } - } -] diff --git a/tests/data/valid-statements/statementseriesinvalid3.json b/tests/data/valid-statements/statementseriesinvalid3.json deleted file mode 100644 index e79426d4..00000000 --- a/tests/data/valid-statements/statementseriesinvalid3.json +++ /dev/null @@ -1,68 +0,0 @@ -[ - { - "statementId": "1dc0e987-5c57-4a1c-b3ad-61353b66a9b7", - "declarationSubject": "c359f58d2977", - "statementDate": "2020-03-04", - "recordId": "c359f58d2977", - "recordType": "entity", - "recordStatus": "new", - "recordDetails": { - "isComponent": false, - "entityType": { - "type": "registeredEntity" - } - } - }, - { - "statementId": "1dc0e987-5c57-4a1c-b3ad-61353b66a9b7", - "declarationSubject": "c359f58d2977", - "statementDate": "2020-04-04", - "recordId": "c359f58d2977", - "recordType": "entity", - "recordStatus": "updated", - "recordDetails": { - "isComponent": false, - "entityType": { - "type": "registeredEntity" - } - } - }, - { - "statementId": "1dc0e987-5c57-4a1c-b3ad-61353b66a9b7", - "declarationSubject": "c359f58d2977", - "statementDate": "2021-03-04", - "recordId": "c359f58d2977", - "recordType": "entity", - "recordStatus": "closed", - "recordDetails": { - "isComponent": false, - "entityType": { - "type": "registeredEntity" - } - } - }, - { - "statementId": "019a93f1-e470-42e9-957b-03559861b2e2", - "declarationSubject": "c359f58d2977", - "statementDate": "2022-03-04", - "recordId": "10478c6cf6de", - "recordType": "person", - "recordStatus": "new", - "recordDetails": { - "isComponent": false, - "personType": "knownPerson" - } - }, - { - "statementId": "019a93f1-e470-42e9-957b-03559861b2e2", - "declarationSubject": "c359f58d2977", - "statementDate": "2021-03-04", - "recordId": "10478c6cf6de", - "recordType": "person", - "recordStatus": "updated", - "recordDetails": { - "isComponent": false, - "personType": "knownPerson" - } - } -] diff --git a/tests/data/valid-statements/statementseriesvalid.json b/tests/data/valid-statements/statementseriesvalid.json deleted file mode 100644 index 64d0d69c..00000000 --- a/tests/data/valid-statements/statementseriesvalid.json +++ /dev/null @@ -1,68 +0,0 @@ -[ - { - "statementId": "1dc0e987-5c57-4a1c-b3ad-61353b66a9b7", - "declarationSubject": "c359f58d2977", - "statementDate": "2020-03-04", - "recordId": "c359f58d2977", - "recordType": "entity", - "recordStatus": "new", - "recordDetails": { - "isComponent": false, - "entityType": { - "type": "registeredEntity" - } - } - }, - { - "statementId": "1dc0e987-5c57-4a1c-b3ad-61353b66a9b7", - "declarationSubject": "c359f58d2977", - "statementDate": "2020-04-04", - "recordId": "c359f58d2977", - "recordType": "entity", - "recordStatus": "updated", - "recordDetails": { - "isComponent": false, - "entityType": { - "type": "registeredEntity" - } - } - }, - { - "statementId": "1dc0e987-5c57-4a1c-b3ad-61353b66a9b7", - "declarationSubject": "c359f58d2977", - "statementDate": "2021-03-04", - "recordId": "c359f58d2977", - "recordType": "entity", - "recordStatus": "closed", - "recordDetails": { - "isComponent": false, - "entityType": { - "type": "registeredEntity" - } - } - }, - { - "statementId": "019a93f1-e470-42e9-957b-03559861b2e2", - "declarationSubject": "c359f58d2977", - "statementDate": "2020-03-04", - "recordId": "10478c6cf6de", - "recordType": "person", - "recordStatus": "new", - "recordDetails": { - "isComponent": false, - "personType": "knownPerson" - } - }, - { - "statementId": "019a93f1-e470-42e9-957b-03559861b2e2", - "declarationSubject": "c359f58d2977", - "statementDate": "2021-03-04", - "recordId": "10478c6cf6de", - "recordType": "person", - "recordStatus": "updated", - "recordDetails": { - "isComponent": false, - "personType": "knownPerson" - } - } -] diff --git a/tests/data/valid-statements/statementseriesvalid2.json b/tests/data/valid-statements/statementseriesvalid2.json deleted file mode 100644 index dad6b02d..00000000 --- a/tests/data/valid-statements/statementseriesvalid2.json +++ /dev/null @@ -1,63 +0,0 @@ -[ - { - "statementId": "1dc0e987-5c57-4a1c-b3ad-61353b66a9b7", - "declarationSubject": "c359f58d2977", - "statementDate": "2020-03-04", - "recordId": "c359f58d2977", - "recordType": "entity", - "recordDetails": { - "isComponent": false, - "entityType": { - "type": "registeredEntity" - } - } - }, - { - "statementId": "1dc0e987-5c57-4a1c-b3ad-61353b66a9b7", - "declarationSubject": "c359f58d2977", - "statementDate": "2020-04-04", - "recordId": "c359f58d2977", - "recordType": "entity", - "recordDetails": { - "isComponent": false, - "entityType": { - "type": "registeredEntity" - } - } - }, - { - "statementId": "1dc0e987-5c57-4a1c-b3ad-61353b66a9b7", - "declarationSubject": "c359f58d2977", - "statementDate": "2021-03-04", - "recordId": "c359f58d2977", - "recordType": "entity", - "recordDetails": { - "isComponent": false, - "entityType": { - "type": "registeredEntity" - } - } - }, - { - "statementId": "019a93f1-e470-42e9-957b-03559861b2e2", - "declarationSubject": "c359f58d2977", - "statementDate": "2020-03-04", - "recordId": "10478c6cf6de", - "recordType": "person", - "recordDetails": { - "isComponent": false, - "personType": "knownPerson" - } - }, - { - "statementId": "019a93f1-e470-42e9-957b-03559861b2e2", - "declarationSubject": "c359f58d2977", - "statementDate": "2021-03-04", - "recordId": "10478c6cf6de", - "recordType": "person", - "recordDetails": { - "isComponent": false, - "personType": "knownPerson" - } - } -]