Skip to content

Commit

Permalink
tests: Tests for BODS 0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Ed (ODSC) committed Sep 13, 2024
1 parent a082538 commit ffb381d
Show file tree
Hide file tree
Showing 203 changed files with 4,103 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,4 @@
}
}
}
]
]
29 changes: 29 additions & 0 deletions tests/fixtures/0.4/basic_with_correct_mic_codes_1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
[
{
"statementId": "2f7bf9370f1254068e5e946df067d07d",
"recordId": "ent-93c75c87ab28f889",
"recordType": "entity",
"declarationSubject": "ent-93c75c87ab28f889",
"statementDate": "2017-11-18",
"recordDetails": {
"isComponent": false,
"entityType": {
"type": "registeredEntity"
},
"publicListing":{
"hasPublicListing" : true,
"securitiesListings": [
{
"marketIdentifierCode": "MIC code",
"operatingMarketIdentifierCode": "MIC code",
"security": {
"ticker": "FMT"
},
"stockExchangeName" :"Irish stock exchange",
"stockExchangeJurisdiction": "IE"
}
]
}
}
}
]
28 changes: 28 additions & 0 deletions tests/fixtures/0.4/basic_with_operating_mic_code_missing_1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
[
{
"statementId": "2f7bf9370f1254068e5e946df067d07d",
"recordId": "ent-93c75c87ab28f889",
"recordType": "entity",
"declarationSubject": "ent-93c75c87ab28f889",
"statementDate": "2017-11-18",
"recordDetails": {
"isComponent": false,
"entityType": {
"type": "registeredEntity"
},
"publicListing":{
"hasPublicListing" : true,
"securitiesListings": [
{
"marketIdentifierCode": "MIC code",
"security": {
"ticker": "FMT"
},
"stockExchangeName" :"Irish stock exchange",
"stockExchangeJurisdiction": "IE"
}
]
}
}
}
]
23 changes: 23 additions & 0 deletions tests/fixtures/0.4/entity_sub_type_does_align_1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[
{
"statementId": "2f7bf9370f1254068e5e946df067d07d",
"statementDate": "2022-01-08",
"publicationDetails": {
"publicationDate": "2021-09-11T00:00:00+00:00",
"bodsVersion": "0.4",
"publisher": {
"name": "Irish Business Authority"
}
},
"recordId": "ent-93c75c87ab28f889",
"recordType": "entity",
"declarationSubject": "ent-93c75c87ab28f889",
"recordDetails": {
"isComponent": false,
"entityType": {
"type": "arrangement",
"subtype": "trust"
}
}
}
]
23 changes: 23 additions & 0 deletions tests/fixtures/0.4/entity_sub_type_does_not_align_1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[
{
"statementId": "2f7bf9370f1254068e5e946df067d07d",
"statementDate": "2022-01-08",
"publicationDetails": {
"publicationDate": "2021-09-11T00:00:00+00:00",
"bodsVersion": "0.4",
"publisher": {
"name": "Irish Business Authority"
}
},
"recordId": "ent-93c75c87ab28f889",
"recordType": "entity",
"declarationSubject": "ent-93c75c87ab28f889",
"recordDetails": {
"isComponent": false,
"entityType": {
"type": "registeredEntity",
"subtype": "trust"
}
}
}
]
23 changes: 23 additions & 0 deletions tests/fixtures/0.4/entity_type_trust_arrangement.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[
{
"statementId": "2f7bf9370f1254068e5e946df067d07d",
"statementDate": "2022-01-08",
"publicationDetails": {
"publicationDate": "2021-09-11T00:00:00+00:00",
"bodsVersion": "0.4",
"publisher": {
"name": "Irish Business Authority"
}
},
"recordId": "ent-93c75c87ab28f889",
"recordType": "entity",
"declarationSubject": "ent-93c75c87ab28f889",
"recordDetails": {
"isComponent": false,
"entityType": {
"type": "arrangement",
"subtype": "trust"
}
}
}
]
23 changes: 23 additions & 0 deletions tests/fixtures/0.4/entity_type_trust_registeredentity.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[
{
"statementId": "2f7bf9370f1254068e5e946df067d07d",
"statementDate": "2022-01-08",
"publicationDetails": {
"publicationDate": "2021-09-11T00:00:00+00:00",
"bodsVersion": "0.4",
"publisher": {
"name": "Irish Business Authority"
}
},
"recordId": "ent-93c75c87ab28f889",
"recordType": "entity",
"declarationSubject": "ent-93c75c87ab28f889",
"recordDetails": {
"isComponent": false,
"entityType": {
"type": "registeredEntity",
"subtype": "trust"
}
}
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
[
{
"statementId": "1dc0e987-5c57-4a1c-b3ad-61353b66a9b7",
"declarationSubject": "c359f58d2977",
"statementDate": "2020-03-04",
"recordId": "c359f58d2977",
"recordType": "entity",
"recordDetails": {
"isComponent": false,
"entityType": {
"type": "registeredEntity"
},
"publicListing": {
"hasPublicListing": false,
"securitiesListings": [
{
"stockExchangeJurisdiction": "GB",
"stockExchangeName": "London stock exchange",
"security":{
"ticker": "123"
}
}
]
}
}
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[
{
"statementId": "2f7bf9370f1254068e5e946df067d07d",
"statementDate": "2017-11-18",
"recordId": "123",
"recordType": "entity",
"declarationSubject": "xyz",
"recordDetails": {
"entityType": {
"type": "registeredEntity"
},
"isComponent": false,
"addresses": [
{
"type": "placeOfBirth",
"address": "23 Regent St, London",
"country": {
"name": "United Kingdom",
"code": "GB"
}
}
]
}
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[
{
"statementId": "2f7bf9370f1254068e5e946df067d07d",
"statementDate": "2017-11-18",
"recordId": "123",
"recordType": "entity",
"declarationSubject": "xyz",
"recordDetails": {
"entityType": {
"type": "registeredEntity"
},
"isComponent": false,
"addresses": [
{
"type": "registered",
"address": "23 Regent St, London",
"country": {
"name": "United Kingdon",
"code": "G"
}
}
]
}
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[
{
"statementId": "2f7bf9370f1254068e5e946df067d07d",
"statementDate": "2017-11-18",
"recordId": "123",
"recordType": "entity",
"declarationSubject": "xyz",
"recordDetails": {
"entityType": {
"type": "registeredEntity"
},
"isComponent": false,
"addresses": [
{
"type": "registered",
"address": "23 Regent St, London",
"country": {
"name": "United Kingdon",
"code": "GBR"
}
}
]
}
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[
{
"statementId": "2f7bf9370f1254068e5e946df067d07d",
"statementDate": "2017-11-18",
"recordId": "123",
"recordType": "entity",
"declarationSubject": "xyz",
"recordDetails": {
"entityType": {
"type": "registeredEntity"
},
"isComponent": false,
"addresses": [
{
"type": "registered",
"address": "23 Regent St, London",
"country": {
"name": false,
"code": "GB"
}
}
]
}
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[
{
"statementId": "2f7bf9370f1254068e5e946df067d07d",
"declarationSubject": "xyz",
"statementDate": "2017-11-18",
"recordId": "123",
"recordType": "entity",
"recordDetails": {
"entityType": {
"type": "registeredEntity"
},
"isComponent": false,
"addresses": [
{
"type": "registered",
"address": "53 Killard, Kilteragh, Dooradoyle, Co. Limerick ",
"postCode": "V94 V3VT",
"country": {
"code": "IE"
}
}
]
}
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[
{
"statementId": "2f7bf9370f1254068e5e946df067d07d",
"declarationSubject": "xyz",
"statementDate": "2017-11-18",
"recordId": "123",
"recordType": "entity",
"recordDetails": {
"entityType": {
"type": "registeredEntity"
},
"isComponent": false,
"addresses": [
{
"type": "registered",
"address": "53 Killard, Kilteragh, Dooradoyle, Co. Limerick ",
"postCode": "V94 V3VT",
"country": "IE"
}
]
}
}
]
21 changes: 21 additions & 0 deletions tests/fixtures/0.4/invalid-schema/entity_address_not_string.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[
{
"statementId": "2f7bf9370f1254068e5e946df067d07d",
"statementDate": "2017-11-18",
"declarationSubject": "xyz",
"recordId": "123",
"recordType": "entity",
"recordDetails": {
"entityType": {
"type": "registeredEntity"
},
"isComponent": false,
"addresses": [
{
"type": "registered",
"address": 98745672435
}
]
}
}
]
19 changes: 19 additions & 0 deletions tests/fixtures/0.4/invalid-schema/entity_addresses_not_array.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[
{
"statementId": "2f7bf9370f1254068e5e946df067d07d",
"statementDate": "2017-11-18",
"declarationSubject": "xyz",
"recordId": "123",
"recordType": "entity",
"recordDetails": {
"entityType": {
"type": "registeredEntity"
},
"isComponent": false,
"addresses":{
"type": "business",
"address": "23 Regent St, London"
}
}
}
]
Loading

0 comments on commit ffb381d

Please sign in to comment.