From 7a95207d6807cced490b5414fff6e7eb06bcc7ef Mon Sep 17 00:00:00 2001 From: kathryn-ods Date: Wed, 14 Aug 2024 17:22:42 +0100 Subject: [PATCH] test --- .../Component Statement Invalid.json | 86 ------------------- .../Component Statement Invalid2.json | 86 ------------------- .../Component Statement Valid.json | 86 ------------------- .../data/valid-statements/subjectinvalid.json | 36 ++++++++ .../valid-statements/subjectinvalid2.json | 38 ++++++++ tests/data/valid-statements/subjectvalid.json | 38 ++++++++ 6 files changed, 112 insertions(+), 258 deletions(-) delete mode 100644 tests/data/valid-statements/Component Statement Invalid.json delete mode 100644 tests/data/valid-statements/Component Statement Invalid2.json delete mode 100644 tests/data/valid-statements/Component Statement Valid.json create mode 100644 tests/data/valid-statements/subjectinvalid.json create mode 100644 tests/data/valid-statements/subjectinvalid2.json create mode 100644 tests/data/valid-statements/subjectvalid.json diff --git a/tests/data/valid-statements/Component Statement Invalid.json b/tests/data/valid-statements/Component Statement Invalid.json deleted file mode 100644 index 38b7f18a..00000000 --- a/tests/data/valid-statements/Component Statement Invalid.json +++ /dev/null @@ -1,86 +0,0 @@ -[ - { - "statementId": "8729fec1-eb01-4866-ba40-dd5525d43db8", - "declarationSubject": "ad3f6c2fcc9e", - "statementDate": "2018-12-17", - "recordId": "ad3f6c2fcc9e", - "recordStatus": "new", - "recordType": "entity", - "recordDetails": { - "isComponent": false, - "entityType": { - "type": "registeredEntity" - } - } - }, - { - "statementId": "e2bbe3ce-f5b4-42d0-bb68-9b405e8fd6a0", - "declarationSubject": "ad3f6c2fcc9e", - "statementDate": "2018-12-17", - "recordId": "d4ab89ea169a", - "recordStatus": "new", - "recordType": "entity", - "recordDetails": { - "isComponent": true, - "entityType": { - "type": "registeredEntity" - } - } - }, - { - "statementId": "6b9cfb52-505a-49cb-ab02-cc856a4e5c66", - "declarationSubject": "ad3f6c2fcc9e", - "statementDate": "2018-12-17", - "recordId": "c25d4d612c2c", - "recordStatus": "new", - "recordType": "person", - "recordDetails": { - "isComponent": false, - "personType": "knownPerson" - } - }, - { - "statementId": "7fff3986-233f-413f-bec8-3b28c62a4a51", - "declarationSubject": "ad3f6c2fcc9e", - "statementDate": "2018-12-17", - "recordId": "4cf2837bd01f", - "recordStatus": "new", - "recordType": "relationship", - "recordDetails": { - "isComponent": true, - "subject": "ad3f6c2fcc9e", - "interestedParty": "d4ab89ea169a" - } - }, - { - "statementId": "860155d1-a4fb-4742-9735-7a7deb899075", - "declarationSubject": "ad3f6c2fcc9e", - "statementDate": "2018-12-17", - "recordId": "05e81af035e4", - "recordStatus": "new", - "recordType": "relationship", - "recordDetails": { - "isComponent": true, - "subject": "d4ab89ea169a", - "interestedParty": "c25d4d612c2c" - } - }, - { - "statementId": "cdb6acc7-426e-4a7a-9410-895d556fd329", - "declarationSubject": "ad3f6c2fcc9e", - "statementDate": "2018-12-17", - "recordId": "d8d75ccf40e4", - "recordStatus": "new", - "recordType": "relationship", - "recordDetails": { - "isComponent": false, - "subject": "ad3f6c2fcc9e", - "interestedParty": "c25d4d612c2c", - "componentRecords": [ - "860155d1-a4fb-4742-9735-7a7deb899075", - "4cf2837bd01f", - "05e81af035e4" - ] - } - } -] diff --git a/tests/data/valid-statements/Component Statement Invalid2.json b/tests/data/valid-statements/Component Statement Invalid2.json deleted file mode 100644 index bd338520..00000000 --- a/tests/data/valid-statements/Component Statement Invalid2.json +++ /dev/null @@ -1,86 +0,0 @@ -[ - { - "statementId": "8729fec1-eb01-4866-ba40-dd5525d43db8", - "declarationSubject": "ad3f6c2fcc9e", - "statementDate": "2018-12-17", - "recordId": "ad3f6c2fcc9e", - "recordStatus": "new", - "recordType": "entity", - "recordDetails": { - "isComponent": false, - "entityType": { - "type": "registeredEntity" - } - } - }, - { - "statementId": "e2bbe3ce-f5b4-42d0-bb68-9b405e8fd6a0", - "declarationSubject": "ad3f6c2fcc9e", - "statementDate": "2018-12-17", - "recordId": "d4ab89ea169a", - "recordStatus": "new", - "recordType": "entity", - "recordDetails": { - "isComponent": true, - "entityType": { - "type": "registeredEntity" - } - } - }, - { - "statementId": "6b9cfb52-505a-49cb-ab02-cc856a4e5c66", - "declarationSubject": "ad3f6c2fcc9e", - "statementDate": "2018-12-17", - "recordId": "c25d4d612c2c", - "recordStatus": "new", - "recordType": "person", - "recordDetails": { - "isComponent": false, - "personType": "knownPerson" - } - }, - { - "statementId": "7fff3986-233f-413f-bec8-3b28c62a4a51", - "declarationSubject": "ad3f6c2fcc9e", - "statementDate": "2018-12-17", - "recordId": "4cf2837bd01f", - "recordStatus": "new", - "recordType": "relationship", - "recordDetails": { - "isComponent": true, - "subject": "ad3f6c2fcc9e", - "interestedParty": "d4ab89ea169a" - } - }, - { - "statementId": "860155d1-a4fb-4742-9735-7a7deb899075", - "declarationSubject": "ad3f6c2fcc9e", - "statementDate": "2018-12-17", - "recordId": "05e81af035e4", - "recordStatus": "new", - "recordType": "relationship", - "recordDetails": { - "isComponent": true, - "subject": "d4ab89ea169a", - "interestedParty": "c25d4d612c2c" - } - }, - { - "statementId": "cdb6acc7-426e-4a7a-9410-895d556fd329", - "declarationSubject": "ad3f6c2fcc9e", - "statementDate": "2018-12-17", - "recordId": "d8d75ccf40e4", - "recordStatus": "new", - "recordType": "relationship", - "recordDetails": { - "isComponent": false, - "subject": "ad3f6c2fcc9e", - "interestedParty": "c25d4d612c2c", - "componentRecords": [ - "d4ab89ea169a", - "123", - "05e81af035e4" - ] - } - } -] diff --git a/tests/data/valid-statements/Component Statement Valid.json b/tests/data/valid-statements/Component Statement Valid.json deleted file mode 100644 index 26ee2ff7..00000000 --- a/tests/data/valid-statements/Component Statement Valid.json +++ /dev/null @@ -1,86 +0,0 @@ -[ - { - "statementId": "8729fec1-eb01-4866-ba40-dd5525d43db8", - "declarationSubject": "ad3f6c2fcc9e", - "statementDate": "2018-12-17", - "recordId": "ad3f6c2fcc9e", - "recordStatus": "new", - "recordType": "entity", - "recordDetails": { - "isComponent": false, - "entityType": { - "type": "registeredEntity" - } - } - }, - { - "statementId": "e2bbe3ce-f5b4-42d0-bb68-9b405e8fd6a0", - "declarationSubject": "ad3f6c2fcc9e", - "statementDate": "2018-12-17", - "recordId": "d4ab89ea169a", - "recordStatus": "new", - "recordType": "entity", - "recordDetails": { - "isComponent": true, - "entityType": { - "type": "registeredEntity" - } - } - }, - { - "statementId": "6b9cfb52-505a-49cb-ab02-cc856a4e5c66", - "declarationSubject": "ad3f6c2fcc9e", - "statementDate": "2018-12-17", - "recordId": "c25d4d612c2c", - "recordStatus": "new", - "recordType": "person", - "recordDetails": { - "isComponent": false, - "personType": "knownPerson" - } - }, - { - "statementId": "7fff3986-233f-413f-bec8-3b28c62a4a51", - "declarationSubject": "ad3f6c2fcc9e", - "statementDate": "2018-12-17", - "recordId": "4cf2837bd01f", - "recordStatus": "new", - "recordType": "relationship", - "recordDetails": { - "isComponent": true, - "subject": "ad3f6c2fcc9e", - "interestedParty": "d4ab89ea169a" - } - }, - { - "statementId": "860155d1-a4fb-4742-9735-7a7deb899075", - "declarationSubject": "ad3f6c2fcc9e", - "statementDate": "2018-12-17", - "recordId": "05e81af035e4", - "recordStatus": "new", - "recordType": "relationship", - "recordDetails": { - "isComponent": true, - "subject": "d4ab89ea169a", - "interestedParty": "c25d4d612c2c" - } - }, - { - "statementId": "cdb6acc7-426e-4a7a-9410-895d556fd329", - "declarationSubject": "ad3f6c2fcc9e", - "statementDate": "2018-12-17", - "recordId": "d8d75ccf40e4", - "recordStatus": "new", - "recordType": "relationship", - "recordDetails": { - "isComponent": false, - "subject": "ad3f6c2fcc9e", - "interestedParty": "c25d4d612c2c", - "componentRecords": [ - "d4ab89ea169a", - "4cf2837bd01f", - "05e81af035e4" - ] - } - } -] diff --git a/tests/data/valid-statements/subjectinvalid.json b/tests/data/valid-statements/subjectinvalid.json new file mode 100644 index 00000000..e1fc374c --- /dev/null +++ b/tests/data/valid-statements/subjectinvalid.json @@ -0,0 +1,36 @@ +[ + { + "statementId": "1dc0e987-5c57-4a1c-b3ad-61353b66a9b7", + "declarationSubject": "c359f58d2977", + "statementDate": "2020-03-04", + "recordId": "c359f58d2977", + "recordType": "person", + "recordDetails": { + "isComponent": false, + "personType": "knownPerson" + } + }, + { + "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", + "statementDate": "2020-03-04", + "recordId": "93b53022ae6a", + "recordType": "relationship", + "recordDetails": { + "isComponent": false, + "subject": "c359f58d2977", + "interestedParty": "10478c6cf6de" + } + } +] diff --git a/tests/data/valid-statements/subjectinvalid2.json b/tests/data/valid-statements/subjectinvalid2.json new file mode 100644 index 00000000..d45df6fb --- /dev/null +++ b/tests/data/valid-statements/subjectinvalid2.json @@ -0,0 +1,38 @@ +[ + { + "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": "person", + "recordDetails": { + "isComponent": false, + "personType": "knownPerson" + } + }, + { + "statementId": "fbfd0547-d0c6-4a00-b559-5c5e91c34f5c", + "declarationSubject": "c359f58d2977", + "statementDate": "2020-03-04", + "recordId": "93b53022ae6a", + "recordType": "relationship", + "recordDetails": { + "isComponent": false, + "subject": "123", + "interestedParty": "10478c6cf6de" + } + } +] diff --git a/tests/data/valid-statements/subjectvalid.json b/tests/data/valid-statements/subjectvalid.json new file mode 100644 index 00000000..0a8d9df2 --- /dev/null +++ b/tests/data/valid-statements/subjectvalid.json @@ -0,0 +1,38 @@ +[ + { + "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": "person", + "recordDetails": { + "isComponent": false, + "personType": "knownPerson" + } + }, + { + "statementId": "fbfd0547-d0c6-4a00-b559-5c5e91c34f5c", + "declarationSubject": "c359f58d2977", + "statementDate": "2020-03-04", + "recordId": "93b53022ae6a", + "recordType": "relationship", + "recordDetails": { + "isComponent": false, + "subject": "c359f58d2977", + "interestedParty": "10478c6cf6de" + } + } +]