From 505fa27daf9493d2357c6b79471957609ca30d6a Mon Sep 17 00:00:00 2001 From: Jaro Hartmann Date: Tue, 30 Jan 2024 14:34:43 +0100 Subject: [PATCH] feat(irs-api):[#344] Add test case for recursive IRS flow --- .../__files/integrationtesting/batch-1.json | 2 +- .../__files/integrationtesting/batch-2.json | 22 +++++++++++++++++++ .../__files/integrationtesting/batch-3.json | 22 +++++++++++++++++++ .../singleLevelBomAsBuilt-2.json | 16 ++++++++++++++ .../singleLevelBomAsBuilt-3.json | 4 ++++ 5 files changed, 65 insertions(+), 1 deletion(-) create mode 100644 irs-api/src/test/resources/__files/integrationtesting/batch-2.json create mode 100644 irs-api/src/test/resources/__files/integrationtesting/batch-3.json create mode 100644 irs-api/src/test/resources/__files/integrationtesting/singleLevelBomAsBuilt-2.json create mode 100644 irs-api/src/test/resources/__files/integrationtesting/singleLevelBomAsBuilt-3.json diff --git a/irs-api/src/test/resources/__files/integrationtesting/batch-1.json b/irs-api/src/test/resources/__files/integrationtesting/batch-1.json index 76e6d99956..b044897ad0 100644 --- a/irs-api/src/test/resources/__files/integrationtesting/batch-1.json +++ b/irs-api/src/test/resources/__files/integrationtesting/batch-1.json @@ -17,6 +17,6 @@ "partTypeInformation": { "manufacturerPartId": "123-0.740-3434-A", "classification": "product", - "nameAtManufacturer": "Glue" + "nameAtManufacturer": "Cathode" } } \ No newline at end of file diff --git a/irs-api/src/test/resources/__files/integrationtesting/batch-2.json b/irs-api/src/test/resources/__files/integrationtesting/batch-2.json new file mode 100644 index 0000000000..d86f962cb3 --- /dev/null +++ b/irs-api/src/test/resources/__files/integrationtesting/batch-2.json @@ -0,0 +1,22 @@ +{ + "localIdentifiers": [ + { + "value": "BPNL00000000TEST", + "key": "manufacturerId" + }, + { + "value": "BID12345678", + "key": "batchId" + } + ], + "manufacturingInformation": { + "date": "2022-02-04T14:48:54", + "country": "HUR" + }, + "catenaXId": "urn:uuid:7e4541ea-bb0f-464c-8cb3-021abccbfaf5", + "partTypeInformation": { + "manufacturerPartId": "123-0.740-3434-A", + "classification": "product", + "nameAtManufacturer": "Polyamid" + } +} \ No newline at end of file diff --git a/irs-api/src/test/resources/__files/integrationtesting/batch-3.json b/irs-api/src/test/resources/__files/integrationtesting/batch-3.json new file mode 100644 index 0000000000..f62643532a --- /dev/null +++ b/irs-api/src/test/resources/__files/integrationtesting/batch-3.json @@ -0,0 +1,22 @@ +{ + "localIdentifiers": [ + { + "value": "BPNL00000000TEST", + "key": "manufacturerId" + }, + { + "value": "BID12345678", + "key": "batchId" + } + ], + "manufacturingInformation": { + "date": "2022-02-04T14:48:54", + "country": "HUR" + }, + "catenaXId": "urn:uuid:a314ad6b-77ea-417e-ae2d-193b3e249e99", + "partTypeInformation": { + "manufacturerPartId": "123-0.740-3434-A", + "classification": "product", + "nameAtManufacturer": "Generic Chemical" + } +} \ No newline at end of file diff --git a/irs-api/src/test/resources/__files/integrationtesting/singleLevelBomAsBuilt-2.json b/irs-api/src/test/resources/__files/integrationtesting/singleLevelBomAsBuilt-2.json new file mode 100644 index 0000000000..594e51a4f2 --- /dev/null +++ b/irs-api/src/test/resources/__files/integrationtesting/singleLevelBomAsBuilt-2.json @@ -0,0 +1,16 @@ +{ + "catenaXId": "urn:uuid:7e4541ea-bb0f-464c-8cb3-021abccbfaf5", + "childItems": [ + { + "catenaXId": "urn:uuid:a314ad6b-77ea-417e-ae2d-193b3e249e99", + "quantity": { + "quantityNumber": 0.2014, + "measurementUnit": "unit:kilogram" + }, + "hasAlternatives": true, + "businessPartner": "BPNL00000000TEST", + "createdOn": "2022-02-03T14:48:54.709Z", + "lastModifiedOn": "2022-02-03T14:48:54.709Z" + } + ] +} \ No newline at end of file diff --git a/irs-api/src/test/resources/__files/integrationtesting/singleLevelBomAsBuilt-3.json b/irs-api/src/test/resources/__files/integrationtesting/singleLevelBomAsBuilt-3.json new file mode 100644 index 0000000000..69e7778525 --- /dev/null +++ b/irs-api/src/test/resources/__files/integrationtesting/singleLevelBomAsBuilt-3.json @@ -0,0 +1,4 @@ +{ + "catenaXId": "urn:uuid:a314ad6b-77ea-417e-ae2d-193b3e249e99", + "childItems": [] +} \ No newline at end of file