From 7d196295ac3b949676507ab7edb335e291b3e9a6 Mon Sep 17 00:00:00 2001 From: ds-kgassner Date: Tue, 7 May 2024 11:00:01 +0200 Subject: [PATCH 1/8] chore(cucumber):[#503] added Feature files --- .../resources/features/10_TRI-817.feature | 250 +++++++++ .../resources/features/1_TRI-1616.feature | 271 +++++++++ .../features/2_TRI-1577_TRI-768.feature | 107 ++++ .../resources/features/3_TRI-1949.feature | 527 ++++++++++++++++++ .../features/4_TRI-512_TRI-768.feature | 197 +++++++ .../test/resources/features/5_TRI-768.feature | 459 +++++++++++++++ .../features/6_TRI-1312_TRI-768.feature | 88 +++ .../features/7_TRI-982_TRI-768.feature | 70 +++ .../features/8_TRI-1018_TRI-768.feature | 152 +++++ .../features/9_TRI-512_TRI-817.feature | 197 +++++++ 10 files changed, 2318 insertions(+) create mode 100644 irs-cucumber-tests/src/test/resources/features/10_TRI-817.feature create mode 100644 irs-cucumber-tests/src/test/resources/features/1_TRI-1616.feature create mode 100644 irs-cucumber-tests/src/test/resources/features/2_TRI-1577_TRI-768.feature create mode 100644 irs-cucumber-tests/src/test/resources/features/3_TRI-1949.feature create mode 100644 irs-cucumber-tests/src/test/resources/features/4_TRI-512_TRI-768.feature create mode 100644 irs-cucumber-tests/src/test/resources/features/5_TRI-768.feature create mode 100644 irs-cucumber-tests/src/test/resources/features/6_TRI-1312_TRI-768.feature create mode 100644 irs-cucumber-tests/src/test/resources/features/7_TRI-982_TRI-768.feature create mode 100644 irs-cucumber-tests/src/test/resources/features/8_TRI-1018_TRI-768.feature create mode 100644 irs-cucumber-tests/src/test/resources/features/9_TRI-512_TRI-817.feature diff --git a/irs-cucumber-tests/src/test/resources/features/10_TRI-817.feature b/irs-cucumber-tests/src/test/resources/features/10_TRI-817.feature new file mode 100644 index 0000000000..e34ada370a --- /dev/null +++ b/irs-cucumber-tests/src/test/resources/features/10_TRI-817.feature @@ -0,0 +1,250 @@ +Feature: Default + + Background: + #@TRI-817 + Given the IRS URL "https://irs.int.demo.catena-x.net" + And the admin user api key + + + #h2. INT  + #||Key||Value|| + #|globalAssetId|urn:uuid:334cce52-1f52-4bc9-9dd1-410bbe497bbc| + #|BPNL|BPNL00000003B2OM| + # + #h3. Test Objective: + # + #__ + # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. + # + #h3. Description: + # + #__ + # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer + # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. + # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer + # # Api consumer gets an item graph document with the results for the requested globalAssetId + # + #h3. Preconditions: + # + #__ + # # DT Twin Registry is up and running and contains valid test data set + # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints + # # EDC Consumer is set up and configures to the DT Registry and Submodel  + # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume + # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects + ## Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api consumer (role has t.b.d.) + @TRI-818 @TRI-1452 @TRI-874 @INT @INTEGRATION_TEST @[INT-TEST] + Scenario: 🔨🧩[INT-TEST] End 2 End for Tier A (ZF) [BPN:BPNL00000003B2OM] + Given I register an IRS job for globalAssetId "urn:uuid:334cce52-1f52-4bc9-9dd1-410bbe497bbc" and BPN "BPNL00000003B2OM" + And aspects : + | urn:bamm:io.catenax.serial_part:1.0.1#SerialPart | + | urn:bamm:io.catenax.single_level_bom_as_built:2.0.0#SingleLevelBomAsBuilt | + | urn:samm:io.catenax.batch:2.0.0#Batch | + | urn:bamm:io.catenax.material_for_recycling:1.1.0#MaterialForRecycling | + And collectAspects "true" + And lookupBPNs "false" + And depth 100 + And direction "downward" + When I get the job-id + Then I check, if the job has status "COMPLETED" within 20 minutes + And I check, if number of "tombstones" equals to "summary/asyncFetchedItems/failed" + And I check, if "summary" contains 12 completed and 0 failed items + And I check, if "bpn summary" contains 4 completed and 0 failed items + And I check, if "relationships" are equal to "TRI-704-expected-relationships.json" + And I check, if "submodels" are equal to "TRI-704-expected-submodels.json" + And I check, if submodels contains BPNL number "BPNL00000003B2OM" exactly 1 times + + #h2. INT  + #||Key||Value|| + #|globalAssetId|urn:uuid:ed333e9a-5afa-40b2-99da-bae2fd21501e| + #|BPNL|BPNL00000003AVTH| + # + #h3. Test Objective: + # + #__ + # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. + # + #h3. Description: + # + #__ + # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer + # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. + # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer + # # Api consumer gets an item graph document with the results for the requested globalAssetId + # + #h3. Preconditions: + # + #__ + # # DT Twin Registry is up and running and contains valid test data set + # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints + # # EDC Consumer is set up and configures to the DT Registry and Submodel  + # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume + # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects + ## Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api consumer (role has t.b.d.) + @TRI-1070 @TRI-1452 @TRI-874 @INT @INTEGRATION_TEST @INTEGRATION_TEST_2.0.0 + Scenario: 🔨🧩[INT-TEST] End 2 End for OEM B (Mercedes Benz) [BPN: BPNL00000003AVTH] + Given I register an IRS job for globalAssetId "urn:uuid:ed333e9a-5afa-40b2-99da-bae2fd21501e" and BPN "BPNL00000003AVTH" + And aspects : + | urn:bamm:io.catenax.serial_part:1.0.1#SerialPart | + | urn:bamm:io.catenax.single_level_bom_as_built:2.0.0#SingleLevelBomAsBuilt | + | urn:samm:io.catenax.batch:2.0.0#Batch | + | urn:bamm:io.catenax.material_for_recycling:1.1.0#MaterialForRecycling | + | urn:bamm:io.catenax.physical_dimension:1.0.0#PhysicalDimension | + And collectAspects "true" + And lookupBPNs "false" + And depth 10 + And direction "downward" + When I get the job-id + Then I check, if the job has status "COMPLETED" within 20 minutes + And I check, if number of "tombstones" equals to "summary/asyncFetchedItems/failed" + And I check, if "summary" contains 35 completed and 0 failed items + And I check, if "bpn summary" contains 35 completed and 0 failed items + And I check, if "relationships" are equal to "TRI-1070-expected-relationships.json" + And I check, if "submodels" are equal to "TRI-1070-expected-submodels.json" + And I check, if submodels contains BPNL number "BPNL00000003AVTH" exactly 35 times + + #h2. INT  + #||Key||Value|| + #|globalAssetId|urn:uuid:6d505432-8b31-4966-9514-4b753372683f| + #|BPNL|BPNL00000003AVTH| + # + #h3. Test Objective: + # + #__ + # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. + # + #h3. Description: + # + #__ + # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer + # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. + # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer + # # Api consumer gets an item graph document with the results for the requested globalAssetId + # + #h3. Preconditions: + # + #__ + # # DT Twin Registry is up and running and contains valid test data set + # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints + # # EDC Consumer is set up and configures to the DT Registry and Submodel  + # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume + # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects + ## Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api consumer (role has t.b.d.) + @TRI-819 @TRI-1452 @TRI-874 @TEST-315 @INT @INTEGRATION_TEST @[INT-TEST] + Scenario: 🔨🧩[INT-TEST] End 2 End for OEM-B (MB) [BPN:BPNL00000003AVTH] + Given I register an IRS job for globalAssetId "urn:uuid:6d505432-8b31-4966-9514-4b753372683f" and BPN "BPNL00000003AVTH" + And collectAspects "true" + And lookupBPNs "false" + And depth 100 + And direction "downward" + And aspects : + | urn:bamm:io.catenax.serial_part:1.0.1#SerialPart | + | urn:bamm:io.catenax.single_level_bom_as_built:2.0.0#SingleLevelBomAsBuilt | + | urn:samm:io.catenax.batch:2.0.0#Batch | + When I get the job-id + Then I check, if the job has status "COMPLETED" within 20 minutes + And I check, if number of "tombstones" equals to "summary/asyncFetchedItems/failed" + And I check, if "summary" contains 271 completed and 0 failed items + And I check, if "bpn summary" contains 83 completed and 0 failed items + And I check, if "relationships" are equal to "TRI-767-expected-relationships.json" + And I check, if "submodels" are equal to "TRI-767-expected-submodels.json" + And I check, if submodels contains BPNL number "BPNL00000003AVTH" exactly 69 times + + #h2. INT  + #||Key||Value|| + #|globalAssetId|urn:uuid:e95f3ff2-c5e7-49a5-873b-aee2728917d3| + #|BPNL| BPNL00000003B2OM | + # + # + # + #h3. Test Objective: + # + #__ + # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. + # + #h3. Description: + # + #__ + # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer + # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. + # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer + # # Api consumer gets an item graph document with the results for the requested globalAssetId + # + #h3. Preconditions: + # + #__ + # # DT Twin Registry is up and running and contains valid test data set + # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints + # # EDC Consumer is set up and configures to the DT Registry and Submodel  + # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume + # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects + ## Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api consumer (role has t.b.d.) + @TRI-820 @TRI-1452 @TRI-874 @INT @INTEGRATION_TEST @[INT-TEST] + Scenario: 🔨🧩[INT-TEST] End 2 End for aspect "MaterialForRecycling" + Given I register an IRS job for globalAssetId "urn:uuid:e95f3ff2-c5e7-49a5-873b-aee2728917d3" and BPN "BPNL00000003B2OM" + And aspects : + | urn:bamm:io.catenax.material_for_recycling:1.1.0#MaterialForRecycling | + And collectAspects "true" + And lookupBPNs "false" + And depth 100 + And direction "downward" + When I get the job-id + Then I check, if the job has status "COMPLETED" within 20 minutes + And I check, if number of "tombstones" equals to "summary/asyncFetchedItems/failed" + And I check, if "summary" contains 5 completed and 3 failed items + And I check, if "bpn summary" contains 4 completed and 0 failed items + And I check, if "relationships" are equal to "TRI-528-expected-relationships.json" + And I check, if "submodels" are equal to "TRI-528-expected-submodels.json" + #And I check, if submodels contains BPNL number "BPNL00000003B2OM" exactly 1 times \ No newline at end of file diff --git a/irs-cucumber-tests/src/test/resources/features/1_TRI-1616.feature b/irs-cucumber-tests/src/test/resources/features/1_TRI-1616.feature new file mode 100644 index 0000000000..6509589eb4 --- /dev/null +++ b/irs-cucumber-tests/src/test/resources/features/1_TRI-1616.feature @@ -0,0 +1,271 @@ +Feature: Default + + Background: + #@TRI-1616 + Given the IRS URL "https://irs-dil.dev.demo.catena-x.net" + And the admin user api key + + + #*Used testdata* from TRI-1291. + # + #*TBD:* + #h3. Test Objective: + # + #__ + # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. + # + #h3. Description: + # + #__ + # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer + # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. + # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer + # # Api consumer gets an item graph document with the results for the requested globalAssetId + # + #h3. Preconditions: + # + #__ + # # DT Twin Registry is up and running and contains valid test data set + # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints + # # EDC Consumer is set up and configures to the DT Registry and Submodel  + # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume + # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects + ## Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api consumer (role has t.b.d.) + @TRI-1564 @TRI-1942 @TRI-873 @TRI-1843 @DIL @INTEGRATION_TEST @INTEGRATION_TEST_2.0.0 + Scenario: 🔨🧩[DIL] Check data integrity use case with one changed part + Given I register an IRS job for globalAssetId "urn:uuid:05abf6ff-8c78-4b72-948b-40e08e9b83f3" and BPN "BPNL00000003AZQP" + And integrityCheck "true" + And collectAspects "true" + And aspects : + | urn:bamm:io.catenax.serial_part:1.0.1#SerialPart | + When I get the job-id + Then I check, if the job has status "COMPLETED" within 10 minutes + # And I check, if "part-changed" tombstones for data integrity are existing + And I check, if integrityState is "INVALID" + + #Vehicle A + #urn:uuid:a1fa0f85-697d-4c9d-982f-2501af8e8636 + #Complete and valid integrity aspects + # + #Vehicle B + #urn:uuid:05abf6ff-8c78-4b72-948b-40e08e9b83f3 + #1 Part urn:uuid:dc60fc50-c875-4ce6-a1b9-d59c4c1e0b17 has payload which changed after the hash was created + # + #Vehicle C + ##urn:uuid:17e11d67-0315-4504-82cd-8e70a8c33a6a + #Signatures for Part urn:uuid:8c437b9d-f1b8-4397-b030-c3637eaf9b53 were created with a different private key + # + #Vehicle D + #urn:uuid:5672e8ff-8a73-425e-b2a5-5561b5b21d7a + #IntegrityAspect for part urn:uuid:ef3865b8-6811-4659-a1b5-e186f8e42258 is missing + + #*Used testdata* from TRI-1291. + # + #*TBD:* + #h3. Test Objective: + # + #__ + # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. + # + #h3. Description: + # + #__ + # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer + # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. + # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer + # # Api consumer gets an item graph document with the results for the requested globalAssetId + # + #h3. Preconditions: + # + #__ + # # DT Twin Registry is up and running and contains valid test data set + # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints + # # EDC Consumer is set up and configures to the DT Registry and Submodel  + # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume + # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects + ## Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api consumer (role has t.b.d.) + @TRI-1565 @TRI-1942 @TRI-873 @TRI-1843 @DIL @INTEGRATION_TEST @INTEGRATION_TEST_2.0.0 + Scenario: 🔨🧩[DIL] Check data integrity use case with one part created with different private key + Given I register an IRS job for globalAssetId "urn:uuid:17e11d67-0315-4504-82cd-8e70a8c33a6a" and BPN "BPNL00000003AZQP" + And integrityCheck "true" + And aspects : + | urn:bamm:io.catenax.single_level_bom_as_built:2.0.0#SingleLevelBomAsBuilt | + When I get the job-id + Then I check, if the job has status "COMPLETED" within 10 minutes + #And I check, if "different private key" tombstones for data integrity are existing + And I check, if integrityState is "INVALID" + + #Vehicle A + #urn:uuid:a1fa0f85-697d-4c9d-982f-2501af8e8636 + #Complete and valid integrity aspects + # + #Vehicle B + #urn:uuid:05abf6ff-8c78-4b72-948b-40e08e9b83f3 + #1 Part urn:uuid:dc60fc50-c875-4ce6-a1b9-d59c4c1e0b17 has payload which changed after the hash was created + # + #Vehicle C + #urn:uuid:17e11d67-0315-4504-82cd-8e70a8c33a6a + #Signatures for Part urn:uuid:8c437b9d-f1b8-4397-b030-c3637eaf9b53 were created with a different private key + # + #Vehicle D + #urn:uuid:5672e8ff-8a73-425e-b2a5-5561b5b21d7a + #IntegrityAspect for part urn:uuid:ef3865b8-6811-4659-a1b5-e186f8e42258 is missing + + #*Used testdata* from TRI-1291. + # + #*TBD:* + #h3. Test Objective: + # + #__ + # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. + # + #h3. Description: + # + #__ + # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer + # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. + # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer + # # Api consumer gets an item graph document with the results for the requested globalAssetId + # + #h3. Preconditions: + # + #__ + # # DT Twin Registry is up and running and contains valid test data set + # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints + # # EDC Consumer is set up and configures to the DT Registry and Submodel  + # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume + # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects + ## Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api consumer (role has t.b.d.) + @TRI-1566 @TRI-1942 @TRI-873 @TRI-1843 @DIL @INTEGRATION_TEST @INTEGRATION_TEST_2.0.0 + Scenario: 🔨🧩[DIL] Check data integrity use case with missing integrity aspect for one part + Given I register an IRS job for globalAssetId "urn:uuid:5672e8ff-8a73-425e-b2a5-5561b5b21d7a" and BPN "BPNL00000003AZQP" + And integrityCheck "true" + And collectAspects "true" + And aspects : + | urn:bamm:io.catenax.serial_part:1.0.1#SerialPart | + | urn:bamm:io.catenax.single_level_bom_as_built:2.0.0#SingleLevelBomAsBuilt | + When I get the job-id + Then I check, if the job has status "COMPLETED" within 10 minutes + #And I check, if "missing integrity aspect" tombstones for data integrity are existing + And I check, if integrityState is "INVALID" + + #Vehicle A + #urn:uuid:a1fa0f85-697d-4c9d-982f-2501af8e8636 + #Complete and valid integrity aspects + # + #Vehicle B + #urn:uuid:05abf6ff-8c78-4b72-948b-40e08e9b83f3 + #1 Part urn:uuid:dc60fc50-c875-4ce6-a1b9-d59c4c1e0b17 has payload which changed after the hash was created + # + #Vehicle C + #urn:uuid:17e11d67-0315-4504-82cd-8e70a8c33a6a + #Signatures for Part urn:uuid:8c437b9d-f1b8-4397-b030-c3637eaf9b53 were created with a different private key + # + #Vehicle D + #urn:uuid:5672e8ff-8a73-425e-b2a5-5561b5b21d7a + #IntegrityAspect for part urn:uuid:ef3865b8-6811-4659-a1b5-e186f8e42258 is missing + + #*Used testdata* from TRI-1291. + # + #*TBD:* + #h3. Test Objective: + # + #__ + # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. + # + #h3. Description: + # + #__ + # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer + # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. + # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer + # # Api consumer gets an item graph document with the results for the requested globalAssetId + # + #h3. Preconditions: + # + #__ + # # DT Twin Registry is up and running and contains valid test data set + # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints + # # EDC Consumer is set up and configures to the DT Registry and Submodel  + # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume + # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects + ## Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api consumer (role has t.b.d.) + @TRI-1563 @TRI-1942 @TRI-873 @TRI-1843 @DIL @INTEGRATION_TEST @INTEGRATION_TEST_2.0.0 + Scenario: 🔨🧩[DIL] Check data integrity use case with complete and valid integrity aspects + Given I register an IRS job for globalAssetId "urn:uuid:a1fa0f85-697d-4c9d-982f-2501af8e8636" and BPN "BPNL00000003AZQP" + And integrityCheck "true" + And aspects : + | urn:bamm:io.catenax.serial_part:1.0.1#SerialPart | + | urn:bamm:io.catenax.single_level_bom_as_built:2.0.0#SingleLevelBomAsBuilt | + When I get the job-id + Then I check, if the job has status "COMPLETED" within 10 minutes + #And I check, if "no" tombstones for data integrity are existing + And I check, if integrityState is "VALID" + + #Vehicle A + #urn:uuid:a1fa0f85-697d-4c9d-982f-2501af8e8636 + #Complete and valid integrity aspects + # + #Vehicle B + #urn:uuid:05abf6ff-8c78-4b72-948b-40e08e9b83f3 + #1 Part urn:uuid:dc60fc50-c875-4ce6-a1b9-d59c4c1e0b17 has payload which changed after the hash was created + # + #Vehicle C + ##urn:uuid:17e11d67-0315-4504-82cd-8e70a8c33a6a + #Signatures for Part urn:uuid:8c437b9d-f1b8-4397-b030-c3637eaf9b53 were created with a different private key + # + #Vehicle D + #urn:uuid:5672e8ff-8a73-425e-b2a5-5561b5b21d7a + #IntegrityAspect for part urn:uuid:ef3865b8-6811-4659-a1b5-e186f8e42258 is missing \ No newline at end of file diff --git a/irs-cucumber-tests/src/test/resources/features/2_TRI-1577_TRI-768.feature b/irs-cucumber-tests/src/test/resources/features/2_TRI-1577_TRI-768.feature new file mode 100644 index 0000000000..31f8166105 --- /dev/null +++ b/irs-cucumber-tests/src/test/resources/features/2_TRI-1577_TRI-768.feature @@ -0,0 +1,107 @@ +@TRI-1577 +Feature: 👍[RELEASE_3.2.0][HOTFIX] Update Batch Aspectmodel v. 2.0.0 + #h2. Business Value + # # (y) [ ] *User-business value:* + # # (y) [ ] *Risk reduction:* + # # (y) [x] *Regulatory value:* + # # (y) [ ] *Commercial value:* + # # (y) [ ] *Market value:* + # # (y) [ ] *Efficiency value:* + # # (y) [ ] *Future value:* + # + #h2. User Story + # + #*As a PO* + #*I want to fullfill the compliance guardrails* + #*so that _our application / project have success_* + #h2. Outcome + # - (/) aspect model for batch updated to version 2.0.0 >> IRS no longer uses Aspect Models Batch or SerialPart in Code so these changes are solely for plain submodels. I verified locally that Batch 2.0.0 is sucessfully passed in "submodels" in the job response, using the example payload generated from the .ttl files of + # - (/) Extend the IRS testdata file with new batch model 2.0.0 >> see [PR #502|https://github.com/catenax-ng/tx-item-relationship-service/pull/502] + # - (/) Test adjusted testdata new on Batch semantic model (Environment: DEV) >> We are still depending from the testdata set -> Requirement defined TDG-26 + # - (/) Add a new story for removal Batch and SerialPart dependencies from code (FUP) >> No follow up is required there are no changes necessary + # - (/) Check if SubmodelModels are still needed if in the case it is create a new story to get rid of this code >> IRS no longer uses Aspect Models Batch or SerialPart in Code so these changes are solely for plain submodels. I verified locally that Batch 2.0.0 is sucessfully passed in "submodels" in the job response, using the example payload generated from the .ttl files of + # - (/) Cucumber tests are adjusted to new batch models >> Show successfully execution of cucumber tests [~alexander.bulgakov@partner.doubleslash.de] -> See execution [TRI-1603|https://jira.catena-x.net/secure/XrayExecuteTest!default.jspa?testExecIssueKey=TRI-1603&testIssueKey=TRI-1598] + # + #h2. Hints / Details : + # * PR for Batch Aspect [https://github.com/eclipse-tractusx/sldt-semantic-models/pull/286] + # + #Changers: + # - Semantic ID will change + # - customerPartId deleted + # - nameAtCustomer deleted + # + #h2. NFR + #h2. Dependency + # # (?) [ ] * Portal / Access Management + # # (?) [ ] * Testdata Management + # # (?) [ ] * Test Management AND/OR Release Management + # # (?) [ ] * Semantic Model Teams + # # (?) [ ] * EDC + # # (?) [ ] * Decentral twin infrastructure (discovery finders * ) + # # (?) [ ] * IRS + # # (?) [ ] * To be extended .... + # + #h2. TODO: + # * (-) Fill out description + # * (-) Fill out Story Points + # * (-) (Assign an Assignee - might be done during the Sprint) + # * (-) define Acceptance Criteria + # * (-) [DoR |https://confluence.catena-x.net/pages/viewpage.action?pageId=917505] + + Background: + #@TRI-768 + Given the IRS URL "https://irs.dev.demo.catena-x.net" + And the admin user api key + + + #*Used testdataset*: 1.5.3 + # + #h3. Test Objective: + # + #__ + # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. + # + #h3. Description: + # + #__ + # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer + # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. + # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer + # # Api consumer gets an item graph document with the results for the requested globalAssetId + # + #h3. Preconditions: + # + #__ + # # DT Twin Registry is up and running and contains valid test data set + # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints + # # EDC Consumer is set up and configures to the DT Registry and Submodel  + # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume + # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects + ## Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api consumer (role has t.b.d.) + @TRI-1598 @TRI-1843 @TRI-1942 @TRI-873 @TRI-1770 @TRI-1682 @DEV @INTEGRATION_TEST + Scenario: 🔨🧩[DEV-TEST] BomLifecycle 'asBuilt' for testing "Batch"-Model [BPNL00000003AVTH] 🌟 + Given I register an IRS job for globalAssetId "urn:uuid:8724338c-5c85-4c34-91eb-e2735d58fb0d" and BPN "BPNL00000003AVTH" + And collectAspects "true" + And depth 10 + And direction "downward" + And bomLifecycle "asBuilt" + And lookupBPNs "false" + And aspects : + | urn:samm:io.catenax.batch:3.0.0#Batch | + When I get the job-id + Then I check, if the job has status "COMPLETED" within 20 minutes + And I check, if "relationships" are equal to "TRI-1598-expected-relationships.json" + And I check, if "submodels" are equal to "TRI-1598-expected-submodels.json" \ No newline at end of file diff --git a/irs-cucumber-tests/src/test/resources/features/3_TRI-1949.feature b/irs-cucumber-tests/src/test/resources/features/3_TRI-1949.feature new file mode 100644 index 0000000000..9ed1f8d9be --- /dev/null +++ b/irs-cucumber-tests/src/test/resources/features/3_TRI-1949.feature @@ -0,0 +1,527 @@ +Feature: Default + + Background: + #@TRI-1949 + Given the IRS URL "https://irs.dev.demo.catena-x.net/" -- policystore + And the admin user api key -- policystore + + + #{*}Used testdataset{*}: — + #h3. Test Objective: + # + #__ + # * Register policies for different BPNLs + # + #h3. Description: + # + #__ + # # Register policies (for associating with more than one BPNL POST + UPDATE is needed) + # # Get all policies and get policies for BPNLs and check + # + #h3. Preconditions: + # + #__ + # # Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + # * *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment |https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + # * *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api admin + @TRI-1950 @TRI-873 @DEV @INTEGRATION_TEST + Scenario: 🔨🧩[DEV-TEST] Policy Store API: Register policies + # cleanup + Given no policies with prefix "integration-test-policy-" exist + + # act and assert + Given I want to register a policy with policyId "integration-test-policy-1111" + And the policy should be associated to BPN "BPNL1234567890AB" + And the policy should have validUntil "1111-11-11T11:11:11.111Z" + When I register the policy + Then the create policy response should have HTTP status 201 and policyId "integration-test-policy-1111" + + Given I want to register a policy with policyId "integration-test-policy-2222" + And the policy should be associated to the following BPNs: + | BPNL1234567890AB | + | BPNL1234567890CD | + And the policy should have validUntil "2222-11-11T11:11:11.111Z" + When I register the policy + Then the create policy response should have HTTP status 201 and policyId "integration-test-policy-2222" + + When a policy with policyId "integration-test-policy-3333" is registered for BPN "BPNL1234567890CD" and validUntil "3333-11-11T11:11:11.111Z" + Then the create policy response should have HTTP status 201 and policyId "integration-test-policy-3333" + + When a policy with policyId "integration-test-policy-4444" is registered for BPN "BPNL1234567890CD" and validUntil "4444-11-11T11:11:11.111Z" + Then the create policy response should have HTTP status 201 and policyId "integration-test-policy-4444" + + When I successfully fetch all policies + Then the BPNs should be associated with policies as follows: + | BPN | policyId | + | BPNL1234567890AB | integration-test-policy-1111 | + | BPNL1234567890AB | integration-test-policy-2222 | + | BPNL1234567890CD | integration-test-policy-2222 | + | BPNL1234567890CD | integration-test-policy-3333 | + | BPNL1234567890CD | integration-test-policy-4444 | + + When I fetch policies for BPNs: + | BPNL1234567890AB | + Then the fetch policies for BPN response should have HTTP status 200 + And the BPNs should be associated with policies as follows: + | BPN | policyId | + | BPNL1234567890AB | integration-test-policy-1111 | + | BPNL1234567890AB | integration-test-policy-2222 | + + When I fetch policies for BPNs: + | BPNL1234567890CD | + Then the fetch policies for BPN response should have HTTP status 200 + And the BPNs should be associated with policies as follows: + | BPN | policyId | + | BPNL1234567890CD | integration-test-policy-2222 | + | BPNL1234567890CD | integration-test-policy-3333 | + | BPNL1234567890CD | integration-test-policy-4444 | + + When I fetch policies for BPNs: + | BPNL1234567890AB | + | BPNL1234567890CD | + Then the fetch policies for BPN response should have HTTP status 200 + And the BPNs should be associated with policies as follows: + | BPN | policyId | + | BPNL1234567890AB | integration-test-policy-1111 | + | BPNL1234567890AB | integration-test-policy-2222 | + | BPNL1234567890CD | integration-test-policy-2222 | + | BPNL1234567890CD | integration-test-policy-3333 | + | BPNL1234567890CD | integration-test-policy-4444 | + + #{*}Used testdataset{*}: — + #h3. Test Objective: + # + #__ + # * Update a policies validUntil date and check if successful + # + #h3. Description: + # + #__ + # # Register a policy + # # Update its validUntil + # # Assert that update was successful + # + #h3. Preconditions: + # + #__ + # # Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + # * *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment |https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + # * *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api admin + @TRI-1951 @TRI-873 @DEV @INTEGRATION_TEST + Scenario: 🔨🧩[DEV-TEST] Policy Store API: Update a policy validUntil date + # cleanup + Given no policies with prefix "integration-test-policy-" exist + + # set up testdata + Given a policy with policyId "integration-test-policy-1111" is registered for BPN "BPNL1234567890AB" and validUntil "1111-11-11T11:11:11.111Z" + Then the create policy response should have HTTP status 201 and policyId "integration-test-policy-1111" + + # act and assert + When I update policy "integration-test-policy-1111", BPN "BPNL1234567890AB", validUntil "1112-11-11T11:11:11.111Z" + Then the update policy response should have HTTP status 200 + When I successfully fetch all policies + Then the BPN "BPNL1234567890AB" should have a policy with policyId "integration-test-policy-1111" and validUntil "1112-11-11T11:11:11.111Z" + + #{*}Used testdataset{*}: — + #h3. Test Objective: + # + #__ + # * Update validUntil of a policy that is assocoated to multiple BPNLs and check if successful + # + #h3. Description: + # + #__ + # # Register a policy and asssociate it with multiple BPNLs + # # Update its validUntil + # # Assert that update was successful + # + #h3. Preconditions: + # + #__ + # # Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + # * *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment |https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + # * *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api admin + @TRI-1952 @TRI-873 @DEV @INTEGRATION_TEST + Scenario: 🔨🧩[DEV-TEST] Policy Store API: Update a policy validUntil date for a policy that is associated to multiple BPNs + # cleanup + Given no policies with prefix "integration-test-policy-" exist + + # set up testdata + Given I want to register a policy with policyId "integration-test-policy-1111" + And the policy should be associated to BPN "BPNL1234567890AB" + And the policy should have validUntil "1111-11-11T11:11:11.111Z" + When I register the policy + Then the create policy response should have HTTP status 201 and policyId "integration-test-policy-1111" + + Given I want to register a policy with policyId "integration-test-policy-2222" + And the policy should be associated to BPN "BPNL1234567890AB" + And the policy should have validUntil "2222-11-11T11:11:11.111Z" + And the policy should be associated to the following BPNs: + | BPNL1234567890AB | + | BPNL1234567890CD | + When I register the policy + Then the create policy response should have HTTP status 201 and policyId "integration-test-policy-2222" + + When a policy with policyId "integration-test-policy-3333" is registered for BPN "BPNL1234567890CD" and validUntil "3333-11-11T11:11:11.111Z" + Then the create policy response should have HTTP status 201 and policyId "integration-test-policy-3333" + + When a policy with policyId "integration-test-policy-4444" is registered for BPN "BPNL1234567890CD" and validUntil "4444-11-11T11:11:11.111Z" + Then the create policy response should have HTTP status 201 and policyId "integration-test-policy-4444" + + # check the testdata preconditions + When I successfully fetch all policies + Then the BPN "BPNL1234567890AB" should have a policy with policyId "integration-test-policy-1111" and validUntil "1111-11-11T11:11:11.111Z" + And the BPN "BPNL1234567890AB" should have a policy with policyId "integration-test-policy-2222" and validUntil "2222-11-11T11:11:11.111Z" + And the BPN "BPNL1234567890CD" should have a policy with policyId "integration-test-policy-2222" and validUntil "2222-11-11T11:11:11.111Z" + And the BPN "BPNL1234567890CD" should have a policy with policyId "integration-test-policy-3333" and validUntil "3333-11-11T11:11:11.111Z" + And the BPN "BPNL1234567890CD" should have a policy with policyId "integration-test-policy-4444" and validUntil "4444-11-11T11:11:11.111Z" + + # act + When I update policy with policyId "integration-test-policy-2222" and given BPNs using validUntil "2223-11-11T11:11:11.111Z": + | BPNL1234567890AB | + | BPNL1234567890CD | + Then the update policy response should have HTTP status 200 + + # assert + When I successfully fetch all policies + Then the BPN "BPNL1234567890AB" should have a policy with policyId "integration-test-policy-1111" and validUntil "1111-11-11T11:11:11.111Z" + And the BPN "BPNL1234567890AB" should have a policy with policyId "integration-test-policy-2222" and validUntil "2223-11-11T11:11:11.111Z" + And the BPN "BPNL1234567890CD" should have a policy with policyId "integration-test-policy-2222" and validUntil "2223-11-11T11:11:11.111Z" + And the BPN "BPNL1234567890CD" should have a policy with policyId "integration-test-policy-3333" and validUntil "3333-11-11T11:11:11.111Z" + And the BPN "BPNL1234567890CD" should have a policy with policyId "integration-test-policy-4444" and validUntil "4444-11-11T11:11:11.111Z" + + #{*}Used testdataset{*}: — + #h3. Test Objective: + # + #__ + # * Add BPNL to a policy and check if successful + # + #h3. Description: + # + #__ + # # Register some policies + # # Add another BPNL to one of them + # # Assert that update was successful + # + #h3. Preconditions: + # + #__ + # # Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + # * *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment |https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + # * *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api admin + @TRI-1953 @TRI-873 @DEV @INTEGRATION_TEST + Scenario: 🔨🧩[DEV-TEST] Policy Store API: Add BPN to policy + # cleanup + Given no policies with prefix "integration-test-policy-" exist + + # set up testdata + Given a policy with policyId "integration-test-policy-1111" is registered for BPN "BPNL1234567890AB" and validUntil "1111-11-11T11:11:11.111Z" + Then the create policy response should have HTTP status 201 and policyId "integration-test-policy-1111" + + Given a policy with policyId "integration-test-policy-2222" is registered for BPN "BPNL1234567890CD" and validUntil "2222-11-11T11:11:11.111Z" + Then the create policy response should have HTTP status 201 and policyId "integration-test-policy-2222" + + # act and assert + When I update policy "integration-test-policy-1111", BPN "BPNL1234567890CD", validUntil "1112-11-11T11:11:11.111Z" + Then the update policy response should have HTTP status 200 + + When I successfully fetch all policies + Then the BPN "BPNL1234567890CD" should have a policy with policyId "integration-test-policy-2222" and validUntil "2222-11-11T11:11:11.111Z" + And the BPN "BPNL1234567890CD" should have a policy with policyId "integration-test-policy-1111" and validUntil "1112-11-11T11:11:11.111Z" + And the BPN "BPNL1234567890AB" should have 0 policies having policyId starting with "integration-test-policy-" + + #{*}Used testdataset{*}: — + #h3. Test Objective: + # + #__ + # * Register policy without validUntil should fail + # + #h3. Description: + # + #__ + # # Register policy without validUntil + # + #h3. Preconditions: + # + #__ + # # Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + # * *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment |https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + # * *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api admin + @TRI-1965 @TRI-873 @DEV @INTEGRATION_TEST + Scenario: 🔨🧩[DEV-TEST] Policy Store API: Register policies without validUntil (bad case) + # cleanup + Given no policies with prefix "integration-test-policy-" exist + + # act + Given I want to register a policy with policyId "integration-test-policy-1111" + And the policy should be associated to BPN "BPNL1234567890AB" + And the policy should have no validUntil + When I register the policy + + # assert + Then the create policy response should have HTTP status 400 + + #{*}Used testdataset{*}: — + #h3. Test Objective: + # + #__ + # * Add a policy to BPNLs and check if successful + # + #h3. Description: + # + #__ + # # Register policy with BPNL1 + # # Update using BPNL1 and BPNL2 in order to add it to BPNL2 + # # Assert that update was successful + # + #h3. Preconditions: + # + #__ + # # Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + # * *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment |https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + # * *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api admin + @TRI-1954 @TRI-873 @DEV @INTEGRATION_TEST + Scenario: 🔨🧩[DEV-TEST] Policy Store API: Add policyId to given BPNs + # cleanup + Given no policies with prefix "integration-test-policy-" exist + + # set up testdata + Given a policy with policyId "integration-test-policy-1111" is registered for BPN "BPNL1234567890AB" and validUntil "1111-11-11T11:11:11.111Z" + Then the create policy response should have HTTP status 201 and policyId "integration-test-policy-1111" + + # check the testdata preconditions + When I successfully fetch all policies + Then the BPN "BPNL1234567890AB" should have the following policies: + | integration-test-policy-1111 | + And the BPN "BPNL1234567890CD" should have 0 policies having policyId starting with "integration-test-policy-" + + # act and assert + When I want to update the policy with policyId "integration-test-policy-1111" + And the policy should be associated to the following BPNs: + | BPNL1234567890AB | + | BPNL1234567890CD | + And the policy should have validUntil "1112-11-11T11:11:11.111Z" + And I update the policy + Then the update policy response should have HTTP status 200 + + When I successfully fetch all policies + Then the BPNs should be associated with policies as follows: + | BPN | policyId | + | BPNL1234567890AB | integration-test-policy-1111 | + | BPNL1234567890CD | integration-test-policy-1111 | + + #{*}Used testdataset{*}: — + #h3. Test Objective: + # + #__ + # * Delete some policies and check if successful + # + #h3. Description: + # + #__ + # # Register some policies + # # Delete some of them + # # Assert that deletion was successful + # + #h3. Preconditions: + # + #__ + # # Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + # * *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment |https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + # * *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api admin + @TRI-1955 @TRI-873 @DEV @INTEGRATION_TEST + Scenario: 🔨🧩[DEV-TEST] Policy Store API: Delete some policies + # cleanup + Given no policies with prefix "integration-test-policy-" exist + + # set up testdata + Given a policy with policyId "integration-test-policy-1111" is registered for BPN "BPNL1234567890AB" and validUntil "2222-11-11T11:11:11.111Z" + Then the create policy response should have HTTP status 201 and policyId "integration-test-policy-1111" + + Given I add policyId "integration-test-policy-1111" to given BPNs using validUntil "1111-11-11T11:11:11.111Z": + | BPNL1234567890AB | + | BPNL1234567890EF | + Then the update policy response should have HTTP status 200 + + Given a policy with policyId "integration-test-policy-2222" is registered for BPN "BPNL1234567890AB" and validUntil "1111-11-11T11:11:11.111Z" + Then the create policy response should have HTTP status 201 and policyId "integration-test-policy-2222" + + Given I add policyId "integration-test-policy-2222" to given BPNs using validUntil "1111-11-11T11:11:11.111Z": + | BPNL1234567890AB | + | BPNL1234567890CD | + Then the update policy response should have HTTP status 200 + + Given a policy with policyId "integration-test-policy-3333" is registered for BPN "BPNL1234567890CD" and validUntil "2222-11-11T11:11:11.111Z" + Then the create policy response should have HTTP status 201 and policyId "integration-test-policy-3333" + + Given a policy with policyId "integration-test-policy-4444" is registered for BPN "BPNL1234567890CD" and validUntil "2222-11-11T11:11:11.111Z" + Then the create policy response should have HTTP status 201 and policyId "integration-test-policy-4444" + + # check the testdata preconditions + When I successfully fetch all policies + Then the BPNs should be associated with policies as follows: + | BPN | policyId | + | BPNL1234567890AB | integration-test-policy-1111 | + | BPNL1234567890EF | integration-test-policy-1111 | + | BPNL1234567890AB | integration-test-policy-2222 | + | BPNL1234567890CD | integration-test-policy-2222 | + | BPNL1234567890CD | integration-test-policy-3333 | + | BPNL1234567890CD | integration-test-policy-4444 | + + # act and assert + When I delete the policy "integration-test-policy-2222" + Then the delete policy response should have HTTP status 200 + + When I delete the policy "integration-test-policy-3333" + Then the delete policy response should have HTTP status 200 + + When I delete the policy "integration-test-policy-4444" + Then the delete policy response should have HTTP status 200 + + When I successfully fetch all policies + Then the BPN "BPNL1234567890CD" should have 0 policies having policyId starting with "integration-test-policy-" + And the BPNs should be associated with policies as follows: + | BPN | policyId | + | BPNL1234567890AB | integration-test-policy-1111 | + | BPNL1234567890EF | integration-test-policy-1111 | + + #{*}Used testdataset{*}: — + #h3. Test Objective: + # + #__ + # * + #Fetching policies by BPNLs should fail for invalid BPNLs + # + #h3. Description: + # + #__ + # # Register policy + # # Fetch policies via BPNLs with some invalid BPNLs + # # Check that failed for the invalid BPNLs + # + #h3. Preconditions: + # + #__ + # # Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + # * *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment |https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + # * *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api admin + @TRI-1966 @TRI-873 @DEV @INTEGRATION_TEST + Scenario: 🔨🧩[DEV-TEST] Policy Store API: Fetching policies by BPNLs should fail for invalid BPNLs (bad case) + # cleanup + Given no policies with prefix "integration-test-policy-" exist + + # test data setup + Given a policy with policyId "integration-test-policy-1111" is registered for BPN "BPNL1234567890AB" and validUntil "1111-11-11T11:11:11.111Z" + Given a policy with policyId "integration-test-policy-2222" is registered for BPN "BPNL1234567890CD" and validUntil "2222-11-11T11:11:11.111Z" + Given a policy with policyId "integration-test-policy-3333" is registered for BPN "BPNL1234567890EF" and validUntil "3333-11-11T11:11:11.111Z" + + # act + When I fetch policies for BPNs: + | BPNL1234567890AB | + | BPNL1234567890CD | + Then the fetch policies for BPN response should have HTTP status 200 + + When I fetch policies for BPNs: + | BPNL1234567890CD | + | INVALID | + Then the fetch policies for BPN response should have HTTP status 400 + + When I fetch policies for BPNs: + | BPNACB | + Then the fetch policies for BPN response should have HTTP status 400 + + When I fetch policies for BPNs: + | ERRRES | + Then the fetch policies for BPN response should have HTTP status 400 + + When I fetch policies for BPNs: + | DELETE * FROM Table | + Then the fetch policies for BPN response should have HTTP status 400 \ No newline at end of file diff --git a/irs-cucumber-tests/src/test/resources/features/4_TRI-512_TRI-768.feature b/irs-cucumber-tests/src/test/resources/features/4_TRI-512_TRI-768.feature new file mode 100644 index 0000000000..f48ca499c8 --- /dev/null +++ b/irs-cucumber-tests/src/test/resources/features/4_TRI-512_TRI-768.feature @@ -0,0 +1,197 @@ +@TRI-512 +Feature: 👍 [AS_PLANNED] BomLifecycle 'asPlanned' implementation (1.0.0) + #*As* IRS-Consumer, + #*I want* to be able to traverse through a BOM as planned, + #*so that* I can use the IRS to access these structures. + # + #h2. Details: + #* [Details| https://confluence.catena-x.net/pages/viewpage.action?pageId=53248769] + #* (!) BOMAsPlanned : Update and extension of BOMAsPlanned is planned for Iteration 2. + #* (-) Traversal Aspect SingleLevelBomAsPlanned is used for bomLifecycle": "asPlanned" and direction "downwards" + #* (-) In case no aspect is choose by the api caller, default aspect "PartAsPlanned" is used for bomLifecycle "asPlanned" + # + #h2. Hint / Context :  + #---- + #* Check Semantic Hub for more detailed information about the Aspects + #* Aspects are: "PartAsPlanned“ and „SingleLevelBomAsPlanned“ + #* Contact Simon Schulz if further information is needed + #* Check if namespace starts with _io.catenax_ + #* "SingleLevelBomAsPlanned" results in QueryParameter => "bomLifecycle": "asPlanned", + #* update local Testdataset with reasonable Testdata (2 levels, 7 Component, each component has PartAsPlanned and SingleLevelBomAsPlanned with 2 children except level2 leafs) + #* use similar Structure as BomAsBuilt Dataset + #* https://confluence.catena-x.net/display/PL/Release+2+test+dataset%27s + #* Testdata: https://confluence.catena-x.net/display/PL/BoMAsPlanned+test+dataset version 1.3.4 asplanned alpha + # + # + #h2. TODO: + #---- + #* (-) implement functionality + #* (-) create Test-dataset for BoM as Planned data + #* (-) create Tests + #* (-) run Tests + #* (-) refactor API Documentation + # + #h2. Background: + #* (/) [~thomas.braun3@zf.com] will take care that testdata for BoM asPlanned are prepared. + #* (/) Aspect BoM asPlanned is already available. There is an update until Iteration 2 for . Version 1.0.0 + #* (/) Implementation BoM AsPlanned im IRS (Alignment Trace-X Implementation ESS in PI6) + #* (!) BoM As Planned will be extended Version 1.1.0 will be avaiable in iteration 2. + + Background: + #@TRI-768 + Given the IRS URL "https://irs.dev.demo.catena-x.net" + And the admin user api key + + + #*Used testdataset*: 1.5.0 + # + #h3. Test Objective: + # + #__ + # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. + # + #h3. Description: + # + #__ + # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer + # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. + # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer + # # Api consumer gets an item graph document with the results for the requested globalAssetId + # + #h3. Preconditions: + # + #__ + # # DT Twin Registry is up and running and contains valid test data set + # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints + # # EDC Consumer is set up and configures to the DT Registry and Submodel  + # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume + # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects + ## Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api consumer (role has t.b.d.) + @TRI-893 @TRI-1942 @TRI-873 @TRI-1843 @TRI-1770 @DEV @INTEGRATION_TEST @INTEGRATION_TEST_2.0.0 + Scenario: 🔨🧩[DEV-TEST] End 2 End for BomLifecycle 'asPlanned' Vehicle Model C for SAP [BPNL00000003AZQP] + Given I register an IRS job for globalAssetId "urn:uuid:65e1554e-e5cd-4560-bac1-1352582122fb" and BPN "BPNL00000003AZQP" + And collectAspects "true" + And depth 10 + And direction "downward" + And bomLifecycle "asPlanned" + And aspects : + | urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned | + When I get the job-id + Then I check, if the job has status "COMPLETED" within 20 minutes + And I check, if "relationships" are equal to "TRI-893-expected-relationships.json" + And I check, if "submodels" are equal to "TRI-893-expected-submodels.json" + + #*Used testdataset*: 1.5.0 + # + #h3. Test Objective: + # + #__ + # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. + # + #h3. Description: + # + #__ + # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer + # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. + # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer + # # Api consumer gets an item graph document with the results for the requested globalAssetId + # + #h3. Preconditions: + # + #__ + # # DT Twin Registry is up and running and contains valid test data set + # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints + # # EDC Consumer is set up and configures to the DT Registry and Submodel  + # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume + # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects + ## Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api consumer (role has t.b.d.) + @TRI-821 @TRI-1942 @TRI-873 @TRI-1843 @TRI-1770 @DEV @INTEGRATION_TEST + Scenario: 🪓🧩[DEV-TEST] End 2 End for BomLifecycle 'asPlanned' Vehicle Model A for BMW [BPNL00000003AYRE] + Given I register an IRS job for globalAssetId "urn:uuid:0733946c-59c6-41ae-9570-cb43a6e4c79e" and BPN "BPNL00000003AYRE" + And collectAspects "true" + And depth 10 + And direction "downward" + And bomLifecycle "asPlanned" + And aspects : + | urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned | + When I get the job-id + Then I check, if the job has status "COMPLETED" within 20 minutes + And I check, if "relationships" are equal to "TRI-821-expected-relationships.json" + And I check, if "submodels" are equal to "TRI-821-expected-submodels.json" + + #*Used testdataset*: 1.5.0 + # + #h3. Test Objective: + # + #__ + # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. + # + #h3. Description: + # + #__ + # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer + # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. + # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer + # # Api consumer gets an item graph document with the results for the requested globalAssetId + # + #h3. Preconditions: + # + #__ + # # DT Twin Registry is up and running and contains valid test data set + # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints + # # EDC Consumer is set up and configures to the DT Registry and Submodel  + # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume + # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects + ## Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api consumer (role has t.b.d.) + @TRI-891 @TRI-1942 @TRI-873 @TRI-1843 @TRI-1770 @DEV @INTEGRATION_TEST @INTEGRATION_TEST_2.0.0 + Scenario: 🔨🧩[DEV-TEST] End 2 End for BomLifecycle 'asPlanned' Vehicle Model B for MercedesBenz [BPNL00000003AVTH] + Given I register an IRS job for globalAssetId "urn:uuid:68904173-ad59-4a77-8412-3e73fcafbd8b" and BPN "BPNL00000003AVTH" + And collectAspects "true" + And depth 10 + And direction "downward" + And bomLifecycle "asPlanned" + And aspects : + | urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned | + When I get the job-id + Then I check, if the job has status "COMPLETED" within 20 minutes + And I check, if "relationships" are equal to "TRI-891-expected-relationships.json" + And I check, if "submodels" are equal to "TRI-891-expected-submodels.json" \ No newline at end of file diff --git a/irs-cucumber-tests/src/test/resources/features/5_TRI-768.feature b/irs-cucumber-tests/src/test/resources/features/5_TRI-768.feature new file mode 100644 index 0000000000..8f0a85a4b3 --- /dev/null +++ b/irs-cucumber-tests/src/test/resources/features/5_TRI-768.feature @@ -0,0 +1,459 @@ +Feature: Default + + Background: + #@TRI-768 + Given the IRS URL "https://irs.dev.demo.catena-x.net" + And the admin user api key + + + #h2. DEV + #||Key||Value|| + #|globalAssetId|urn:uuid:6d505432-8b31-4966-9514-4b753372683f| + #|BPNL|BPNL00000003AVTH| + # + #h3. Test Objective: + # + #__ + # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. + # + #h3. Description: + # + #__ + # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer + # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. + # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer + # # Api consumer gets an item graph document with the results for the requested globalAssetId + # + #h3. Preconditions: + # + #__ + # # DT Twin Registry is up and running and contains valid test data set + # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints + # # EDC Consumer is set up and configures to the DT Registry and Submodel  + # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume + # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects + ## Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api consumer (role has t.b.d.) + @TRI-767 @TRI-1942 @TRI-873 @TRI-1843 @TRI-1770 @TRI-1682 @DEV @INTEGRATION_TEST @TESTKEY + Scenario: 🔨🧩[DEV-TEST] End 2 End for OEM-B (MB) [BPN:BPNL00000003AVTH] (SerialPart 3.0.0, SingleLevelBomAsBuilt 3.0.0 , Batch 3.0.0) + Given I register an IRS job for globalAssetId "urn:uuid:8724338c-5c85-4c34-91eb-e2735d58fb0d" and BPN "BPNL00000003AVTH" + And collectAspects "true" + And lookupBPNs "false" + And depth 100 + And direction "downward" + And aspects : + | urn:samm:io.catenax.serial_part:3.0.0#SerialPart | + # | urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt | + #| urn:samm:io.catenax.just_in_sequence_part:3.0.0#JustInSequencePart | + # | urn:samm:io.catenax.batch:3.0.0#Batch | + When I get the job-id + Then I check, if the job has status "COMPLETED" within 20 minutes + And I check, if number of "tombstones" equals to "summary/asyncFetchedItems/failed" + And I check, if "summary" contains 175 completed and 0 failed items + And I check, if "bpn summary" contains 0 completed and 0 failed items + And I check, if "relationships" are equal to "TRI-767-expected-relationships.json" + And I check, if "submodels" are equal to "TRI-767-expected-submodels.json" + And I check, if submodels contains BPNL number "BPNL00000003AVTH" exactly 69 times + + #h2. DEV + #||Key||Value|| + #|globalAssetId|urn:uuid:c6d2d642-a055-4ddf-87e3-1a3b02c689e3| + #|BPNL|BPNL00000000BJTL| + #h3. Test Objective: + # + #__ + # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. + # + #h3. Description: + # + #__ + # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer + # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. + # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer + # # Api consumer gets an item graph document with the results for the requested globalAssetId + # + #h3. Preconditions: + # + #__ + # # DT Twin Registry is up and running and contains valid test data set + # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints + # # EDC Consumer is set up and configures to the DT Registry and Submodel  + # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume + # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects + # # Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + # * *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment |https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + # * *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api consumer (role has t.b.d.) + @TRI-1913 @TRI-1942 @TRI-1843 @TRI-1682 @TRI-1770 @TRI-873 @DEV @INTEGRATION_TEST + Scenario: 🔨🧩[DEV-TEST] End 2 End for aspects "3.0.0#JustInSequencePart", "3.0.0#SerialPart" with "1.0.0#PartSiteInformationAsBuilt" + Given I register an IRS job for globalAssetId "urn:uuid:c6d2d642-a055-4ddf-87e3-1a3b02c689e3" and BPN "BPNL00000000BJTL" + And aspects : + | urn:samm:io.catenax.just_in_sequence_part:3.0.0#JustInSequencePart | + | urn:samm:io.catenax.serial_part:3.0.0#SerialPart | + And collectAspects "true" + And lookupBPNs "false" + And depth 1 + And bomLifecycle "asPlanned" + And direction "downward" + When I get the job-id + Then I check, if the job has status "COMPLETED" within 20 minutes + And I check, if number of "tombstones" equals to "summary/asyncFetchedItems/failed" + And I check, if "summary" contains 1 completed and 0 failed items + And I check, if "submodels" are equal to "TRI-1913-expected-submodels.json" + + #h2. DEV + #||Key||Value|| + #|globalAssetId|urn:uuid:ee9b9c9e-1416-45a3-b683-d98d5d88e548| + #|BPNL|BPNL00000003AXS3| + #h3. Test Objective: + # + #__ + # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. + # + #h3. Description: + # + #__ + # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer + # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. + # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer + # # Api consumer gets an item graph document with the results for the requested globalAssetId + # + #h3. Preconditions: + # + #__ + # # DT Twin Registry is up and running and contains valid test data set + # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints + # # EDC Consumer is set up and configures to the DT Registry and Submodel  + # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume + # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects + # # Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + # * *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment |https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + # * *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api consumer (role has t.b.d.) + @TRI-1914 @TRI-1942 @TRI-1843 @TRI-1770 @TRI-1682 @TRI-873 @DEV @INTEGRATION_TEST + Scenario: 🔨🧩[DEV-TEST] End 2 End for aspects "3.0.0#Batch" with "1.0.0#PartSiteInformationAsBuilt" + Given I register an IRS job for globalAssetId "urn:uuid:ee9b9c9e-1416-45a3-b683-d98d5d88e548" and BPN "BPNL00000003AXS3" + And aspects : + | urn:samm:io.catenax.batch:3.0.0#Batch | + And collectAspects "true" + And lookupBPNs "false" + And depth 1 + And bomLifecycle "asBuilt" + And direction "downward" + When I get the job-id + Then I check, if the job has status "COMPLETED" within 20 minutes + And I check, if number of "tombstones" equals to "summary/asyncFetchedItems/failed" + And I check, if "summary" contains 1 completed and 0 failed items + And I check, if "submodels" are equal to "TRI-1914-expected-submodels.json" + + #h2. DEV + #||Key||Value|| + #|globalAssetId|urn:uuid:e5c96ab5-896a-482c-8761-efd74777ca97| + #|BPNL|BPNL00000003AYRE| + #h3. Test Objective: + # + #__ + # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. + # + #h3. Description: + # + #__ + # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer + # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. + # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer + # # Api consumer gets an item graph document with the results for the requested globalAssetId + # + #h3. Preconditions: + # + #__ + # # DT Twin Registry is up and running and contains valid test data set + # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints + # # EDC Consumer is set up and configures to the DT Registry and Submodel  + # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume + # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects + # # Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + # * *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment |https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + # * *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api consumer (role has t.b.d.) + @TRI-1915 @TRI-1942 @TRI-1843 @TRI-1682 @TRI-1770 @TRI-873 @DEV @INTEGRATION_TEST + Scenario: 🔨🧩[DEV-TEST] End 2 End for aspects "3.0.0#SingleLevelBomAsPlanned", "2.0.0#PartAsPlanned" + Given I register an IRS job for globalAssetId "urn:uuid:e5c96ab5-896a-482c-8761-efd74777ca97" and BPN "BPNL00000003AYRE" + And aspects : + | urn:samm:io.catenax.single_level_bom_as_planned:3.0.0#SingleLevelBomAsPlanned | + | urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned | + And collectAspects "true" + And lookupBPNs "false" + And depth 1 + And bomLifecycle "asPlanned" + And direction "downward" + When I get the job-id + Then I check, if the job has status "COMPLETED" within 20 minutes + And I check, if number of "tombstones" equals to "summary/asyncFetchedItems/failed" + And I check, if "summary" contains 3 completed and 0 failed items + And I check, if "submodels" are equal to "TRI-1915-expected-submodels.json" + + #*Used testdataset*: 1.6.0 + # + #h3. Test Objective: + # + #__ + # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. + # + #h3. Description: + # + #__ + # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer + # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. + # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer + # # Api consumer gets an item graph document with the results for the requested globalAssetId + # + #h3. Preconditions: + # + #__ + # # DT Twin Registry is up and running and contains valid test data set + # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints + # # EDC Consumer is set up and configures to the DT Registry and Submodel  + # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume + # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects + ## Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api consumer (role has t.b.d.) + @TRI-1647 @TRI-1942 @TRI-873 @TRI-1843 @TRI-1770 @TRI-1682 @DEV @INTEGRATION_TEST @INTEGRATION_TEST_2.0.0 + Scenario: 🪓🧩[DEV-TEST] End 2 End for aspect "TractionBatteryCode" + Given I register an IRS job for globalAssetId "urn:uuid:f204622a-f4f3-4be7-b255-06c27524984b" and BPN "BPNL00000003AVTH" + And collectAspects "true" + And depth 2 + And direction "downward" + And bomLifecycle "asBuilt" + And aspects : + | urn:samm:io.catenax.traction_battery_code:1.0.0#TractionBatteryCode | + When I get the job-id + Then I check, if the job has status "COMPLETED" within 20 minutes + And I check, if "submodels" are equal to "TRI-1647-expected-submodels.json" + + #h2. DEV + #||Key||Value|| + #|globalAssetId|urn:uuid:1ad0892a-59c1-4118-8b52-601540973f31| + #|BPNL|BPNL00000003CSGV| + #h3. Test Objective: + # + #__ + # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. + # + #h3. Description: + # + #__ + # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer + # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. + # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer + # # Api consumer gets an item graph document with the results for the requested globalAssetId + # + #h3. Preconditions: + # + #__ + # # DT Twin Registry is up and running and contains valid test data set + # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints + # # EDC Consumer is set up and configures to the DT Registry and Submodel  + # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume + # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects + # # Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + # * *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment |https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + # * *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api consumer (role has t.b.d.) + @TRI-1918 @TRI-1942 @TRI-1843 @TRI-1682 @TRI-1770 @TRI-873 @DEV @INTEGRATION_TEST + Scenario: 🔨🧩[DEV-TEST] End 2 End for aspects "3.0.0#SingleLevelBomAsBuilt" + Given I register an IRS job for globalAssetId "urn:uuid:1ad0892a-59c1-4118-8b52-601540973f31" and BPN "BPNL00000003CSGV" + And aspects : + | urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt | + And collectAspects "true" + And lookupBPNs "false" + And depth 1 + And bomLifecycle "asBuilt" + And direction "downward" + When I get the job-id + Then I check, if the job has status "COMPLETED" within 20 minutes + And I check, if number of "tombstones" equals to "summary/asyncFetchedItems/failed" + And I check, if "summary" contains 2 completed and 0 failed items + And I check, if "submodels" are equal to "TRI-1918-expected-submodels.json" + + #h2. DEV + #||Key||Value|| + #|globalAssetId|urn:uuid:e097c30e-9010-4eb9-8a8c-064736aceab8| + #|BPNL|BPNL00000003B2OM| + # + #h3. Test Objective: + # + #__ + # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. + # + #h3. Description: + # + #__ + # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer + # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. + # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer + # # Api consumer gets an item graph document with the results for the requested globalAssetId + # + #h3. Preconditions: + # + #__ + # # DT Twin Registry is up and running and contains valid test data set + # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints + # # EDC Consumer is set up and configures to the DT Registry and Submodel  + # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume + # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects + ## Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api consumer (role has t.b.d.) + @TRI-704 @TRI-1942 @TRI-873 @TRI-1843 @TRI-1770 @TRI-1682 @DEV @INTEGRATION_TEST + Scenario: 🔨🧩[DEV-TEST] End 2 End for Tier A (ZF) [BPN:BPNL00000003B2OM] (SerialPart 3.0.0, SingleLevelBomAsBuilt 3.0.0 , Batch 3.0.0) + Given I register an IRS job for globalAssetId "urn:uuid:e097c30e-9010-4eb9-8a8c-064736aceab8" and BPN "BPNL00000003B2OM" + And aspects : + | urn:samm:io.catenax.serial_part:3.0.0#SerialPart | + | urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt | + | urn:samm:io.catenax.batch:3.0.0#Batch | + | urn:samm:io.catenax.material_for_recycling:1.1.0#MaterialForRecycling | + And collectAspects "true" + And lookupBPNs "false" + And depth 100 + And direction "downward" + When I get the job-id + Then I check, if the job has status "COMPLETED" within 20 minutes + And I check, if number of "tombstones" equals to "summary/asyncFetchedItems/failed" + And I check, if "summary" contains 5 completed and 0 failed items + And I check, if "bpn summary" contains 4 completed and 0 failed items + And I check, if "relationships" are equal to "TRI-704-expected-relationships.json" + And I check, if "submodels" are equal to "TRI-704-expected-submodels.json" + And I check, if submodels contains BPNL number "BPNL00000003B2OM" exactly 1 times + + #h2. DEV + #||Key||Value|| + #|globalAssetId|urn:uuid:015aa300-f0ea-47cd-84d5-969f2cb2cf75| + #|BPNL| BPNL00000003B2OM | + # + # + #h3. Test Objective: + # + #__ + # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. + # + #h3. Description: + # + #__ + # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer + # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. + # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer + # # Api consumer gets an item graph document with the results for the requested globalAssetId + # + #h3. Preconditions: + # + #__ + # # DT Twin Registry is up and running and contains valid test data set + # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints + # # EDC Consumer is set up and configures to the DT Registry and Submodel  + # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume + # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects + ## Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api consumer (role has t.b.d.) + @TRI-528 @TRI-1942 @TRI-873 @TRI-1843 @TRI-1770 @TRI-1682 @DEV @INTEGRATION_TEST + Scenario: 🔨🧩[DEV-TEST] End 2 End for aspect "MaterialForRecycling" + Given I register an IRS job for globalAssetId "urn:uuid:015aa300-f0ea-47cd-84d5-969f2cb2cf75" and BPN "BPNL00000003B2OM" + And aspects : + | urn:samm:io.catenax.material_for_recycling:1.1.0#MaterialForRecycling | + And collectAspects "true" + And lookupBPNs "false" + And depth 1 + And direction "downward" + When I get the job-id + Then I check, if the job has status "COMPLETED" within 20 minutes + And I check, if number of "tombstones" equals to "summary/asyncFetchedItems/failed" + And I check, if "summary" contains 4 completed and 0 failed items + And I check, if "bpn summary" contains 3 completed and 0 failed items + And I check, if "relationships" are equal to "TRI-528-expected-relationships.json" + And I check, if "submodels" are equal to "TRI-528-expected-submodels.json" \ No newline at end of file diff --git a/irs-cucumber-tests/src/test/resources/features/6_TRI-1312_TRI-768.feature b/irs-cucumber-tests/src/test/resources/features/6_TRI-1312_TRI-768.feature new file mode 100644 index 0000000000..4ed686d122 --- /dev/null +++ b/irs-cucumber-tests/src/test/resources/features/6_TRI-1312_TRI-768.feature @@ -0,0 +1,88 @@ +@TRI-1312 +Feature: 👍 [SPIKE][PoC] Enable IRS for multiple LifeCycles (asBuilt & asSpecified) + #h2. User Story + # + #*As* CE Developer, + #*I want* to use the IRS to fetch multiple trees at the same time, + #*so that* the application Digital Product Pass can integrate the IRS. + #h2. Hints / Details / NFR (Technical, Design & Content) :  + # * contact [~kevin.tram@accenture.com] for further information + # * asBuilt and AsSpecified + # * downward + # * for one globalAssetID + # * [https://portal.int.demo.catena-x.net/semantichub/] SingleLevelBomAsSpecified BAMM 2.0.0 RELEASED + # * The Twin aspect for asSpecified is SerialPart + # + #h2. External dependencies (due date: 11.07.2023 ) + # * (x) [~sasan.baba-esfahani@bmw.de] & [~luis.rickert@accenture.com] provides testdata for asSpecified BOM --> in a first step: CE provides consistant Testdata files of aspect models Serial Part to SingleLevelBomAsSpecified + # * (x) [~sasan.baba-esfahani@bmw.de] & [~luis.rickert@accenture.com] provides a infrastructure Provider, EDC, dDTR to test the asSpecified BOM with on vehicle + # * (x) [~sasan.baba-esfahani@bmw.de] & [~luis.rickert@accenture.com] is added to testdata set as a new requirement + # * (x) [~sasan.baba-esfahani@bmw.de] & [~luis.rickert@accenture.com] adds asSpecified facets to INT environment + # + # + #h2. Hint + # !asSpecified.png|thumbnail! + # + # + #h2. TODO: + # * (-) Fill out description + # * (-) Fill out Story Points + # * (-) Assign an Assignee + # * (-) define Acceptance Criteria + # * (-) [DoR |https://confluence.catena-x.net/pages/viewpage.action?pageId=917505]  + + Background: + #@TRI-768 + Given the IRS URL "https://irs.dev.demo.catena-x.net" + And the admin user api key + + + #*Used testdataset*: 1.6.0 + # + #h3. Test Objective: + # + #__ + # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. + # + #h3. Description: + # + #__ + # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer + # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. + # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer + # # Api consumer gets an item graph document with the results for the requested globalAssetId + # + #h3. Preconditions: + # + #__ + # # DT Twin Registry is up and running and contains valid test data set + # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints + # # EDC Consumer is set up and configures to the DT Registry and Submodel  + # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume + # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects + ## Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api consumer (role has t.b.d.) + @TRI-1537 @TRI-1942 @TRI-873 @TRI-1843 @TRI-1770 @TRI-1682 @DEV @INTEGRATION_TEST + Scenario: 🪓🧩[DEV-TEST] End 2 End for aspect "JustInSequencePart" 🌟 + Given I register an IRS job for globalAssetId "urn:uuid:c6d2d642-a055-4ddf-87e3-1a3b02c689e3" and BPN "BPNL00000000BJTL" + And collectAspects "true" + And depth 10 + And direction "downward" + And bomLifecycle "asBuilt" + And aspects : + | urn:samm:io.catenax.just_in_sequence_part:1.0.0#JustInSequencePart | + When I get the job-id + Then I check, if the job has status "COMPLETED" within 20 minutes + And I check, if "submodels" are equal to "TRI-1537-expected-submodels.json" \ No newline at end of file diff --git a/irs-cucumber-tests/src/test/resources/features/7_TRI-982_TRI-768.feature b/irs-cucumber-tests/src/test/resources/features/7_TRI-982_TRI-768.feature new file mode 100644 index 0000000000..b5e59b9af0 --- /dev/null +++ b/irs-cucumber-tests/src/test/resources/features/7_TRI-982_TRI-768.feature @@ -0,0 +1,70 @@ +@TRI-982 +Feature: 👍 SingleLevelUsageAsBuilt ready to use on Dev environment + #*As a* Trace-X user + #*I want* to be able to send notification upwards in the supply chain + #*so that* I can tell my costumer, that there is an issue with a part + #h2. Hint: + # - Check the Model is correct + # - expected Result for a Battery Cell is to have several relations in the relationship array + # - Add testcase for objects focused in picture below + #!screenshot-2.png|thumbnail! + # + #*Sprint Planning 2* + # * Investigate on potential issue + # * Create testcase for expected result + + Background: + #@TRI-768 + Given the IRS URL "https://irs.dev.demo.catena-x.net" + And the admin user api key + + + #h2. DEV + #||Key||Value|| + #|globalAssetId|urn:uuid:e7777066-e453-4431-beb3-4e99d042f923| + # + #h3. Test Objective: + # + #__ + # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. + # + #h3. Description: + # + #__ + # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer + # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. + # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer + # # Api consumer gets an item graph document with the results for the requested globalAssetId + # + #h3. Preconditions: + # + #__ + # # DT Twin Registry is up and running and contains valid test data set + # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints + # # EDC Consumer is set up and configures to the DT Registry and Submodel  + # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume + # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects + ## Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api consumer (role has t.b.d.) + @TRI-1009 @TRI-1942 @TRI-873 @TRI-1843 @TRI-1770 @TRI-1682 @DEV @INTEGRATION_TEST + Scenario: 🔨🧩[DEV-TEST] End 2 End for upward direction and SingleLevelUsageAsBuilt ⌛ + Given I register an IRS job for globalAssetId "urn:uuid:e7777066-e453-4431-beb3-4e99d042f923" and BPN "BPNL00000003AVTH" + And direction "upward" + And lookupBPNs "false" + When I get the job-id + Then I check, if the job has status "COMPLETED" within 20 minutes + And I check, if "summary" contains 2 completed and 0 failed items + And I check, if "bpn summary" contains 1 completed and 0 failed items + And I check, if "relationships" are equal to "TRI-1009-expected-relationships.json" \ No newline at end of file diff --git a/irs-cucumber-tests/src/test/resources/features/8_TRI-1018_TRI-768.feature b/irs-cucumber-tests/src/test/resources/features/8_TRI-1018_TRI-768.feature new file mode 100644 index 0000000000..33854a6c18 --- /dev/null +++ b/irs-cucumber-tests/src/test/resources/features/8_TRI-1018_TRI-768.feature @@ -0,0 +1,152 @@ +@TRI-1018 +Feature: 🎏⭐⭐⭐ [27.03.2023] 👍 Batch Processing for a bunch of globalAssetIds + #h2. User Story + # + #*As* a system which calculates the Remaining Useful Life of a vehicle type based on a bunch of parts + #*I want* to pass a number of globalAssetId to the IRS in one API call + #*so that* a related research for parts are bundled in a single IRS api call + #h2. Outcome + # - + # + #h2. Hints / Details / . Hints & NFR (Technical, Design & Content))* :  + # + #* trigger callback, if applicable + # * Implement error handling (determine batch status based on aggregated job status) + # * Persist and load batches + # * Extend tavern tests to cover new API + # + #h2. Sprint Planning 2 (04.04.2023): + # * Review current PR first + # * Address any bugs found in review or on DEV/INT + # * Implement missing checksum (discuss feature with Martin + Jan first) + # * Implement timeouts + + Background: + #@TRI-768 + Given the IRS URL "https://irs.dev.demo.catena-x.net" + And the admin user api key + + + #*Used testdataset*: 1.5.0 + # + #h3. Test Objective: + # + #__ + # * Get job created by batch processing to check correct parameter. + # + #h3. Description: + # + #__ + # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer + # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. + # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer + # # Api consumer gets an item graph document with the results for the requested globalAssetId + # + #h3. Preconditions: + # + #__ + # # DT Twin Registry is up and running and contains valid test data set + # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints + # # EDC Consumer is set up and configures to the DT Registry and Submodel  + # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume + # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects + ## Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api consumer (role has t.b.d.) + @TRI-1267 @TRI-1942 @TRI-873 @TRI-1843 @TRI-1770 @DEV @INTEGRATION_TEST + Scenario: 🔨🧩[DEV-TEST] Check correct job executions of batch processing (SingleLevelBomAsBuilt/SerialPart 3.0.0) + Given I register an IRS batch job for globalAssetIds and BPNs: + | globalAssetId | bpn | + | urn:uuid:771d2ccc-a081-4d3a-bcb2-46c6a0a33743 | BPNL0000000XX0X0 | + | urn:uuid:3db730be-9de5-4db5-a58d-684de36484e7 | BPNL0000000XX0X0 | + | urn:uuid:73173bf5-08df-4898-9d6d-8899015c161e | BPNL0000000XX0X0 | + | urn:uuid:07e0997f-4212-4456-8f27-164b30fc8355 | BPNL0000000XX0X0 | + | urn:uuid:88f51be1-3771-4335-8b5c-4c5050123127 | BPNL0000000XX0X0 | + | urn:uuid:d3c0bf85-d44f-47c5-990d-fec8a36065c6 | BPNL0000000XX0X0 | + | urn:uuid:51ff7c73-34e9-45d4-816c-d92578843e68 | BPNL0000000XX0X0 | + | urn:uuid:b21cfd5b-dcf4-46fa-9227-3eb693567dd8 | BPNL0000000XX0X0 | + | urn:uuid:8f9d8c7f-6d7a-48f1-9959-9fa3a1a7a891 | BPNL0000000XX0X0 | + | urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd | BPNL0000000XX0X0 | + | urn:uuid:a4a26b9c-9460-4cc5-8645-85916b86adb0 | BPNL0000000XX0X0 | + | urn:uuid:7b87f5d6-f75e-40f1-a439-779ae9f57a21 | BPNL0000000XX0X0 | + | urn:uuid:8914a66e-b59b-405f-afff-b97d71ebece3 | BPNL0000000XX0X0 | + | urn:uuid:a1082992-cc3b-4da1-af6b-aa692ed71461 | BPNL0000000XX0X0 | + | urn:uuid:0ea1aa79-10d4-4df1-8a5a-5b7eafd26163 | BPNL0000000XX0X0 | + | urn:uuid:1e35e091-3d3d-421e-9c7e-14cf1c9442a6 | BPNL0000000XX0X0 | + | urn:uuid:cc8e9448-b294-46e7-8110-337e8bfa3001 | BPNL0000000XX0X0 | + | urn:uuid:fa5804f1-8d4e-437c-aca2-a5491be61758 | BPNL0000000XX0X0 | + | urn:uuid:a0f6803c-e4dc-4cda-8ad2-91cc57868449 | BPNL0000000XX0X0 | + | urn:uuid:492781f5-62ff-4fb2-876c-3498e2844d13 | BPNL0000000XX0X0 | + | urn:uuid:d6142601-5e09-45fe-9b42-e53cf8cd458c | BPNL0000000XX0X0 | + And collectAspects "true" + And depth 1 + And direction "downward" + And lookupBPNs "false" + And bomLifecycle "asBuilt" + And batchStrategy "PRESERVE_BATCH_JOB_ORDER" + And batchSize 10 + And callbackUrl "https://www.check123.com" + And aspects : + | urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt | + | urn:samm:io.catenax.serial_part:3.0.0#SerialPart | + + When I get the order-id + Then I check, if the order contains 3 batches + And I check, if batch 3 contains 1 job + #check batchNumber = 3 and jobsInBatchChecksum = 1 + + When I get the batch-id of "first" batch + Then I check, if the batch contains 10 jobs + And I check, if the batchNumber is 1 + And batchTotal is 3 + And totalJobs is 21 + And jobsInBatchChecksum is 10 + + When I get the "first" job-id from batch + Then I check, if job parameter are set with aspects: + | urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt | + | urn:samm:io.catenax.serial_part:3.0.0#SerialPart | + And collectAspects is "true" + And depth is 1 + And direction is "downward" + And lookupBPNs is "false" + And bomLifecycle is "asBuilt" + And callbackUrl is "https://www.check123.com" \ No newline at end of file diff --git a/irs-cucumber-tests/src/test/resources/features/9_TRI-512_TRI-817.feature b/irs-cucumber-tests/src/test/resources/features/9_TRI-512_TRI-817.feature new file mode 100644 index 0000000000..8e25a6248c --- /dev/null +++ b/irs-cucumber-tests/src/test/resources/features/9_TRI-512_TRI-817.feature @@ -0,0 +1,197 @@ +@TRI-512 +Feature: 👍 [AS_PLANNED] BomLifecycle 'asPlanned' implementation (1.0.0) + #*As* IRS-Consumer, + #*I want* to be able to traverse through a BOM as planned, + #*so that* I can use the IRS to access these structures. + # + #h2. Details: + #* [Details| https://confluence.catena-x.net/pages/viewpage.action?pageId=53248769] + #* (!) BOMAsPlanned : Update and extension of BOMAsPlanned is planned for Iteration 2. + #* (-) Traversal Aspect SingleLevelBomAsPlanned is used for bomLifecycle": "asPlanned" and direction "downwards" + #* (-) In case no aspect is choose by the api caller, default aspect "PartAsPlanned" is used for bomLifecycle "asPlanned" + # + #h2. Hint / Context :  + #---- + #* Check Semantic Hub for more detailed information about the Aspects + #* Aspects are: "PartAsPlanned“ and „SingleLevelBomAsPlanned“ + #* Contact Simon Schulz if further information is needed + #* Check if namespace starts with _io.catenax_ + #* "SingleLevelBomAsPlanned" results in QueryParameter => "bomLifecycle": "asPlanned", + #* update local Testdataset with reasonable Testdata (2 levels, 7 Component, each component has PartAsPlanned and SingleLevelBomAsPlanned with 2 children except level2 leafs) + #* use similar Structure as BomAsBuilt Dataset + #* https://confluence.catena-x.net/display/PL/Release+2+test+dataset%27s + #* Testdata: https://confluence.catena-x.net/display/PL/BoMAsPlanned+test+dataset version 1.3.4 asplanned alpha + # + # + #h2. TODO: + #---- + #* (-) implement functionality + #* (-) create Test-dataset for BoM as Planned data + #* (-) create Tests + #* (-) run Tests + #* (-) refactor API Documentation + # + #h2. Background: + #* (/) [~thomas.braun3@zf.com] will take care that testdata for BoM asPlanned are prepared. + #* (/) Aspect BoM asPlanned is already available. There is an update until Iteration 2 for . Version 1.0.0 + #* (/) Implementation BoM AsPlanned im IRS (Alignment Trace-X Implementation ESS in PI6) + #* (!) BoM As Planned will be extended Version 1.1.0 will be avaiable in iteration 2. + + Background: + #@TRI-817 + Given the IRS URL "https://irs.int.demo.catena-x.net" + And the admin user api key + + + #*Used testdataset*: 1.4.0 + # + #h3. Test Objective: + # + #__ + # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. + # + #h3. Description: + # + #__ + # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer + # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. + # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer + # # Api consumer gets an item graph document with the results for the requested globalAssetId + # + #h3. Preconditions: + # + #__ + # # DT Twin Registry is up and running and contains valid test data set + # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints + # # EDC Consumer is set up and configures to the DT Registry and Submodel  + # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume + # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects + ## Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api consumer (role has t.b.d.) + @TRI-872 @TRI-1452 @TRI-874 @INT @INTEGRATION_TEST @INTEGRATION_TEST_2.0.0 + Scenario: 🪓🧩[INT-TEST] End 2 End for BomLifecycle 'asPlanned' Vehicle Model A for BMW [BPNL00000003AYRE] + Given I register an IRS job for globalAssetId "urn:uuid:0733946c-59c6-41ae-9570-cb43a6e4c79e" and BPN "BPNL00000003AYRE" + And collectAspects "true" + And depth 10 + And direction "downward" + And bomLifecycle "asPlanned" + And aspects : + | urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned | + When I get the job-id + Then I check, if the job has status "COMPLETED" within 20 minutes + And I check, if "relationships" are equal to "TRI-872-expected-relationships.json" + And I check, if "submodels" are equal to "TRI-872-expected-submodels.json" + + #*Used testdataset*: 1.4.0 + # + #h3. Test Objective: + # + #__ + # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. + # + #h3. Description: + # + #__ + # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer + # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. + # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer + # # Api consumer gets an item graph document with the results for the requested globalAssetId + # + #h3. Preconditions: + # + #__ + # # DT Twin Registry is up and running and contains valid test data set + # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints + # # EDC Consumer is set up and configures to the DT Registry and Submodel  + # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume + # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects + ## Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api consumer (role has t.b.d.) + @TRI-894 @TRI-1452 @TRI-874 @INT @INTEGRATION_TEST @INTEGRATION_TEST_2.0.0 + Scenario: 🔨🧩[INT-TEST] End 2 End for BomLifecycle 'asPlanned' Vehicle Model C for SAP [BPNL00000003AZQP] + Given I register an IRS job for globalAssetId "urn:uuid:65e1554e-e5cd-4560-bac1-1352582122fb" and BPN "BPNL00000003AZQP" + And collectAspects "true" + And depth 10 + And direction "downward" + And bomLifecycle "asPlanned" + And aspects : + | urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned | + When I get the job-id + Then I check, if the job has status "COMPLETED" within 20 minutes + And I check, if "relationships" are equal to "TRI-894-expected-relationships.json" + And I check, if "submodels" are equal to "TRI-894-expected-submodels.json" + + #*Used testdataset*: 1.4.0 + # + #h3. Test Objective: + # + #__ + # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. + # + #h3. Description: + # + #__ + # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer + # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. + # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer + # # Api consumer gets an item graph document with the results for the requested globalAssetId + # + #h3. Preconditions: + # + #__ + # # DT Twin Registry is up and running and contains valid test data set + # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints + # # EDC Consumer is set up and configures to the DT Registry and Submodel  + # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume + # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects + ## Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api consumer (role has t.b.d.) + @TRI-892 @TRI-1452 @TRI-874 @INT @INTEGRATION_TEST @INTEGRATION_TEST_2.0.0 + Scenario: 🔨🧩[INT-TEST] End 2 End for BomLifecycle 'asPlanned' Vehicle Model B for MercedesBenz [BPNL00000003AVTH] + Given I register an IRS job for globalAssetId "urn:uuid:68904173-ad59-4a77-8412-3e73fcafbd8b" and BPN "BPNL00000003AVTH" + And collectAspects "true" + And depth 10 + And direction "downward" + And bomLifecycle "asPlanned" + And aspects : + | urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned | + When I get the job-id + Then I check, if the job has status "COMPLETED" within 20 minutes + And I check, if "relationships" are equal to "TRI-892-expected-relationships.json" + And I check, if "submodels" are equal to "TRI-892-expected-submodels.json" \ No newline at end of file From 8c98a7d84a5ce8b5b5d2849b3f6e35022c9a8b5f Mon Sep 17 00:00:00 2001 From: ds-kgassner Date: Wed, 8 May 2024 16:13:12 +0200 Subject: [PATCH 2/8] fix(tests): [#503] fix submodel results for TRI-1914 --- .../TRI-1914-expected-submodels.json | 74 +++++++++---------- 1 file changed, 37 insertions(+), 37 deletions(-) diff --git a/irs-cucumber-tests/src/test/resources/expected-files/TRI-1914-expected-submodels.json b/irs-cucumber-tests/src/test/resources/expected-files/TRI-1914-expected-submodels.json index 862e847d27..c143b04544 100644 --- a/irs-cucumber-tests/src/test/resources/expected-files/TRI-1914-expected-submodels.json +++ b/irs-cucumber-tests/src/test/resources/expected-files/TRI-1914-expected-submodels.json @@ -1,40 +1,40 @@ { "submodels": [ - { - "identification": "urn:uuid:17354138-5bf3-45ba-899a-d5245d4d9c83", - "aspectType": "urn:samm:io.catenax.batch:3.0.0#Batch", - "contractAgreementId": "MDBmZDcyMDktYTE2MS00OWM5LWFiMzAtMmUwMDllNWE3MDAw:dXJuOnV1aWQ6Njc1NWMyZTAtNzc5Ni00NTYzLWE1NjktYTk3NmZjZTNiYjQ3:MjhhN2VlY2EtMDQwNi00ZjQ4LWI2NDktMjhiYzU0NzcyNTcx", - "payload": { - "localIdentifiers": [ - { - "value": "BPNL00000003AXS3", - "key": "batchId" - } - ], - "manufacturingInformation": { - "date": "2022-02-04T14:48:54", - "country": "HUR", - "sites": [ - { - "catenaXsiteId": "BPNS00000003AXS3", - "function": "production" - } - ] - }, - "catenaXId": "urn:uuid:ee9b9c9e-1416-45a3-b683-d98d5d88e548", - "partTypeInformation": { - "manufacturerPartId": "SC-00", - "partClassification": [ - { - "classificationDescription": "Standard data element types with associated classification scheme for electric components.", - "classificationStandard": "IEC", - "classificationID": "61360- 2:2012 " - } - ], - "nameAtManufacturer": "Mirror left" - }, - "itemVersion": "03" - } - } - ] + { + "identification": "urn:uuid:25f66a0d-2a2e-4af7-a134-c3559be44bb9", + "aspectType": "urn:samm:io.catenax.batch:3.0.0#Batch", + "contractAgreementId": "33d17201-e8a7-4ae1-a32a-182806fee651", + "payload": { + "localIdentifiers": [ + { + "value": "BPNL00000003AXS3", + "key": "batchId" + } + ], + "manufacturingInformation": { + "date": "2022-02-04T14:48:54Z", + "country": "HUR", + "sites": [ + { + "catenaXsiteId": "BPNS00000003AXS3", + "function": "production" + } + ] + }, + "catenaXId": "urn:uuid:d78045d5-4ee7-4980-b24c-31dafeb6f54f", + "partTypeInformation": { + "manufacturerPartId": "GH-22", + "partClassification": [ + { + "classificationDescription": "Standard data element types with associated classification scheme for electric components.", + "classificationStandard": "IEC", + "classificationID": "61360- 2:2012 " + } + ], + "nameAtManufacturer": "Mirror left" + }, + "itemVersion": "03" + } + } + ] } \ No newline at end of file From 85decb332445ea51400917b6fdc3e08e25333c84 Mon Sep 17 00:00:00 2001 From: ds-kgassner Date: Wed, 8 May 2024 16:32:19 +0200 Subject: [PATCH 3/8] fix(featurefiles): [#503] removing feature files --- .../resources/features/10_TRI-817.feature | 250 --------- .../resources/features/1_TRI-1616.feature | 271 --------- .../test/resources/features/1_TRI-686.feature | 10 - .../features/2_TRI-1577_TRI-768.feature | 107 ---- .../resources/features/3_TRI-1949.feature | 527 ------------------ .../features/4_TRI-512_TRI-768.feature | 197 ------- .../test/resources/features/5_TRI-768.feature | 459 --------------- .../features/6_TRI-1312_TRI-768.feature | 88 --- .../features/7_TRI-982_TRI-768.feature | 70 --- .../features/8_TRI-1018_TRI-768.feature | 152 ----- .../features/9_TRI-512_TRI-817.feature | 197 ------- 11 files changed, 2328 deletions(-) delete mode 100644 irs-cucumber-tests/src/test/resources/features/10_TRI-817.feature delete mode 100644 irs-cucumber-tests/src/test/resources/features/1_TRI-1616.feature delete mode 100644 irs-cucumber-tests/src/test/resources/features/1_TRI-686.feature delete mode 100644 irs-cucumber-tests/src/test/resources/features/2_TRI-1577_TRI-768.feature delete mode 100644 irs-cucumber-tests/src/test/resources/features/3_TRI-1949.feature delete mode 100644 irs-cucumber-tests/src/test/resources/features/4_TRI-512_TRI-768.feature delete mode 100644 irs-cucumber-tests/src/test/resources/features/5_TRI-768.feature delete mode 100644 irs-cucumber-tests/src/test/resources/features/6_TRI-1312_TRI-768.feature delete mode 100644 irs-cucumber-tests/src/test/resources/features/7_TRI-982_TRI-768.feature delete mode 100644 irs-cucumber-tests/src/test/resources/features/8_TRI-1018_TRI-768.feature delete mode 100644 irs-cucumber-tests/src/test/resources/features/9_TRI-512_TRI-817.feature diff --git a/irs-cucumber-tests/src/test/resources/features/10_TRI-817.feature b/irs-cucumber-tests/src/test/resources/features/10_TRI-817.feature deleted file mode 100644 index e34ada370a..0000000000 --- a/irs-cucumber-tests/src/test/resources/features/10_TRI-817.feature +++ /dev/null @@ -1,250 +0,0 @@ -Feature: Default - - Background: - #@TRI-817 - Given the IRS URL "https://irs.int.demo.catena-x.net" - And the admin user api key - - - #h2. INT  - #||Key||Value|| - #|globalAssetId|urn:uuid:334cce52-1f52-4bc9-9dd1-410bbe497bbc| - #|BPNL|BPNL00000003B2OM| - # - #h3. Test Objective: - # - #__ - # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. - # - #h3. Description: - # - #__ - # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer - # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. - # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer - # # Api consumer gets an item graph document with the results for the requested globalAssetId - # - #h3. Preconditions: - # - #__ - # # DT Twin Registry is up and running and contains valid test data set - # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints - # # EDC Consumer is set up and configures to the DT Registry and Submodel  - # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume - # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects - ## Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api consumer (role has t.b.d.) - @TRI-818 @TRI-1452 @TRI-874 @INT @INTEGRATION_TEST @[INT-TEST] - Scenario: 🔨🧩[INT-TEST] End 2 End for Tier A (ZF) [BPN:BPNL00000003B2OM] - Given I register an IRS job for globalAssetId "urn:uuid:334cce52-1f52-4bc9-9dd1-410bbe497bbc" and BPN "BPNL00000003B2OM" - And aspects : - | urn:bamm:io.catenax.serial_part:1.0.1#SerialPart | - | urn:bamm:io.catenax.single_level_bom_as_built:2.0.0#SingleLevelBomAsBuilt | - | urn:samm:io.catenax.batch:2.0.0#Batch | - | urn:bamm:io.catenax.material_for_recycling:1.1.0#MaterialForRecycling | - And collectAspects "true" - And lookupBPNs "false" - And depth 100 - And direction "downward" - When I get the job-id - Then I check, if the job has status "COMPLETED" within 20 minutes - And I check, if number of "tombstones" equals to "summary/asyncFetchedItems/failed" - And I check, if "summary" contains 12 completed and 0 failed items - And I check, if "bpn summary" contains 4 completed and 0 failed items - And I check, if "relationships" are equal to "TRI-704-expected-relationships.json" - And I check, if "submodels" are equal to "TRI-704-expected-submodels.json" - And I check, if submodels contains BPNL number "BPNL00000003B2OM" exactly 1 times - - #h2. INT  - #||Key||Value|| - #|globalAssetId|urn:uuid:ed333e9a-5afa-40b2-99da-bae2fd21501e| - #|BPNL|BPNL00000003AVTH| - # - #h3. Test Objective: - # - #__ - # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. - # - #h3. Description: - # - #__ - # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer - # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. - # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer - # # Api consumer gets an item graph document with the results for the requested globalAssetId - # - #h3. Preconditions: - # - #__ - # # DT Twin Registry is up and running and contains valid test data set - # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints - # # EDC Consumer is set up and configures to the DT Registry and Submodel  - # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume - # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects - ## Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api consumer (role has t.b.d.) - @TRI-1070 @TRI-1452 @TRI-874 @INT @INTEGRATION_TEST @INTEGRATION_TEST_2.0.0 - Scenario: 🔨🧩[INT-TEST] End 2 End for OEM B (Mercedes Benz) [BPN: BPNL00000003AVTH] - Given I register an IRS job for globalAssetId "urn:uuid:ed333e9a-5afa-40b2-99da-bae2fd21501e" and BPN "BPNL00000003AVTH" - And aspects : - | urn:bamm:io.catenax.serial_part:1.0.1#SerialPart | - | urn:bamm:io.catenax.single_level_bom_as_built:2.0.0#SingleLevelBomAsBuilt | - | urn:samm:io.catenax.batch:2.0.0#Batch | - | urn:bamm:io.catenax.material_for_recycling:1.1.0#MaterialForRecycling | - | urn:bamm:io.catenax.physical_dimension:1.0.0#PhysicalDimension | - And collectAspects "true" - And lookupBPNs "false" - And depth 10 - And direction "downward" - When I get the job-id - Then I check, if the job has status "COMPLETED" within 20 minutes - And I check, if number of "tombstones" equals to "summary/asyncFetchedItems/failed" - And I check, if "summary" contains 35 completed and 0 failed items - And I check, if "bpn summary" contains 35 completed and 0 failed items - And I check, if "relationships" are equal to "TRI-1070-expected-relationships.json" - And I check, if "submodels" are equal to "TRI-1070-expected-submodels.json" - And I check, if submodels contains BPNL number "BPNL00000003AVTH" exactly 35 times - - #h2. INT  - #||Key||Value|| - #|globalAssetId|urn:uuid:6d505432-8b31-4966-9514-4b753372683f| - #|BPNL|BPNL00000003AVTH| - # - #h3. Test Objective: - # - #__ - # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. - # - #h3. Description: - # - #__ - # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer - # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. - # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer - # # Api consumer gets an item graph document with the results for the requested globalAssetId - # - #h3. Preconditions: - # - #__ - # # DT Twin Registry is up and running and contains valid test data set - # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints - # # EDC Consumer is set up and configures to the DT Registry and Submodel  - # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume - # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects - ## Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api consumer (role has t.b.d.) - @TRI-819 @TRI-1452 @TRI-874 @TEST-315 @INT @INTEGRATION_TEST @[INT-TEST] - Scenario: 🔨🧩[INT-TEST] End 2 End for OEM-B (MB) [BPN:BPNL00000003AVTH] - Given I register an IRS job for globalAssetId "urn:uuid:6d505432-8b31-4966-9514-4b753372683f" and BPN "BPNL00000003AVTH" - And collectAspects "true" - And lookupBPNs "false" - And depth 100 - And direction "downward" - And aspects : - | urn:bamm:io.catenax.serial_part:1.0.1#SerialPart | - | urn:bamm:io.catenax.single_level_bom_as_built:2.0.0#SingleLevelBomAsBuilt | - | urn:samm:io.catenax.batch:2.0.0#Batch | - When I get the job-id - Then I check, if the job has status "COMPLETED" within 20 minutes - And I check, if number of "tombstones" equals to "summary/asyncFetchedItems/failed" - And I check, if "summary" contains 271 completed and 0 failed items - And I check, if "bpn summary" contains 83 completed and 0 failed items - And I check, if "relationships" are equal to "TRI-767-expected-relationships.json" - And I check, if "submodels" are equal to "TRI-767-expected-submodels.json" - And I check, if submodels contains BPNL number "BPNL00000003AVTH" exactly 69 times - - #h2. INT  - #||Key||Value|| - #|globalAssetId|urn:uuid:e95f3ff2-c5e7-49a5-873b-aee2728917d3| - #|BPNL| BPNL00000003B2OM | - # - # - # - #h3. Test Objective: - # - #__ - # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. - # - #h3. Description: - # - #__ - # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer - # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. - # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer - # # Api consumer gets an item graph document with the results for the requested globalAssetId - # - #h3. Preconditions: - # - #__ - # # DT Twin Registry is up and running and contains valid test data set - # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints - # # EDC Consumer is set up and configures to the DT Registry and Submodel  - # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume - # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects - ## Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api consumer (role has t.b.d.) - @TRI-820 @TRI-1452 @TRI-874 @INT @INTEGRATION_TEST @[INT-TEST] - Scenario: 🔨🧩[INT-TEST] End 2 End for aspect "MaterialForRecycling" - Given I register an IRS job for globalAssetId "urn:uuid:e95f3ff2-c5e7-49a5-873b-aee2728917d3" and BPN "BPNL00000003B2OM" - And aspects : - | urn:bamm:io.catenax.material_for_recycling:1.1.0#MaterialForRecycling | - And collectAspects "true" - And lookupBPNs "false" - And depth 100 - And direction "downward" - When I get the job-id - Then I check, if the job has status "COMPLETED" within 20 minutes - And I check, if number of "tombstones" equals to "summary/asyncFetchedItems/failed" - And I check, if "summary" contains 5 completed and 3 failed items - And I check, if "bpn summary" contains 4 completed and 0 failed items - And I check, if "relationships" are equal to "TRI-528-expected-relationships.json" - And I check, if "submodels" are equal to "TRI-528-expected-submodels.json" - #And I check, if submodels contains BPNL number "BPNL00000003B2OM" exactly 1 times \ No newline at end of file diff --git a/irs-cucumber-tests/src/test/resources/features/1_TRI-1616.feature b/irs-cucumber-tests/src/test/resources/features/1_TRI-1616.feature deleted file mode 100644 index 6509589eb4..0000000000 --- a/irs-cucumber-tests/src/test/resources/features/1_TRI-1616.feature +++ /dev/null @@ -1,271 +0,0 @@ -Feature: Default - - Background: - #@TRI-1616 - Given the IRS URL "https://irs-dil.dev.demo.catena-x.net" - And the admin user api key - - - #*Used testdata* from TRI-1291. - # - #*TBD:* - #h3. Test Objective: - # - #__ - # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. - # - #h3. Description: - # - #__ - # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer - # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. - # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer - # # Api consumer gets an item graph document with the results for the requested globalAssetId - # - #h3. Preconditions: - # - #__ - # # DT Twin Registry is up and running and contains valid test data set - # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints - # # EDC Consumer is set up and configures to the DT Registry and Submodel  - # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume - # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects - ## Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api consumer (role has t.b.d.) - @TRI-1564 @TRI-1942 @TRI-873 @TRI-1843 @DIL @INTEGRATION_TEST @INTEGRATION_TEST_2.0.0 - Scenario: 🔨🧩[DIL] Check data integrity use case with one changed part - Given I register an IRS job for globalAssetId "urn:uuid:05abf6ff-8c78-4b72-948b-40e08e9b83f3" and BPN "BPNL00000003AZQP" - And integrityCheck "true" - And collectAspects "true" - And aspects : - | urn:bamm:io.catenax.serial_part:1.0.1#SerialPart | - When I get the job-id - Then I check, if the job has status "COMPLETED" within 10 minutes - # And I check, if "part-changed" tombstones for data integrity are existing - And I check, if integrityState is "INVALID" - - #Vehicle A - #urn:uuid:a1fa0f85-697d-4c9d-982f-2501af8e8636 - #Complete and valid integrity aspects - # - #Vehicle B - #urn:uuid:05abf6ff-8c78-4b72-948b-40e08e9b83f3 - #1 Part urn:uuid:dc60fc50-c875-4ce6-a1b9-d59c4c1e0b17 has payload which changed after the hash was created - # - #Vehicle C - ##urn:uuid:17e11d67-0315-4504-82cd-8e70a8c33a6a - #Signatures for Part urn:uuid:8c437b9d-f1b8-4397-b030-c3637eaf9b53 were created with a different private key - # - #Vehicle D - #urn:uuid:5672e8ff-8a73-425e-b2a5-5561b5b21d7a - #IntegrityAspect for part urn:uuid:ef3865b8-6811-4659-a1b5-e186f8e42258 is missing - - #*Used testdata* from TRI-1291. - # - #*TBD:* - #h3. Test Objective: - # - #__ - # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. - # - #h3. Description: - # - #__ - # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer - # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. - # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer - # # Api consumer gets an item graph document with the results for the requested globalAssetId - # - #h3. Preconditions: - # - #__ - # # DT Twin Registry is up and running and contains valid test data set - # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints - # # EDC Consumer is set up and configures to the DT Registry and Submodel  - # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume - # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects - ## Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api consumer (role has t.b.d.) - @TRI-1565 @TRI-1942 @TRI-873 @TRI-1843 @DIL @INTEGRATION_TEST @INTEGRATION_TEST_2.0.0 - Scenario: 🔨🧩[DIL] Check data integrity use case with one part created with different private key - Given I register an IRS job for globalAssetId "urn:uuid:17e11d67-0315-4504-82cd-8e70a8c33a6a" and BPN "BPNL00000003AZQP" - And integrityCheck "true" - And aspects : - | urn:bamm:io.catenax.single_level_bom_as_built:2.0.0#SingleLevelBomAsBuilt | - When I get the job-id - Then I check, if the job has status "COMPLETED" within 10 minutes - #And I check, if "different private key" tombstones for data integrity are existing - And I check, if integrityState is "INVALID" - - #Vehicle A - #urn:uuid:a1fa0f85-697d-4c9d-982f-2501af8e8636 - #Complete and valid integrity aspects - # - #Vehicle B - #urn:uuid:05abf6ff-8c78-4b72-948b-40e08e9b83f3 - #1 Part urn:uuid:dc60fc50-c875-4ce6-a1b9-d59c4c1e0b17 has payload which changed after the hash was created - # - #Vehicle C - #urn:uuid:17e11d67-0315-4504-82cd-8e70a8c33a6a - #Signatures for Part urn:uuid:8c437b9d-f1b8-4397-b030-c3637eaf9b53 were created with a different private key - # - #Vehicle D - #urn:uuid:5672e8ff-8a73-425e-b2a5-5561b5b21d7a - #IntegrityAspect for part urn:uuid:ef3865b8-6811-4659-a1b5-e186f8e42258 is missing - - #*Used testdata* from TRI-1291. - # - #*TBD:* - #h3. Test Objective: - # - #__ - # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. - # - #h3. Description: - # - #__ - # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer - # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. - # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer - # # Api consumer gets an item graph document with the results for the requested globalAssetId - # - #h3. Preconditions: - # - #__ - # # DT Twin Registry is up and running and contains valid test data set - # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints - # # EDC Consumer is set up and configures to the DT Registry and Submodel  - # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume - # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects - ## Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api consumer (role has t.b.d.) - @TRI-1566 @TRI-1942 @TRI-873 @TRI-1843 @DIL @INTEGRATION_TEST @INTEGRATION_TEST_2.0.0 - Scenario: 🔨🧩[DIL] Check data integrity use case with missing integrity aspect for one part - Given I register an IRS job for globalAssetId "urn:uuid:5672e8ff-8a73-425e-b2a5-5561b5b21d7a" and BPN "BPNL00000003AZQP" - And integrityCheck "true" - And collectAspects "true" - And aspects : - | urn:bamm:io.catenax.serial_part:1.0.1#SerialPart | - | urn:bamm:io.catenax.single_level_bom_as_built:2.0.0#SingleLevelBomAsBuilt | - When I get the job-id - Then I check, if the job has status "COMPLETED" within 10 minutes - #And I check, if "missing integrity aspect" tombstones for data integrity are existing - And I check, if integrityState is "INVALID" - - #Vehicle A - #urn:uuid:a1fa0f85-697d-4c9d-982f-2501af8e8636 - #Complete and valid integrity aspects - # - #Vehicle B - #urn:uuid:05abf6ff-8c78-4b72-948b-40e08e9b83f3 - #1 Part urn:uuid:dc60fc50-c875-4ce6-a1b9-d59c4c1e0b17 has payload which changed after the hash was created - # - #Vehicle C - #urn:uuid:17e11d67-0315-4504-82cd-8e70a8c33a6a - #Signatures for Part urn:uuid:8c437b9d-f1b8-4397-b030-c3637eaf9b53 were created with a different private key - # - #Vehicle D - #urn:uuid:5672e8ff-8a73-425e-b2a5-5561b5b21d7a - #IntegrityAspect for part urn:uuid:ef3865b8-6811-4659-a1b5-e186f8e42258 is missing - - #*Used testdata* from TRI-1291. - # - #*TBD:* - #h3. Test Objective: - # - #__ - # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. - # - #h3. Description: - # - #__ - # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer - # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. - # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer - # # Api consumer gets an item graph document with the results for the requested globalAssetId - # - #h3. Preconditions: - # - #__ - # # DT Twin Registry is up and running and contains valid test data set - # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints - # # EDC Consumer is set up and configures to the DT Registry and Submodel  - # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume - # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects - ## Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api consumer (role has t.b.d.) - @TRI-1563 @TRI-1942 @TRI-873 @TRI-1843 @DIL @INTEGRATION_TEST @INTEGRATION_TEST_2.0.0 - Scenario: 🔨🧩[DIL] Check data integrity use case with complete and valid integrity aspects - Given I register an IRS job for globalAssetId "urn:uuid:a1fa0f85-697d-4c9d-982f-2501af8e8636" and BPN "BPNL00000003AZQP" - And integrityCheck "true" - And aspects : - | urn:bamm:io.catenax.serial_part:1.0.1#SerialPart | - | urn:bamm:io.catenax.single_level_bom_as_built:2.0.0#SingleLevelBomAsBuilt | - When I get the job-id - Then I check, if the job has status "COMPLETED" within 10 minutes - #And I check, if "no" tombstones for data integrity are existing - And I check, if integrityState is "VALID" - - #Vehicle A - #urn:uuid:a1fa0f85-697d-4c9d-982f-2501af8e8636 - #Complete and valid integrity aspects - # - #Vehicle B - #urn:uuid:05abf6ff-8c78-4b72-948b-40e08e9b83f3 - #1 Part urn:uuid:dc60fc50-c875-4ce6-a1b9-d59c4c1e0b17 has payload which changed after the hash was created - # - #Vehicle C - ##urn:uuid:17e11d67-0315-4504-82cd-8e70a8c33a6a - #Signatures for Part urn:uuid:8c437b9d-f1b8-4397-b030-c3637eaf9b53 were created with a different private key - # - #Vehicle D - #urn:uuid:5672e8ff-8a73-425e-b2a5-5561b5b21d7a - #IntegrityAspect for part urn:uuid:ef3865b8-6811-4659-a1b5-e186f8e42258 is missing \ No newline at end of file diff --git a/irs-cucumber-tests/src/test/resources/features/1_TRI-686.feature b/irs-cucumber-tests/src/test/resources/features/1_TRI-686.feature deleted file mode 100644 index 545fa843a3..0000000000 --- a/irs-cucumber-tests/src/test/resources/features/1_TRI-686.feature +++ /dev/null @@ -1,10 +0,0 @@ -@TRI-686 @Ignore -Feature: Cucumber Test Story - - - @TRI-687 @Ignore - Scenario: Test Cucumber Test Story - Given I have entered 1 into the calculator - And I have entered 2 into the calculator - When I press add - Then the result should be 3 on the screen \ No newline at end of file diff --git a/irs-cucumber-tests/src/test/resources/features/2_TRI-1577_TRI-768.feature b/irs-cucumber-tests/src/test/resources/features/2_TRI-1577_TRI-768.feature deleted file mode 100644 index 31f8166105..0000000000 --- a/irs-cucumber-tests/src/test/resources/features/2_TRI-1577_TRI-768.feature +++ /dev/null @@ -1,107 +0,0 @@ -@TRI-1577 -Feature: 👍[RELEASE_3.2.0][HOTFIX] Update Batch Aspectmodel v. 2.0.0 - #h2. Business Value - # # (y) [ ] *User-business value:* - # # (y) [ ] *Risk reduction:* - # # (y) [x] *Regulatory value:* - # # (y) [ ] *Commercial value:* - # # (y) [ ] *Market value:* - # # (y) [ ] *Efficiency value:* - # # (y) [ ] *Future value:* - # - #h2. User Story - # - #*As a PO* - #*I want to fullfill the compliance guardrails* - #*so that _our application / project have success_* - #h2. Outcome - # - (/) aspect model for batch updated to version 2.0.0 >> IRS no longer uses Aspect Models Batch or SerialPart in Code so these changes are solely for plain submodels. I verified locally that Batch 2.0.0 is sucessfully passed in "submodels" in the job response, using the example payload generated from the .ttl files of - # - (/) Extend the IRS testdata file with new batch model 2.0.0 >> see [PR #502|https://github.com/catenax-ng/tx-item-relationship-service/pull/502] - # - (/) Test adjusted testdata new on Batch semantic model (Environment: DEV) >> We are still depending from the testdata set -> Requirement defined TDG-26 - # - (/) Add a new story for removal Batch and SerialPart dependencies from code (FUP) >> No follow up is required there are no changes necessary - # - (/) Check if SubmodelModels are still needed if in the case it is create a new story to get rid of this code >> IRS no longer uses Aspect Models Batch or SerialPart in Code so these changes are solely for plain submodels. I verified locally that Batch 2.0.0 is sucessfully passed in "submodels" in the job response, using the example payload generated from the .ttl files of - # - (/) Cucumber tests are adjusted to new batch models >> Show successfully execution of cucumber tests [~alexander.bulgakov@partner.doubleslash.de] -> See execution [TRI-1603|https://jira.catena-x.net/secure/XrayExecuteTest!default.jspa?testExecIssueKey=TRI-1603&testIssueKey=TRI-1598] - # - #h2. Hints / Details : - # * PR for Batch Aspect [https://github.com/eclipse-tractusx/sldt-semantic-models/pull/286] - # - #Changers: - # - Semantic ID will change - # - customerPartId deleted - # - nameAtCustomer deleted - # - #h2. NFR - #h2. Dependency - # # (?) [ ] * Portal / Access Management - # # (?) [ ] * Testdata Management - # # (?) [ ] * Test Management AND/OR Release Management - # # (?) [ ] * Semantic Model Teams - # # (?) [ ] * EDC - # # (?) [ ] * Decentral twin infrastructure (discovery finders * ) - # # (?) [ ] * IRS - # # (?) [ ] * To be extended .... - # - #h2. TODO: - # * (-) Fill out description - # * (-) Fill out Story Points - # * (-) (Assign an Assignee - might be done during the Sprint) - # * (-) define Acceptance Criteria - # * (-) [DoR |https://confluence.catena-x.net/pages/viewpage.action?pageId=917505] - - Background: - #@TRI-768 - Given the IRS URL "https://irs.dev.demo.catena-x.net" - And the admin user api key - - - #*Used testdataset*: 1.5.3 - # - #h3. Test Objective: - # - #__ - # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. - # - #h3. Description: - # - #__ - # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer - # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. - # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer - # # Api consumer gets an item graph document with the results for the requested globalAssetId - # - #h3. Preconditions: - # - #__ - # # DT Twin Registry is up and running and contains valid test data set - # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints - # # EDC Consumer is set up and configures to the DT Registry and Submodel  - # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume - # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects - ## Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api consumer (role has t.b.d.) - @TRI-1598 @TRI-1843 @TRI-1942 @TRI-873 @TRI-1770 @TRI-1682 @DEV @INTEGRATION_TEST - Scenario: 🔨🧩[DEV-TEST] BomLifecycle 'asBuilt' for testing "Batch"-Model [BPNL00000003AVTH] 🌟 - Given I register an IRS job for globalAssetId "urn:uuid:8724338c-5c85-4c34-91eb-e2735d58fb0d" and BPN "BPNL00000003AVTH" - And collectAspects "true" - And depth 10 - And direction "downward" - And bomLifecycle "asBuilt" - And lookupBPNs "false" - And aspects : - | urn:samm:io.catenax.batch:3.0.0#Batch | - When I get the job-id - Then I check, if the job has status "COMPLETED" within 20 minutes - And I check, if "relationships" are equal to "TRI-1598-expected-relationships.json" - And I check, if "submodels" are equal to "TRI-1598-expected-submodels.json" \ No newline at end of file diff --git a/irs-cucumber-tests/src/test/resources/features/3_TRI-1949.feature b/irs-cucumber-tests/src/test/resources/features/3_TRI-1949.feature deleted file mode 100644 index 9ed1f8d9be..0000000000 --- a/irs-cucumber-tests/src/test/resources/features/3_TRI-1949.feature +++ /dev/null @@ -1,527 +0,0 @@ -Feature: Default - - Background: - #@TRI-1949 - Given the IRS URL "https://irs.dev.demo.catena-x.net/" -- policystore - And the admin user api key -- policystore - - - #{*}Used testdataset{*}: — - #h3. Test Objective: - # - #__ - # * Register policies for different BPNLs - # - #h3. Description: - # - #__ - # # Register policies (for associating with more than one BPNL POST + UPDATE is needed) - # # Get all policies and get policies for BPNLs and check - # - #h3. Preconditions: - # - #__ - # # Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - # * *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment |https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - # * *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api admin - @TRI-1950 @TRI-873 @DEV @INTEGRATION_TEST - Scenario: 🔨🧩[DEV-TEST] Policy Store API: Register policies - # cleanup - Given no policies with prefix "integration-test-policy-" exist - - # act and assert - Given I want to register a policy with policyId "integration-test-policy-1111" - And the policy should be associated to BPN "BPNL1234567890AB" - And the policy should have validUntil "1111-11-11T11:11:11.111Z" - When I register the policy - Then the create policy response should have HTTP status 201 and policyId "integration-test-policy-1111" - - Given I want to register a policy with policyId "integration-test-policy-2222" - And the policy should be associated to the following BPNs: - | BPNL1234567890AB | - | BPNL1234567890CD | - And the policy should have validUntil "2222-11-11T11:11:11.111Z" - When I register the policy - Then the create policy response should have HTTP status 201 and policyId "integration-test-policy-2222" - - When a policy with policyId "integration-test-policy-3333" is registered for BPN "BPNL1234567890CD" and validUntil "3333-11-11T11:11:11.111Z" - Then the create policy response should have HTTP status 201 and policyId "integration-test-policy-3333" - - When a policy with policyId "integration-test-policy-4444" is registered for BPN "BPNL1234567890CD" and validUntil "4444-11-11T11:11:11.111Z" - Then the create policy response should have HTTP status 201 and policyId "integration-test-policy-4444" - - When I successfully fetch all policies - Then the BPNs should be associated with policies as follows: - | BPN | policyId | - | BPNL1234567890AB | integration-test-policy-1111 | - | BPNL1234567890AB | integration-test-policy-2222 | - | BPNL1234567890CD | integration-test-policy-2222 | - | BPNL1234567890CD | integration-test-policy-3333 | - | BPNL1234567890CD | integration-test-policy-4444 | - - When I fetch policies for BPNs: - | BPNL1234567890AB | - Then the fetch policies for BPN response should have HTTP status 200 - And the BPNs should be associated with policies as follows: - | BPN | policyId | - | BPNL1234567890AB | integration-test-policy-1111 | - | BPNL1234567890AB | integration-test-policy-2222 | - - When I fetch policies for BPNs: - | BPNL1234567890CD | - Then the fetch policies for BPN response should have HTTP status 200 - And the BPNs should be associated with policies as follows: - | BPN | policyId | - | BPNL1234567890CD | integration-test-policy-2222 | - | BPNL1234567890CD | integration-test-policy-3333 | - | BPNL1234567890CD | integration-test-policy-4444 | - - When I fetch policies for BPNs: - | BPNL1234567890AB | - | BPNL1234567890CD | - Then the fetch policies for BPN response should have HTTP status 200 - And the BPNs should be associated with policies as follows: - | BPN | policyId | - | BPNL1234567890AB | integration-test-policy-1111 | - | BPNL1234567890AB | integration-test-policy-2222 | - | BPNL1234567890CD | integration-test-policy-2222 | - | BPNL1234567890CD | integration-test-policy-3333 | - | BPNL1234567890CD | integration-test-policy-4444 | - - #{*}Used testdataset{*}: — - #h3. Test Objective: - # - #__ - # * Update a policies validUntil date and check if successful - # - #h3. Description: - # - #__ - # # Register a policy - # # Update its validUntil - # # Assert that update was successful - # - #h3. Preconditions: - # - #__ - # # Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - # * *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment |https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - # * *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api admin - @TRI-1951 @TRI-873 @DEV @INTEGRATION_TEST - Scenario: 🔨🧩[DEV-TEST] Policy Store API: Update a policy validUntil date - # cleanup - Given no policies with prefix "integration-test-policy-" exist - - # set up testdata - Given a policy with policyId "integration-test-policy-1111" is registered for BPN "BPNL1234567890AB" and validUntil "1111-11-11T11:11:11.111Z" - Then the create policy response should have HTTP status 201 and policyId "integration-test-policy-1111" - - # act and assert - When I update policy "integration-test-policy-1111", BPN "BPNL1234567890AB", validUntil "1112-11-11T11:11:11.111Z" - Then the update policy response should have HTTP status 200 - When I successfully fetch all policies - Then the BPN "BPNL1234567890AB" should have a policy with policyId "integration-test-policy-1111" and validUntil "1112-11-11T11:11:11.111Z" - - #{*}Used testdataset{*}: — - #h3. Test Objective: - # - #__ - # * Update validUntil of a policy that is assocoated to multiple BPNLs and check if successful - # - #h3. Description: - # - #__ - # # Register a policy and asssociate it with multiple BPNLs - # # Update its validUntil - # # Assert that update was successful - # - #h3. Preconditions: - # - #__ - # # Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - # * *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment |https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - # * *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api admin - @TRI-1952 @TRI-873 @DEV @INTEGRATION_TEST - Scenario: 🔨🧩[DEV-TEST] Policy Store API: Update a policy validUntil date for a policy that is associated to multiple BPNs - # cleanup - Given no policies with prefix "integration-test-policy-" exist - - # set up testdata - Given I want to register a policy with policyId "integration-test-policy-1111" - And the policy should be associated to BPN "BPNL1234567890AB" - And the policy should have validUntil "1111-11-11T11:11:11.111Z" - When I register the policy - Then the create policy response should have HTTP status 201 and policyId "integration-test-policy-1111" - - Given I want to register a policy with policyId "integration-test-policy-2222" - And the policy should be associated to BPN "BPNL1234567890AB" - And the policy should have validUntil "2222-11-11T11:11:11.111Z" - And the policy should be associated to the following BPNs: - | BPNL1234567890AB | - | BPNL1234567890CD | - When I register the policy - Then the create policy response should have HTTP status 201 and policyId "integration-test-policy-2222" - - When a policy with policyId "integration-test-policy-3333" is registered for BPN "BPNL1234567890CD" and validUntil "3333-11-11T11:11:11.111Z" - Then the create policy response should have HTTP status 201 and policyId "integration-test-policy-3333" - - When a policy with policyId "integration-test-policy-4444" is registered for BPN "BPNL1234567890CD" and validUntil "4444-11-11T11:11:11.111Z" - Then the create policy response should have HTTP status 201 and policyId "integration-test-policy-4444" - - # check the testdata preconditions - When I successfully fetch all policies - Then the BPN "BPNL1234567890AB" should have a policy with policyId "integration-test-policy-1111" and validUntil "1111-11-11T11:11:11.111Z" - And the BPN "BPNL1234567890AB" should have a policy with policyId "integration-test-policy-2222" and validUntil "2222-11-11T11:11:11.111Z" - And the BPN "BPNL1234567890CD" should have a policy with policyId "integration-test-policy-2222" and validUntil "2222-11-11T11:11:11.111Z" - And the BPN "BPNL1234567890CD" should have a policy with policyId "integration-test-policy-3333" and validUntil "3333-11-11T11:11:11.111Z" - And the BPN "BPNL1234567890CD" should have a policy with policyId "integration-test-policy-4444" and validUntil "4444-11-11T11:11:11.111Z" - - # act - When I update policy with policyId "integration-test-policy-2222" and given BPNs using validUntil "2223-11-11T11:11:11.111Z": - | BPNL1234567890AB | - | BPNL1234567890CD | - Then the update policy response should have HTTP status 200 - - # assert - When I successfully fetch all policies - Then the BPN "BPNL1234567890AB" should have a policy with policyId "integration-test-policy-1111" and validUntil "1111-11-11T11:11:11.111Z" - And the BPN "BPNL1234567890AB" should have a policy with policyId "integration-test-policy-2222" and validUntil "2223-11-11T11:11:11.111Z" - And the BPN "BPNL1234567890CD" should have a policy with policyId "integration-test-policy-2222" and validUntil "2223-11-11T11:11:11.111Z" - And the BPN "BPNL1234567890CD" should have a policy with policyId "integration-test-policy-3333" and validUntil "3333-11-11T11:11:11.111Z" - And the BPN "BPNL1234567890CD" should have a policy with policyId "integration-test-policy-4444" and validUntil "4444-11-11T11:11:11.111Z" - - #{*}Used testdataset{*}: — - #h3. Test Objective: - # - #__ - # * Add BPNL to a policy and check if successful - # - #h3. Description: - # - #__ - # # Register some policies - # # Add another BPNL to one of them - # # Assert that update was successful - # - #h3. Preconditions: - # - #__ - # # Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - # * *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment |https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - # * *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api admin - @TRI-1953 @TRI-873 @DEV @INTEGRATION_TEST - Scenario: 🔨🧩[DEV-TEST] Policy Store API: Add BPN to policy - # cleanup - Given no policies with prefix "integration-test-policy-" exist - - # set up testdata - Given a policy with policyId "integration-test-policy-1111" is registered for BPN "BPNL1234567890AB" and validUntil "1111-11-11T11:11:11.111Z" - Then the create policy response should have HTTP status 201 and policyId "integration-test-policy-1111" - - Given a policy with policyId "integration-test-policy-2222" is registered for BPN "BPNL1234567890CD" and validUntil "2222-11-11T11:11:11.111Z" - Then the create policy response should have HTTP status 201 and policyId "integration-test-policy-2222" - - # act and assert - When I update policy "integration-test-policy-1111", BPN "BPNL1234567890CD", validUntil "1112-11-11T11:11:11.111Z" - Then the update policy response should have HTTP status 200 - - When I successfully fetch all policies - Then the BPN "BPNL1234567890CD" should have a policy with policyId "integration-test-policy-2222" and validUntil "2222-11-11T11:11:11.111Z" - And the BPN "BPNL1234567890CD" should have a policy with policyId "integration-test-policy-1111" and validUntil "1112-11-11T11:11:11.111Z" - And the BPN "BPNL1234567890AB" should have 0 policies having policyId starting with "integration-test-policy-" - - #{*}Used testdataset{*}: — - #h3. Test Objective: - # - #__ - # * Register policy without validUntil should fail - # - #h3. Description: - # - #__ - # # Register policy without validUntil - # - #h3. Preconditions: - # - #__ - # # Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - # * *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment |https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - # * *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api admin - @TRI-1965 @TRI-873 @DEV @INTEGRATION_TEST - Scenario: 🔨🧩[DEV-TEST] Policy Store API: Register policies without validUntil (bad case) - # cleanup - Given no policies with prefix "integration-test-policy-" exist - - # act - Given I want to register a policy with policyId "integration-test-policy-1111" - And the policy should be associated to BPN "BPNL1234567890AB" - And the policy should have no validUntil - When I register the policy - - # assert - Then the create policy response should have HTTP status 400 - - #{*}Used testdataset{*}: — - #h3. Test Objective: - # - #__ - # * Add a policy to BPNLs and check if successful - # - #h3. Description: - # - #__ - # # Register policy with BPNL1 - # # Update using BPNL1 and BPNL2 in order to add it to BPNL2 - # # Assert that update was successful - # - #h3. Preconditions: - # - #__ - # # Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - # * *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment |https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - # * *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api admin - @TRI-1954 @TRI-873 @DEV @INTEGRATION_TEST - Scenario: 🔨🧩[DEV-TEST] Policy Store API: Add policyId to given BPNs - # cleanup - Given no policies with prefix "integration-test-policy-" exist - - # set up testdata - Given a policy with policyId "integration-test-policy-1111" is registered for BPN "BPNL1234567890AB" and validUntil "1111-11-11T11:11:11.111Z" - Then the create policy response should have HTTP status 201 and policyId "integration-test-policy-1111" - - # check the testdata preconditions - When I successfully fetch all policies - Then the BPN "BPNL1234567890AB" should have the following policies: - | integration-test-policy-1111 | - And the BPN "BPNL1234567890CD" should have 0 policies having policyId starting with "integration-test-policy-" - - # act and assert - When I want to update the policy with policyId "integration-test-policy-1111" - And the policy should be associated to the following BPNs: - | BPNL1234567890AB | - | BPNL1234567890CD | - And the policy should have validUntil "1112-11-11T11:11:11.111Z" - And I update the policy - Then the update policy response should have HTTP status 200 - - When I successfully fetch all policies - Then the BPNs should be associated with policies as follows: - | BPN | policyId | - | BPNL1234567890AB | integration-test-policy-1111 | - | BPNL1234567890CD | integration-test-policy-1111 | - - #{*}Used testdataset{*}: — - #h3. Test Objective: - # - #__ - # * Delete some policies and check if successful - # - #h3. Description: - # - #__ - # # Register some policies - # # Delete some of them - # # Assert that deletion was successful - # - #h3. Preconditions: - # - #__ - # # Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - # * *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment |https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - # * *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api admin - @TRI-1955 @TRI-873 @DEV @INTEGRATION_TEST - Scenario: 🔨🧩[DEV-TEST] Policy Store API: Delete some policies - # cleanup - Given no policies with prefix "integration-test-policy-" exist - - # set up testdata - Given a policy with policyId "integration-test-policy-1111" is registered for BPN "BPNL1234567890AB" and validUntil "2222-11-11T11:11:11.111Z" - Then the create policy response should have HTTP status 201 and policyId "integration-test-policy-1111" - - Given I add policyId "integration-test-policy-1111" to given BPNs using validUntil "1111-11-11T11:11:11.111Z": - | BPNL1234567890AB | - | BPNL1234567890EF | - Then the update policy response should have HTTP status 200 - - Given a policy with policyId "integration-test-policy-2222" is registered for BPN "BPNL1234567890AB" and validUntil "1111-11-11T11:11:11.111Z" - Then the create policy response should have HTTP status 201 and policyId "integration-test-policy-2222" - - Given I add policyId "integration-test-policy-2222" to given BPNs using validUntil "1111-11-11T11:11:11.111Z": - | BPNL1234567890AB | - | BPNL1234567890CD | - Then the update policy response should have HTTP status 200 - - Given a policy with policyId "integration-test-policy-3333" is registered for BPN "BPNL1234567890CD" and validUntil "2222-11-11T11:11:11.111Z" - Then the create policy response should have HTTP status 201 and policyId "integration-test-policy-3333" - - Given a policy with policyId "integration-test-policy-4444" is registered for BPN "BPNL1234567890CD" and validUntil "2222-11-11T11:11:11.111Z" - Then the create policy response should have HTTP status 201 and policyId "integration-test-policy-4444" - - # check the testdata preconditions - When I successfully fetch all policies - Then the BPNs should be associated with policies as follows: - | BPN | policyId | - | BPNL1234567890AB | integration-test-policy-1111 | - | BPNL1234567890EF | integration-test-policy-1111 | - | BPNL1234567890AB | integration-test-policy-2222 | - | BPNL1234567890CD | integration-test-policy-2222 | - | BPNL1234567890CD | integration-test-policy-3333 | - | BPNL1234567890CD | integration-test-policy-4444 | - - # act and assert - When I delete the policy "integration-test-policy-2222" - Then the delete policy response should have HTTP status 200 - - When I delete the policy "integration-test-policy-3333" - Then the delete policy response should have HTTP status 200 - - When I delete the policy "integration-test-policy-4444" - Then the delete policy response should have HTTP status 200 - - When I successfully fetch all policies - Then the BPN "BPNL1234567890CD" should have 0 policies having policyId starting with "integration-test-policy-" - And the BPNs should be associated with policies as follows: - | BPN | policyId | - | BPNL1234567890AB | integration-test-policy-1111 | - | BPNL1234567890EF | integration-test-policy-1111 | - - #{*}Used testdataset{*}: — - #h3. Test Objective: - # - #__ - # * - #Fetching policies by BPNLs should fail for invalid BPNLs - # - #h3. Description: - # - #__ - # # Register policy - # # Fetch policies via BPNLs with some invalid BPNLs - # # Check that failed for the invalid BPNLs - # - #h3. Preconditions: - # - #__ - # # Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - # * *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment |https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - # * *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api admin - @TRI-1966 @TRI-873 @DEV @INTEGRATION_TEST - Scenario: 🔨🧩[DEV-TEST] Policy Store API: Fetching policies by BPNLs should fail for invalid BPNLs (bad case) - # cleanup - Given no policies with prefix "integration-test-policy-" exist - - # test data setup - Given a policy with policyId "integration-test-policy-1111" is registered for BPN "BPNL1234567890AB" and validUntil "1111-11-11T11:11:11.111Z" - Given a policy with policyId "integration-test-policy-2222" is registered for BPN "BPNL1234567890CD" and validUntil "2222-11-11T11:11:11.111Z" - Given a policy with policyId "integration-test-policy-3333" is registered for BPN "BPNL1234567890EF" and validUntil "3333-11-11T11:11:11.111Z" - - # act - When I fetch policies for BPNs: - | BPNL1234567890AB | - | BPNL1234567890CD | - Then the fetch policies for BPN response should have HTTP status 200 - - When I fetch policies for BPNs: - | BPNL1234567890CD | - | INVALID | - Then the fetch policies for BPN response should have HTTP status 400 - - When I fetch policies for BPNs: - | BPNACB | - Then the fetch policies for BPN response should have HTTP status 400 - - When I fetch policies for BPNs: - | ERRRES | - Then the fetch policies for BPN response should have HTTP status 400 - - When I fetch policies for BPNs: - | DELETE * FROM Table | - Then the fetch policies for BPN response should have HTTP status 400 \ No newline at end of file diff --git a/irs-cucumber-tests/src/test/resources/features/4_TRI-512_TRI-768.feature b/irs-cucumber-tests/src/test/resources/features/4_TRI-512_TRI-768.feature deleted file mode 100644 index f48ca499c8..0000000000 --- a/irs-cucumber-tests/src/test/resources/features/4_TRI-512_TRI-768.feature +++ /dev/null @@ -1,197 +0,0 @@ -@TRI-512 -Feature: 👍 [AS_PLANNED] BomLifecycle 'asPlanned' implementation (1.0.0) - #*As* IRS-Consumer, - #*I want* to be able to traverse through a BOM as planned, - #*so that* I can use the IRS to access these structures. - # - #h2. Details: - #* [Details| https://confluence.catena-x.net/pages/viewpage.action?pageId=53248769] - #* (!) BOMAsPlanned : Update and extension of BOMAsPlanned is planned for Iteration 2. - #* (-) Traversal Aspect SingleLevelBomAsPlanned is used for bomLifecycle": "asPlanned" and direction "downwards" - #* (-) In case no aspect is choose by the api caller, default aspect "PartAsPlanned" is used for bomLifecycle "asPlanned" - # - #h2. Hint / Context :  - #---- - #* Check Semantic Hub for more detailed information about the Aspects - #* Aspects are: "PartAsPlanned“ and „SingleLevelBomAsPlanned“ - #* Contact Simon Schulz if further information is needed - #* Check if namespace starts with _io.catenax_ - #* "SingleLevelBomAsPlanned" results in QueryParameter => "bomLifecycle": "asPlanned", - #* update local Testdataset with reasonable Testdata (2 levels, 7 Component, each component has PartAsPlanned and SingleLevelBomAsPlanned with 2 children except level2 leafs) - #* use similar Structure as BomAsBuilt Dataset - #* https://confluence.catena-x.net/display/PL/Release+2+test+dataset%27s - #* Testdata: https://confluence.catena-x.net/display/PL/BoMAsPlanned+test+dataset version 1.3.4 asplanned alpha - # - # - #h2. TODO: - #---- - #* (-) implement functionality - #* (-) create Test-dataset for BoM as Planned data - #* (-) create Tests - #* (-) run Tests - #* (-) refactor API Documentation - # - #h2. Background: - #* (/) [~thomas.braun3@zf.com] will take care that testdata for BoM asPlanned are prepared. - #* (/) Aspect BoM asPlanned is already available. There is an update until Iteration 2 for . Version 1.0.0 - #* (/) Implementation BoM AsPlanned im IRS (Alignment Trace-X Implementation ESS in PI6) - #* (!) BoM As Planned will be extended Version 1.1.0 will be avaiable in iteration 2. - - Background: - #@TRI-768 - Given the IRS URL "https://irs.dev.demo.catena-x.net" - And the admin user api key - - - #*Used testdataset*: 1.5.0 - # - #h3. Test Objective: - # - #__ - # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. - # - #h3. Description: - # - #__ - # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer - # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. - # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer - # # Api consumer gets an item graph document with the results for the requested globalAssetId - # - #h3. Preconditions: - # - #__ - # # DT Twin Registry is up and running and contains valid test data set - # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints - # # EDC Consumer is set up and configures to the DT Registry and Submodel  - # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume - # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects - ## Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api consumer (role has t.b.d.) - @TRI-893 @TRI-1942 @TRI-873 @TRI-1843 @TRI-1770 @DEV @INTEGRATION_TEST @INTEGRATION_TEST_2.0.0 - Scenario: 🔨🧩[DEV-TEST] End 2 End for BomLifecycle 'asPlanned' Vehicle Model C for SAP [BPNL00000003AZQP] - Given I register an IRS job for globalAssetId "urn:uuid:65e1554e-e5cd-4560-bac1-1352582122fb" and BPN "BPNL00000003AZQP" - And collectAspects "true" - And depth 10 - And direction "downward" - And bomLifecycle "asPlanned" - And aspects : - | urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned | - When I get the job-id - Then I check, if the job has status "COMPLETED" within 20 minutes - And I check, if "relationships" are equal to "TRI-893-expected-relationships.json" - And I check, if "submodels" are equal to "TRI-893-expected-submodels.json" - - #*Used testdataset*: 1.5.0 - # - #h3. Test Objective: - # - #__ - # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. - # - #h3. Description: - # - #__ - # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer - # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. - # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer - # # Api consumer gets an item graph document with the results for the requested globalAssetId - # - #h3. Preconditions: - # - #__ - # # DT Twin Registry is up and running and contains valid test data set - # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints - # # EDC Consumer is set up and configures to the DT Registry and Submodel  - # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume - # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects - ## Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api consumer (role has t.b.d.) - @TRI-821 @TRI-1942 @TRI-873 @TRI-1843 @TRI-1770 @DEV @INTEGRATION_TEST - Scenario: 🪓🧩[DEV-TEST] End 2 End for BomLifecycle 'asPlanned' Vehicle Model A for BMW [BPNL00000003AYRE] - Given I register an IRS job for globalAssetId "urn:uuid:0733946c-59c6-41ae-9570-cb43a6e4c79e" and BPN "BPNL00000003AYRE" - And collectAspects "true" - And depth 10 - And direction "downward" - And bomLifecycle "asPlanned" - And aspects : - | urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned | - When I get the job-id - Then I check, if the job has status "COMPLETED" within 20 minutes - And I check, if "relationships" are equal to "TRI-821-expected-relationships.json" - And I check, if "submodels" are equal to "TRI-821-expected-submodels.json" - - #*Used testdataset*: 1.5.0 - # - #h3. Test Objective: - # - #__ - # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. - # - #h3. Description: - # - #__ - # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer - # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. - # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer - # # Api consumer gets an item graph document with the results for the requested globalAssetId - # - #h3. Preconditions: - # - #__ - # # DT Twin Registry is up and running and contains valid test data set - # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints - # # EDC Consumer is set up and configures to the DT Registry and Submodel  - # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume - # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects - ## Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api consumer (role has t.b.d.) - @TRI-891 @TRI-1942 @TRI-873 @TRI-1843 @TRI-1770 @DEV @INTEGRATION_TEST @INTEGRATION_TEST_2.0.0 - Scenario: 🔨🧩[DEV-TEST] End 2 End for BomLifecycle 'asPlanned' Vehicle Model B for MercedesBenz [BPNL00000003AVTH] - Given I register an IRS job for globalAssetId "urn:uuid:68904173-ad59-4a77-8412-3e73fcafbd8b" and BPN "BPNL00000003AVTH" - And collectAspects "true" - And depth 10 - And direction "downward" - And bomLifecycle "asPlanned" - And aspects : - | urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned | - When I get the job-id - Then I check, if the job has status "COMPLETED" within 20 minutes - And I check, if "relationships" are equal to "TRI-891-expected-relationships.json" - And I check, if "submodels" are equal to "TRI-891-expected-submodels.json" \ No newline at end of file diff --git a/irs-cucumber-tests/src/test/resources/features/5_TRI-768.feature b/irs-cucumber-tests/src/test/resources/features/5_TRI-768.feature deleted file mode 100644 index 8f0a85a4b3..0000000000 --- a/irs-cucumber-tests/src/test/resources/features/5_TRI-768.feature +++ /dev/null @@ -1,459 +0,0 @@ -Feature: Default - - Background: - #@TRI-768 - Given the IRS URL "https://irs.dev.demo.catena-x.net" - And the admin user api key - - - #h2. DEV - #||Key||Value|| - #|globalAssetId|urn:uuid:6d505432-8b31-4966-9514-4b753372683f| - #|BPNL|BPNL00000003AVTH| - # - #h3. Test Objective: - # - #__ - # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. - # - #h3. Description: - # - #__ - # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer - # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. - # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer - # # Api consumer gets an item graph document with the results for the requested globalAssetId - # - #h3. Preconditions: - # - #__ - # # DT Twin Registry is up and running and contains valid test data set - # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints - # # EDC Consumer is set up and configures to the DT Registry and Submodel  - # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume - # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects - ## Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api consumer (role has t.b.d.) - @TRI-767 @TRI-1942 @TRI-873 @TRI-1843 @TRI-1770 @TRI-1682 @DEV @INTEGRATION_TEST @TESTKEY - Scenario: 🔨🧩[DEV-TEST] End 2 End for OEM-B (MB) [BPN:BPNL00000003AVTH] (SerialPart 3.0.0, SingleLevelBomAsBuilt 3.0.0 , Batch 3.0.0) - Given I register an IRS job for globalAssetId "urn:uuid:8724338c-5c85-4c34-91eb-e2735d58fb0d" and BPN "BPNL00000003AVTH" - And collectAspects "true" - And lookupBPNs "false" - And depth 100 - And direction "downward" - And aspects : - | urn:samm:io.catenax.serial_part:3.0.0#SerialPart | - # | urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt | - #| urn:samm:io.catenax.just_in_sequence_part:3.0.0#JustInSequencePart | - # | urn:samm:io.catenax.batch:3.0.0#Batch | - When I get the job-id - Then I check, if the job has status "COMPLETED" within 20 minutes - And I check, if number of "tombstones" equals to "summary/asyncFetchedItems/failed" - And I check, if "summary" contains 175 completed and 0 failed items - And I check, if "bpn summary" contains 0 completed and 0 failed items - And I check, if "relationships" are equal to "TRI-767-expected-relationships.json" - And I check, if "submodels" are equal to "TRI-767-expected-submodels.json" - And I check, if submodels contains BPNL number "BPNL00000003AVTH" exactly 69 times - - #h2. DEV - #||Key||Value|| - #|globalAssetId|urn:uuid:c6d2d642-a055-4ddf-87e3-1a3b02c689e3| - #|BPNL|BPNL00000000BJTL| - #h3. Test Objective: - # - #__ - # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. - # - #h3. Description: - # - #__ - # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer - # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. - # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer - # # Api consumer gets an item graph document with the results for the requested globalAssetId - # - #h3. Preconditions: - # - #__ - # # DT Twin Registry is up and running and contains valid test data set - # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints - # # EDC Consumer is set up and configures to the DT Registry and Submodel  - # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume - # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects - # # Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - # * *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment |https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - # * *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api consumer (role has t.b.d.) - @TRI-1913 @TRI-1942 @TRI-1843 @TRI-1682 @TRI-1770 @TRI-873 @DEV @INTEGRATION_TEST - Scenario: 🔨🧩[DEV-TEST] End 2 End for aspects "3.0.0#JustInSequencePart", "3.0.0#SerialPart" with "1.0.0#PartSiteInformationAsBuilt" - Given I register an IRS job for globalAssetId "urn:uuid:c6d2d642-a055-4ddf-87e3-1a3b02c689e3" and BPN "BPNL00000000BJTL" - And aspects : - | urn:samm:io.catenax.just_in_sequence_part:3.0.0#JustInSequencePart | - | urn:samm:io.catenax.serial_part:3.0.0#SerialPart | - And collectAspects "true" - And lookupBPNs "false" - And depth 1 - And bomLifecycle "asPlanned" - And direction "downward" - When I get the job-id - Then I check, if the job has status "COMPLETED" within 20 minutes - And I check, if number of "tombstones" equals to "summary/asyncFetchedItems/failed" - And I check, if "summary" contains 1 completed and 0 failed items - And I check, if "submodels" are equal to "TRI-1913-expected-submodels.json" - - #h2. DEV - #||Key||Value|| - #|globalAssetId|urn:uuid:ee9b9c9e-1416-45a3-b683-d98d5d88e548| - #|BPNL|BPNL00000003AXS3| - #h3. Test Objective: - # - #__ - # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. - # - #h3. Description: - # - #__ - # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer - # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. - # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer - # # Api consumer gets an item graph document with the results for the requested globalAssetId - # - #h3. Preconditions: - # - #__ - # # DT Twin Registry is up and running and contains valid test data set - # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints - # # EDC Consumer is set up and configures to the DT Registry and Submodel  - # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume - # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects - # # Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - # * *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment |https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - # * *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api consumer (role has t.b.d.) - @TRI-1914 @TRI-1942 @TRI-1843 @TRI-1770 @TRI-1682 @TRI-873 @DEV @INTEGRATION_TEST - Scenario: 🔨🧩[DEV-TEST] End 2 End for aspects "3.0.0#Batch" with "1.0.0#PartSiteInformationAsBuilt" - Given I register an IRS job for globalAssetId "urn:uuid:ee9b9c9e-1416-45a3-b683-d98d5d88e548" and BPN "BPNL00000003AXS3" - And aspects : - | urn:samm:io.catenax.batch:3.0.0#Batch | - And collectAspects "true" - And lookupBPNs "false" - And depth 1 - And bomLifecycle "asBuilt" - And direction "downward" - When I get the job-id - Then I check, if the job has status "COMPLETED" within 20 minutes - And I check, if number of "tombstones" equals to "summary/asyncFetchedItems/failed" - And I check, if "summary" contains 1 completed and 0 failed items - And I check, if "submodels" are equal to "TRI-1914-expected-submodels.json" - - #h2. DEV - #||Key||Value|| - #|globalAssetId|urn:uuid:e5c96ab5-896a-482c-8761-efd74777ca97| - #|BPNL|BPNL00000003AYRE| - #h3. Test Objective: - # - #__ - # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. - # - #h3. Description: - # - #__ - # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer - # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. - # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer - # # Api consumer gets an item graph document with the results for the requested globalAssetId - # - #h3. Preconditions: - # - #__ - # # DT Twin Registry is up and running and contains valid test data set - # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints - # # EDC Consumer is set up and configures to the DT Registry and Submodel  - # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume - # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects - # # Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - # * *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment |https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - # * *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api consumer (role has t.b.d.) - @TRI-1915 @TRI-1942 @TRI-1843 @TRI-1682 @TRI-1770 @TRI-873 @DEV @INTEGRATION_TEST - Scenario: 🔨🧩[DEV-TEST] End 2 End for aspects "3.0.0#SingleLevelBomAsPlanned", "2.0.0#PartAsPlanned" - Given I register an IRS job for globalAssetId "urn:uuid:e5c96ab5-896a-482c-8761-efd74777ca97" and BPN "BPNL00000003AYRE" - And aspects : - | urn:samm:io.catenax.single_level_bom_as_planned:3.0.0#SingleLevelBomAsPlanned | - | urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned | - And collectAspects "true" - And lookupBPNs "false" - And depth 1 - And bomLifecycle "asPlanned" - And direction "downward" - When I get the job-id - Then I check, if the job has status "COMPLETED" within 20 minutes - And I check, if number of "tombstones" equals to "summary/asyncFetchedItems/failed" - And I check, if "summary" contains 3 completed and 0 failed items - And I check, if "submodels" are equal to "TRI-1915-expected-submodels.json" - - #*Used testdataset*: 1.6.0 - # - #h3. Test Objective: - # - #__ - # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. - # - #h3. Description: - # - #__ - # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer - # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. - # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer - # # Api consumer gets an item graph document with the results for the requested globalAssetId - # - #h3. Preconditions: - # - #__ - # # DT Twin Registry is up and running and contains valid test data set - # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints - # # EDC Consumer is set up and configures to the DT Registry and Submodel  - # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume - # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects - ## Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api consumer (role has t.b.d.) - @TRI-1647 @TRI-1942 @TRI-873 @TRI-1843 @TRI-1770 @TRI-1682 @DEV @INTEGRATION_TEST @INTEGRATION_TEST_2.0.0 - Scenario: 🪓🧩[DEV-TEST] End 2 End for aspect "TractionBatteryCode" - Given I register an IRS job for globalAssetId "urn:uuid:f204622a-f4f3-4be7-b255-06c27524984b" and BPN "BPNL00000003AVTH" - And collectAspects "true" - And depth 2 - And direction "downward" - And bomLifecycle "asBuilt" - And aspects : - | urn:samm:io.catenax.traction_battery_code:1.0.0#TractionBatteryCode | - When I get the job-id - Then I check, if the job has status "COMPLETED" within 20 minutes - And I check, if "submodels" are equal to "TRI-1647-expected-submodels.json" - - #h2. DEV - #||Key||Value|| - #|globalAssetId|urn:uuid:1ad0892a-59c1-4118-8b52-601540973f31| - #|BPNL|BPNL00000003CSGV| - #h3. Test Objective: - # - #__ - # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. - # - #h3. Description: - # - #__ - # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer - # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. - # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer - # # Api consumer gets an item graph document with the results for the requested globalAssetId - # - #h3. Preconditions: - # - #__ - # # DT Twin Registry is up and running and contains valid test data set - # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints - # # EDC Consumer is set up and configures to the DT Registry and Submodel  - # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume - # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects - # # Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - # * *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment |https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - # * *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api consumer (role has t.b.d.) - @TRI-1918 @TRI-1942 @TRI-1843 @TRI-1682 @TRI-1770 @TRI-873 @DEV @INTEGRATION_TEST - Scenario: 🔨🧩[DEV-TEST] End 2 End for aspects "3.0.0#SingleLevelBomAsBuilt" - Given I register an IRS job for globalAssetId "urn:uuid:1ad0892a-59c1-4118-8b52-601540973f31" and BPN "BPNL00000003CSGV" - And aspects : - | urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt | - And collectAspects "true" - And lookupBPNs "false" - And depth 1 - And bomLifecycle "asBuilt" - And direction "downward" - When I get the job-id - Then I check, if the job has status "COMPLETED" within 20 minutes - And I check, if number of "tombstones" equals to "summary/asyncFetchedItems/failed" - And I check, if "summary" contains 2 completed and 0 failed items - And I check, if "submodels" are equal to "TRI-1918-expected-submodels.json" - - #h2. DEV - #||Key||Value|| - #|globalAssetId|urn:uuid:e097c30e-9010-4eb9-8a8c-064736aceab8| - #|BPNL|BPNL00000003B2OM| - # - #h3. Test Objective: - # - #__ - # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. - # - #h3. Description: - # - #__ - # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer - # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. - # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer - # # Api consumer gets an item graph document with the results for the requested globalAssetId - # - #h3. Preconditions: - # - #__ - # # DT Twin Registry is up and running and contains valid test data set - # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints - # # EDC Consumer is set up and configures to the DT Registry and Submodel  - # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume - # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects - ## Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api consumer (role has t.b.d.) - @TRI-704 @TRI-1942 @TRI-873 @TRI-1843 @TRI-1770 @TRI-1682 @DEV @INTEGRATION_TEST - Scenario: 🔨🧩[DEV-TEST] End 2 End for Tier A (ZF) [BPN:BPNL00000003B2OM] (SerialPart 3.0.0, SingleLevelBomAsBuilt 3.0.0 , Batch 3.0.0) - Given I register an IRS job for globalAssetId "urn:uuid:e097c30e-9010-4eb9-8a8c-064736aceab8" and BPN "BPNL00000003B2OM" - And aspects : - | urn:samm:io.catenax.serial_part:3.0.0#SerialPart | - | urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt | - | urn:samm:io.catenax.batch:3.0.0#Batch | - | urn:samm:io.catenax.material_for_recycling:1.1.0#MaterialForRecycling | - And collectAspects "true" - And lookupBPNs "false" - And depth 100 - And direction "downward" - When I get the job-id - Then I check, if the job has status "COMPLETED" within 20 minutes - And I check, if number of "tombstones" equals to "summary/asyncFetchedItems/failed" - And I check, if "summary" contains 5 completed and 0 failed items - And I check, if "bpn summary" contains 4 completed and 0 failed items - And I check, if "relationships" are equal to "TRI-704-expected-relationships.json" - And I check, if "submodels" are equal to "TRI-704-expected-submodels.json" - And I check, if submodels contains BPNL number "BPNL00000003B2OM" exactly 1 times - - #h2. DEV - #||Key||Value|| - #|globalAssetId|urn:uuid:015aa300-f0ea-47cd-84d5-969f2cb2cf75| - #|BPNL| BPNL00000003B2OM | - # - # - #h3. Test Objective: - # - #__ - # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. - # - #h3. Description: - # - #__ - # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer - # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. - # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer - # # Api consumer gets an item graph document with the results for the requested globalAssetId - # - #h3. Preconditions: - # - #__ - # # DT Twin Registry is up and running and contains valid test data set - # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints - # # EDC Consumer is set up and configures to the DT Registry and Submodel  - # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume - # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects - ## Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api consumer (role has t.b.d.) - @TRI-528 @TRI-1942 @TRI-873 @TRI-1843 @TRI-1770 @TRI-1682 @DEV @INTEGRATION_TEST - Scenario: 🔨🧩[DEV-TEST] End 2 End for aspect "MaterialForRecycling" - Given I register an IRS job for globalAssetId "urn:uuid:015aa300-f0ea-47cd-84d5-969f2cb2cf75" and BPN "BPNL00000003B2OM" - And aspects : - | urn:samm:io.catenax.material_for_recycling:1.1.0#MaterialForRecycling | - And collectAspects "true" - And lookupBPNs "false" - And depth 1 - And direction "downward" - When I get the job-id - Then I check, if the job has status "COMPLETED" within 20 minutes - And I check, if number of "tombstones" equals to "summary/asyncFetchedItems/failed" - And I check, if "summary" contains 4 completed and 0 failed items - And I check, if "bpn summary" contains 3 completed and 0 failed items - And I check, if "relationships" are equal to "TRI-528-expected-relationships.json" - And I check, if "submodels" are equal to "TRI-528-expected-submodels.json" \ No newline at end of file diff --git a/irs-cucumber-tests/src/test/resources/features/6_TRI-1312_TRI-768.feature b/irs-cucumber-tests/src/test/resources/features/6_TRI-1312_TRI-768.feature deleted file mode 100644 index 4ed686d122..0000000000 --- a/irs-cucumber-tests/src/test/resources/features/6_TRI-1312_TRI-768.feature +++ /dev/null @@ -1,88 +0,0 @@ -@TRI-1312 -Feature: 👍 [SPIKE][PoC] Enable IRS for multiple LifeCycles (asBuilt & asSpecified) - #h2. User Story - # - #*As* CE Developer, - #*I want* to use the IRS to fetch multiple trees at the same time, - #*so that* the application Digital Product Pass can integrate the IRS. - #h2. Hints / Details / NFR (Technical, Design & Content) :  - # * contact [~kevin.tram@accenture.com] for further information - # * asBuilt and AsSpecified - # * downward - # * for one globalAssetID - # * [https://portal.int.demo.catena-x.net/semantichub/] SingleLevelBomAsSpecified BAMM 2.0.0 RELEASED - # * The Twin aspect for asSpecified is SerialPart - # - #h2. External dependencies (due date: 11.07.2023 ) - # * (x) [~sasan.baba-esfahani@bmw.de] & [~luis.rickert@accenture.com] provides testdata for asSpecified BOM --> in a first step: CE provides consistant Testdata files of aspect models Serial Part to SingleLevelBomAsSpecified - # * (x) [~sasan.baba-esfahani@bmw.de] & [~luis.rickert@accenture.com] provides a infrastructure Provider, EDC, dDTR to test the asSpecified BOM with on vehicle - # * (x) [~sasan.baba-esfahani@bmw.de] & [~luis.rickert@accenture.com] is added to testdata set as a new requirement - # * (x) [~sasan.baba-esfahani@bmw.de] & [~luis.rickert@accenture.com] adds asSpecified facets to INT environment - # - # - #h2. Hint - # !asSpecified.png|thumbnail! - # - # - #h2. TODO: - # * (-) Fill out description - # * (-) Fill out Story Points - # * (-) Assign an Assignee - # * (-) define Acceptance Criteria - # * (-) [DoR |https://confluence.catena-x.net/pages/viewpage.action?pageId=917505]  - - Background: - #@TRI-768 - Given the IRS URL "https://irs.dev.demo.catena-x.net" - And the admin user api key - - - #*Used testdataset*: 1.6.0 - # - #h3. Test Objective: - # - #__ - # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. - # - #h3. Description: - # - #__ - # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer - # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. - # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer - # # Api consumer gets an item graph document with the results for the requested globalAssetId - # - #h3. Preconditions: - # - #__ - # # DT Twin Registry is up and running and contains valid test data set - # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints - # # EDC Consumer is set up and configures to the DT Registry and Submodel  - # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume - # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects - ## Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api consumer (role has t.b.d.) - @TRI-1537 @TRI-1942 @TRI-873 @TRI-1843 @TRI-1770 @TRI-1682 @DEV @INTEGRATION_TEST - Scenario: 🪓🧩[DEV-TEST] End 2 End for aspect "JustInSequencePart" 🌟 - Given I register an IRS job for globalAssetId "urn:uuid:c6d2d642-a055-4ddf-87e3-1a3b02c689e3" and BPN "BPNL00000000BJTL" - And collectAspects "true" - And depth 10 - And direction "downward" - And bomLifecycle "asBuilt" - And aspects : - | urn:samm:io.catenax.just_in_sequence_part:1.0.0#JustInSequencePart | - When I get the job-id - Then I check, if the job has status "COMPLETED" within 20 minutes - And I check, if "submodels" are equal to "TRI-1537-expected-submodels.json" \ No newline at end of file diff --git a/irs-cucumber-tests/src/test/resources/features/7_TRI-982_TRI-768.feature b/irs-cucumber-tests/src/test/resources/features/7_TRI-982_TRI-768.feature deleted file mode 100644 index b5e59b9af0..0000000000 --- a/irs-cucumber-tests/src/test/resources/features/7_TRI-982_TRI-768.feature +++ /dev/null @@ -1,70 +0,0 @@ -@TRI-982 -Feature: 👍 SingleLevelUsageAsBuilt ready to use on Dev environment - #*As a* Trace-X user - #*I want* to be able to send notification upwards in the supply chain - #*so that* I can tell my costumer, that there is an issue with a part - #h2. Hint: - # - Check the Model is correct - # - expected Result for a Battery Cell is to have several relations in the relationship array - # - Add testcase for objects focused in picture below - #!screenshot-2.png|thumbnail! - # - #*Sprint Planning 2* - # * Investigate on potential issue - # * Create testcase for expected result - - Background: - #@TRI-768 - Given the IRS URL "https://irs.dev.demo.catena-x.net" - And the admin user api key - - - #h2. DEV - #||Key||Value|| - #|globalAssetId|urn:uuid:e7777066-e453-4431-beb3-4e99d042f923| - # - #h3. Test Objective: - # - #__ - # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. - # - #h3. Description: - # - #__ - # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer - # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. - # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer - # # Api consumer gets an item graph document with the results for the requested globalAssetId - # - #h3. Preconditions: - # - #__ - # # DT Twin Registry is up and running and contains valid test data set - # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints - # # EDC Consumer is set up and configures to the DT Registry and Submodel  - # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume - # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects - ## Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api consumer (role has t.b.d.) - @TRI-1009 @TRI-1942 @TRI-873 @TRI-1843 @TRI-1770 @TRI-1682 @DEV @INTEGRATION_TEST - Scenario: 🔨🧩[DEV-TEST] End 2 End for upward direction and SingleLevelUsageAsBuilt ⌛ - Given I register an IRS job for globalAssetId "urn:uuid:e7777066-e453-4431-beb3-4e99d042f923" and BPN "BPNL00000003AVTH" - And direction "upward" - And lookupBPNs "false" - When I get the job-id - Then I check, if the job has status "COMPLETED" within 20 minutes - And I check, if "summary" contains 2 completed and 0 failed items - And I check, if "bpn summary" contains 1 completed and 0 failed items - And I check, if "relationships" are equal to "TRI-1009-expected-relationships.json" \ No newline at end of file diff --git a/irs-cucumber-tests/src/test/resources/features/8_TRI-1018_TRI-768.feature b/irs-cucumber-tests/src/test/resources/features/8_TRI-1018_TRI-768.feature deleted file mode 100644 index 33854a6c18..0000000000 --- a/irs-cucumber-tests/src/test/resources/features/8_TRI-1018_TRI-768.feature +++ /dev/null @@ -1,152 +0,0 @@ -@TRI-1018 -Feature: 🎏⭐⭐⭐ [27.03.2023] 👍 Batch Processing for a bunch of globalAssetIds - #h2. User Story - # - #*As* a system which calculates the Remaining Useful Life of a vehicle type based on a bunch of parts - #*I want* to pass a number of globalAssetId to the IRS in one API call - #*so that* a related research for parts are bundled in a single IRS api call - #h2. Outcome - # - - # - #h2. Hints / Details / . Hints & NFR (Technical, Design & Content))* :  - # - #* trigger callback, if applicable - # * Implement error handling (determine batch status based on aggregated job status) - # * Persist and load batches - # * Extend tavern tests to cover new API - # - #h2. Sprint Planning 2 (04.04.2023): - # * Review current PR first - # * Address any bugs found in review or on DEV/INT - # * Implement missing checksum (discuss feature with Martin + Jan first) - # * Implement timeouts - - Background: - #@TRI-768 - Given the IRS URL "https://irs.dev.demo.catena-x.net" - And the admin user api key - - - #*Used testdataset*: 1.5.0 - # - #h3. Test Objective: - # - #__ - # * Get job created by batch processing to check correct parameter. - # - #h3. Description: - # - #__ - # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer - # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. - # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer - # # Api consumer gets an item graph document with the results for the requested globalAssetId - # - #h3. Preconditions: - # - #__ - # # DT Twin Registry is up and running and contains valid test data set - # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints - # # EDC Consumer is set up and configures to the DT Registry and Submodel  - # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume - # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects - ## Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api consumer (role has t.b.d.) - @TRI-1267 @TRI-1942 @TRI-873 @TRI-1843 @TRI-1770 @DEV @INTEGRATION_TEST - Scenario: 🔨🧩[DEV-TEST] Check correct job executions of batch processing (SingleLevelBomAsBuilt/SerialPart 3.0.0) - Given I register an IRS batch job for globalAssetIds and BPNs: - | globalAssetId | bpn | - | urn:uuid:771d2ccc-a081-4d3a-bcb2-46c6a0a33743 | BPNL0000000XX0X0 | - | urn:uuid:3db730be-9de5-4db5-a58d-684de36484e7 | BPNL0000000XX0X0 | - | urn:uuid:73173bf5-08df-4898-9d6d-8899015c161e | BPNL0000000XX0X0 | - | urn:uuid:07e0997f-4212-4456-8f27-164b30fc8355 | BPNL0000000XX0X0 | - | urn:uuid:88f51be1-3771-4335-8b5c-4c5050123127 | BPNL0000000XX0X0 | - | urn:uuid:d3c0bf85-d44f-47c5-990d-fec8a36065c6 | BPNL0000000XX0X0 | - | urn:uuid:51ff7c73-34e9-45d4-816c-d92578843e68 | BPNL0000000XX0X0 | - | urn:uuid:b21cfd5b-dcf4-46fa-9227-3eb693567dd8 | BPNL0000000XX0X0 | - | urn:uuid:8f9d8c7f-6d7a-48f1-9959-9fa3a1a7a891 | BPNL0000000XX0X0 | - | urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd | BPNL0000000XX0X0 | - | urn:uuid:a4a26b9c-9460-4cc5-8645-85916b86adb0 | BPNL0000000XX0X0 | - | urn:uuid:7b87f5d6-f75e-40f1-a439-779ae9f57a21 | BPNL0000000XX0X0 | - | urn:uuid:8914a66e-b59b-405f-afff-b97d71ebece3 | BPNL0000000XX0X0 | - | urn:uuid:a1082992-cc3b-4da1-af6b-aa692ed71461 | BPNL0000000XX0X0 | - | urn:uuid:0ea1aa79-10d4-4df1-8a5a-5b7eafd26163 | BPNL0000000XX0X0 | - | urn:uuid:1e35e091-3d3d-421e-9c7e-14cf1c9442a6 | BPNL0000000XX0X0 | - | urn:uuid:cc8e9448-b294-46e7-8110-337e8bfa3001 | BPNL0000000XX0X0 | - | urn:uuid:fa5804f1-8d4e-437c-aca2-a5491be61758 | BPNL0000000XX0X0 | - | urn:uuid:a0f6803c-e4dc-4cda-8ad2-91cc57868449 | BPNL0000000XX0X0 | - | urn:uuid:492781f5-62ff-4fb2-876c-3498e2844d13 | BPNL0000000XX0X0 | - | urn:uuid:d6142601-5e09-45fe-9b42-e53cf8cd458c | BPNL0000000XX0X0 | - And collectAspects "true" - And depth 1 - And direction "downward" - And lookupBPNs "false" - And bomLifecycle "asBuilt" - And batchStrategy "PRESERVE_BATCH_JOB_ORDER" - And batchSize 10 - And callbackUrl "https://www.check123.com" - And aspects : - | urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt | - | urn:samm:io.catenax.serial_part:3.0.0#SerialPart | - - When I get the order-id - Then I check, if the order contains 3 batches - And I check, if batch 3 contains 1 job - #check batchNumber = 3 and jobsInBatchChecksum = 1 - - When I get the batch-id of "first" batch - Then I check, if the batch contains 10 jobs - And I check, if the batchNumber is 1 - And batchTotal is 3 - And totalJobs is 21 - And jobsInBatchChecksum is 10 - - When I get the "first" job-id from batch - Then I check, if job parameter are set with aspects: - | urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt | - | urn:samm:io.catenax.serial_part:3.0.0#SerialPart | - And collectAspects is "true" - And depth is 1 - And direction is "downward" - And lookupBPNs is "false" - And bomLifecycle is "asBuilt" - And callbackUrl is "https://www.check123.com" \ No newline at end of file diff --git a/irs-cucumber-tests/src/test/resources/features/9_TRI-512_TRI-817.feature b/irs-cucumber-tests/src/test/resources/features/9_TRI-512_TRI-817.feature deleted file mode 100644 index 8e25a6248c..0000000000 --- a/irs-cucumber-tests/src/test/resources/features/9_TRI-512_TRI-817.feature +++ /dev/null @@ -1,197 +0,0 @@ -@TRI-512 -Feature: 👍 [AS_PLANNED] BomLifecycle 'asPlanned' implementation (1.0.0) - #*As* IRS-Consumer, - #*I want* to be able to traverse through a BOM as planned, - #*so that* I can use the IRS to access these structures. - # - #h2. Details: - #* [Details| https://confluence.catena-x.net/pages/viewpage.action?pageId=53248769] - #* (!) BOMAsPlanned : Update and extension of BOMAsPlanned is planned for Iteration 2. - #* (-) Traversal Aspect SingleLevelBomAsPlanned is used for bomLifecycle": "asPlanned" and direction "downwards" - #* (-) In case no aspect is choose by the api caller, default aspect "PartAsPlanned" is used for bomLifecycle "asPlanned" - # - #h2. Hint / Context :  - #---- - #* Check Semantic Hub for more detailed information about the Aspects - #* Aspects are: "PartAsPlanned“ and „SingleLevelBomAsPlanned“ - #* Contact Simon Schulz if further information is needed - #* Check if namespace starts with _io.catenax_ - #* "SingleLevelBomAsPlanned" results in QueryParameter => "bomLifecycle": "asPlanned", - #* update local Testdataset with reasonable Testdata (2 levels, 7 Component, each component has PartAsPlanned and SingleLevelBomAsPlanned with 2 children except level2 leafs) - #* use similar Structure as BomAsBuilt Dataset - #* https://confluence.catena-x.net/display/PL/Release+2+test+dataset%27s - #* Testdata: https://confluence.catena-x.net/display/PL/BoMAsPlanned+test+dataset version 1.3.4 asplanned alpha - # - # - #h2. TODO: - #---- - #* (-) implement functionality - #* (-) create Test-dataset for BoM as Planned data - #* (-) create Tests - #* (-) run Tests - #* (-) refactor API Documentation - # - #h2. Background: - #* (/) [~thomas.braun3@zf.com] will take care that testdata for BoM asPlanned are prepared. - #* (/) Aspect BoM asPlanned is already available. There is an update until Iteration 2 for . Version 1.0.0 - #* (/) Implementation BoM AsPlanned im IRS (Alignment Trace-X Implementation ESS in PI6) - #* (!) BoM As Planned will be extended Version 1.1.0 will be avaiable in iteration 2. - - Background: - #@TRI-817 - Given the IRS URL "https://irs.int.demo.catena-x.net" - And the admin user api key - - - #*Used testdataset*: 1.4.0 - # - #h3. Test Objective: - # - #__ - # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. - # - #h3. Description: - # - #__ - # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer - # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. - # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer - # # Api consumer gets an item graph document with the results for the requested globalAssetId - # - #h3. Preconditions: - # - #__ - # # DT Twin Registry is up and running and contains valid test data set - # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints - # # EDC Consumer is set up and configures to the DT Registry and Submodel  - # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume - # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects - ## Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api consumer (role has t.b.d.) - @TRI-872 @TRI-1452 @TRI-874 @INT @INTEGRATION_TEST @INTEGRATION_TEST_2.0.0 - Scenario: 🪓🧩[INT-TEST] End 2 End for BomLifecycle 'asPlanned' Vehicle Model A for BMW [BPNL00000003AYRE] - Given I register an IRS job for globalAssetId "urn:uuid:0733946c-59c6-41ae-9570-cb43a6e4c79e" and BPN "BPNL00000003AYRE" - And collectAspects "true" - And depth 10 - And direction "downward" - And bomLifecycle "asPlanned" - And aspects : - | urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned | - When I get the job-id - Then I check, if the job has status "COMPLETED" within 20 minutes - And I check, if "relationships" are equal to "TRI-872-expected-relationships.json" - And I check, if "submodels" are equal to "TRI-872-expected-submodels.json" - - #*Used testdataset*: 1.4.0 - # - #h3. Test Objective: - # - #__ - # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. - # - #h3. Description: - # - #__ - # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer - # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. - # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer - # # Api consumer gets an item graph document with the results for the requested globalAssetId - # - #h3. Preconditions: - # - #__ - # # DT Twin Registry is up and running and contains valid test data set - # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints - # # EDC Consumer is set up and configures to the DT Registry and Submodel  - # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume - # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects - ## Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api consumer (role has t.b.d.) - @TRI-894 @TRI-1452 @TRI-874 @INT @INTEGRATION_TEST @INTEGRATION_TEST_2.0.0 - Scenario: 🔨🧩[INT-TEST] End 2 End for BomLifecycle 'asPlanned' Vehicle Model C for SAP [BPNL00000003AZQP] - Given I register an IRS job for globalAssetId "urn:uuid:65e1554e-e5cd-4560-bac1-1352582122fb" and BPN "BPNL00000003AZQP" - And collectAspects "true" - And depth 10 - And direction "downward" - And bomLifecycle "asPlanned" - And aspects : - | urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned | - When I get the job-id - Then I check, if the job has status "COMPLETED" within 20 minutes - And I check, if "relationships" are equal to "TRI-894-expected-relationships.json" - And I check, if "submodels" are equal to "TRI-894-expected-submodels.json" - - #*Used testdataset*: 1.4.0 - # - #h3. Test Objective: - # - #__ - # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. - # - #h3. Description: - # - #__ - # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer - # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. - # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer - # # Api consumer gets an item graph document with the results for the requested globalAssetId - # - #h3. Preconditions: - # - #__ - # # DT Twin Registry is up and running and contains valid test data set - # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints - # # EDC Consumer is set up and configures to the DT Registry and Submodel  - # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume - # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects - ## Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api consumer (role has t.b.d.) - @TRI-892 @TRI-1452 @TRI-874 @INT @INTEGRATION_TEST @INTEGRATION_TEST_2.0.0 - Scenario: 🔨🧩[INT-TEST] End 2 End for BomLifecycle 'asPlanned' Vehicle Model B for MercedesBenz [BPNL00000003AVTH] - Given I register an IRS job for globalAssetId "urn:uuid:68904173-ad59-4a77-8412-3e73fcafbd8b" and BPN "BPNL00000003AVTH" - And collectAspects "true" - And depth 10 - And direction "downward" - And bomLifecycle "asPlanned" - And aspects : - | urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned | - When I get the job-id - Then I check, if the job has status "COMPLETED" within 20 minutes - And I check, if "relationships" are equal to "TRI-892-expected-relationships.json" - And I check, if "submodels" are equal to "TRI-892-expected-submodels.json" \ No newline at end of file From fefb945073e78fd189241ae3370e14b626403a71 Mon Sep 17 00:00:00 2001 From: ds-kgassner Date: Mon, 13 May 2024 09:36:08 +0200 Subject: [PATCH 4/8] fix(tavern):[#503] replacing new gloablAssetId --- .../api-tests/irs-api-tests.tavern.yaml | 220 +++++++++--------- 1 file changed, 110 insertions(+), 110 deletions(-) diff --git a/local/testing/api-tests/irs-api-tests.tavern.yaml b/local/testing/api-tests/irs-api-tests.tavern.yaml index a93c4d230c..d55066aacd 100644 --- a/local/testing/api-tests/irs-api-tests.tavern.yaml +++ b/local/testing/api-tests/irs-api-tests.tavern.yaml @@ -1182,7 +1182,7 @@ stages: url: "{tavern.env_vars.IRS_HOST}/irs/jobs" json: key: - globalAssetId: urn:uuid:8724338c-5c85-4c34-91eb-e2735d58fb0d #"{tavern.env_vars.GLOBAL_ASSET_ID_AS_BUILT}" + globalAssetId: urn:uuid:4509ea7c-c8d2-41a1-83ca-c214ee34af6c #"{tavern.env_vars.GLOBAL_ASSET_ID_AS_BUILT}" bpn: "{tavern.env_vars.BPN_AS_BUILT}" collectAspects: true depth: 2 @@ -1239,7 +1239,7 @@ stages: url: "{tavern.env_vars.IRS_HOST}/irs/jobs" json: key: - globalAssetId: urn:uuid:8724338c-5c85-4c34-91eb-e2735d58fb0d # "{tavern.env_vars.GLOBAL_ASSET_ID_AS_BUILT}" + globalAssetId: urn:uuid:4509ea7c-c8d2-41a1-83ca-c214ee34af6c # "{tavern.env_vars.GLOBAL_ASSET_ID_AS_BUILT}" bpn: "{tavern.env_vars.BPN_AS_BUILT}" collectAspects: true depth: 1 @@ -1390,7 +1390,7 @@ stages: url: "{tavern.env_vars.IRS_HOST}/irs/jobs" json: key: - globalAssetId: urn:uuid:8724338c-5c85-4c34-91eb-e2735d58fb0d #"{tavern.env_vars.GLOBAL_ASSET_ID_AS_BUILT}" + globalAssetId: "urn:uuid:4509ea7c-c8d2-41a1-83ca-c214ee34af6c" #"{tavern.env_vars.GLOBAL_ASSET_ID_AS_BUILT}" bpn: "{tavern.env_vars.BPN_AS_BUILT}" aspects: - urn:samm:io.catenax.serial_part:3.0.0#SerialPart @@ -1449,7 +1449,7 @@ stages: url: "{tavern.env_vars.IRS_HOST}/irs/jobs" json: key: - globalAssetId: urn:uuid:8724338c-5c85-4c34-91eb-e2735d58fb0d #"{tavern.env_vars.GLOBAL_ASSET_ID_AS_BUILT}" + globalAssetId: urn:uuid:4509ea7c-c8d2-41a1-83ca-c214ee34af6c #"{tavern.env_vars.GLOBAL_ASSET_ID_AS_BUILT}" bpn: "{tavern.env_vars.BPN_AS_BUILT}" aspects: # - urn:samm:io.catenax.serial_part:3.0.0#SerialPart @@ -1511,7 +1511,7 @@ stages: url: "{tavern.env_vars.IRS_HOST}/irs/jobs" json: key: - globalAssetId: "urn:uuid:8724338c-5c85-4c34-91eb-e2735d58fb0d" + globalAssetId: "urn:uuid:4509ea7c-c8d2-41a1-83ca-c214ee34af6c" bpn: "BPNL00000003AVTH" aspects: - urn:samm:io.catenax.material_for_recycling:1.1.0#MaterialForRecycling @@ -1570,7 +1570,7 @@ stages: url: "{tavern.env_vars.IRS_HOST}/irs/jobs" json: key: - globalAssetId: "urn:uuid:622f4933-e02b-436c-9194-9e5bb71a45e2" #"urn:uuid:397b63ae-89d7-4131-b45a-575e840dc5c5" + globalAssetId: "urn:uuid:4c9bbfb1-414c-4c55-b197-3b3958d73ea1" #"urn:uuid:397b63ae-89d7-4131-b45a-575e840dc5c5" bpn: "BPNL00000003AVTH" aspects: - urn:samm:io.catenax.batch:3.0.0#Batch @@ -1630,7 +1630,7 @@ stages: url: "{tavern.env_vars.IRS_HOST}/irs/jobs" json: key: - globalAssetId: "{tavern.env_vars.GLOBAL_ASSET_ID_AS_BUILT}" + globalAssetId: "urn:uuid:4509ea7c-c8d2-41a1-83ca-c214ee34af6c" bpn: "{tavern.env_vars.BPN_AS_BUILT}" aspects: - urn:samm:io.catenax.serial_part:3.0.0#SerialPart @@ -1725,12 +1725,12 @@ stages: url: "{tavern.env_vars.IRS_HOST}/irs/jobs" json: key: - globalAssetId: urn:uuid:8724338c-5c85-4c34-91eb-e2735d58fb0d #"{tavern.env_vars.GLOBAL_ASSET_ID_AS_BUILT}" + globalAssetId: "urn:uuid:4509ea7c-c8d2-41a1-83ca-c214ee34af6c" #"{tavern.env_vars.GLOBAL_ASSET_ID_AS_BUILT}" bpn: "{tavern.env_vars.BPN_AS_BUILT}" aspects: - urn:samm:io.catenax.serial_part:3.0.0#SerialPart - - urn:samm:io.catenax.batch:3.0.0#Batch - - urn:samm:io.catenax.material_for_recycling:1.1.0#MaterialForRecycling + # - urn:samm:io.catenax.batch:3.0.0#Batch + # - urn:samm:io.catenax.material_for_recycling:1.1.0#MaterialForRecycling #- urn:samm:io.catenax.single_level_usage_as_built:3.0.0#SingleLevelUsageAsBuilt #- urn:samm:io.catenax.battery.battery_pass:3.0.1#BatteryPass" #- urn:samm:io.catenax.market_place_offer:1.4.0#MarketPlaceOffer @@ -1826,7 +1826,7 @@ stages: url: "{tavern.env_vars.IRS_HOST}/irs/jobs" json: key: - globalAssetId: urn:uuid:8724338c-5c85-4c34-91eb-e2735d58fb0d #"{tavern.env_vars.GLOBAL_ASSET_ID_AS_BUILT}" + globalAssetId: urn:uuid:4509ea7c-c8d2-41a1-83ca-c214ee34af6c #"{tavern.env_vars.GLOBAL_ASSET_ID_AS_BUILT}" bpn: "{tavern.env_vars.BPN_AS_BUILT}" aspects: - urn:samm:io.catenax.serial_part:3.0.0#SerialPart @@ -2509,109 +2509,109 @@ stages: --- +# lookupBPNs are deprecated and no longer used +# test_name: Make sure IRS-jobs are running without BPN-lookups by default + +# strict: +# - headers:off +# - json:off + +# stages: +# - name: create a job and check for success +# request: +# url: "{tavern.env_vars.IRS_HOST}/irs/jobs" +# json: +# key: +# globalAssetId: "{tavern.env_vars.GLOBAL_ASSET_ID_AS_BUILT}" +# bpn: "{tavern.env_vars.BPN_AS_BUILT}" +# collectAspects: false +# depth: 1 +# direction: "downward" +# method: POST +# headers: +# content-type: application/json +# $ext: +# function: local.testing.api-tests.tavern_helpers:create_api_key +# response: +# status_code: 201 +# headers: +# content-type: application/json +# save: +# json: +# job_id: id -test_name: Make sure IRS-jobs are running without BPN-lookups by default - -strict: - - headers:off - - json:off - -stages: - - name: create a job and check for success - request: - url: "{tavern.env_vars.IRS_HOST}/irs/jobs" - json: - key: - globalAssetId: "{tavern.env_vars.GLOBAL_ASSET_ID_AS_BUILT}" - bpn: "{tavern.env_vars.BPN_AS_BUILT}" - collectAspects: false - depth: 1 - direction: "downward" - method: POST - headers: - content-type: application/json - $ext: - function: local.testing.api-tests.tavern_helpers:create_api_key - response: - status_code: 201 - headers: - content-type: application/json - save: - json: - job_id: id - - - *verify_job_is_running_and_wait_up_to_15_minutes_for_COMPLETED +# - *verify_job_is_running_and_wait_up_to_15_minutes_for_COMPLETED - - name: verify job response with desired test steps - request: - url: "{tavern.env_vars.IRS_HOST}/irs/jobs/{job_id}" - params: - returnUncompletedJob: true - method: GET - headers: - content-type: application/json - $ext: - function: local.testing.api-tests.tavern_helpers:create_api_key - response: - status_code: 200 - verify_response_with: - - function: local.testing.api-tests.tavern_helpers:bpns_are_empty - headers: - content-type: application/json +# - name: verify job response with desired test steps +# request: +# url: "{tavern.env_vars.IRS_HOST}/irs/jobs/{job_id}" +# params: +# returnUncompletedJob: true +# method: GET +# headers: +# content-type: application/json +# $ext: +# function: local.testing.api-tests.tavern_helpers:create_api_key +# response: +# status_code: 200 +# verify_response_with: +# - function: local.testing.api-tests.tavern_helpers:bpns_are_empty +# headers: +# content-type: application/json --- - -test_name: Make sure IRS-jobs are running with BPN-lookups correctly - -strict: - - headers:off - - json:off - -stages: - - name: create a job and wait - request: - url: "{tavern.env_vars.IRS_HOST}/irs/jobs" - json: - key: - globalAssetId: "{tavern.env_vars.GLOBAL_ASSET_ID_AS_BUILT}" - bpn: "{tavern.env_vars.BPN_AS_BUILT}" - collectAspects: false - lookupBPNs: false - depth: 1 - direction: "downward" - method: POST - headers: - content-type: application/json - $ext: - function: local.testing.api-tests.tavern_helpers:create_api_key - response: - status_code: 201 - headers: - content-type: application/json - save: - json: - job_id: id - - - *verify_job_is_running_and_wait_up_to_15_minutes_for_COMPLETED - - - name: verify job response with desired test steps - request: - url: "{tavern.env_vars.IRS_HOST}/irs/jobs/{job_id}" - params: - returnUncompletedJob: true - method: GET - headers: - content-type: application/json - $ext: - function: local.testing.api-tests.tavern_helpers:create_api_key - response: - status_code: 200 - verify_response_with: - - function: local.testing.api-tests.tavern_helpers:bpns_are_not_empty - headers: - content-type: application/json +# lookupBPNs are deprecated and no longer used +#test_name: Make sure IRS-jobs are running with BPN-lookups correctly +# +#strict: +# - headers:off +# - json:off +# +#stages: +# - name: create a job and wait +# request: +# url: "{tavern.env_vars.IRS_HOST}/irs/jobs" +# json: +# key: +# globalAssetId: "{tavern.env_vars.GLOBAL_ASSET_ID_AS_BUILT}" +# bpn: "{tavern.env_vars.BPN_AS_BUILT}" +# collectAspects: false +# lookupBPNs: false +# depth: 1 +# direction: "downward" +# method: POST +# headers: +# content-type: application/json +# $ext: +# function: local.testing.api-tests.tavern_helpers:create_api_key +# response: +# status_code: 201 +# headers: +# content-type: application/json +# save: +# json: +# job_id: id +# +# - *verify_job_is_running_and_wait_up_to_15_minutes_for_COMPLETED +# +# - name: verify job response with desired test steps +# request: +# url: "{tavern.env_vars.IRS_HOST}/irs/jobs/{job_id}" +# params: +# returnUncompletedJob: true +# method: GET +# headers: +# content-type: application/json +# $ext: +# function: local.testing.api-tests.tavern_helpers:create_api_key +# response: +# status_code: 200 +# verify_response_with: +# - function: local.testing.api-tests.tavern_helpers:bpns_are_not_empty +# headers: +# content-type: application/json --- @@ -3203,7 +3203,7 @@ stages: url: "{tavern.env_vars.IRS_HOST}/irs/jobs" json: key: - globalAssetId: "urn:uuid:835eed75-8556-4d36-aae0-b3c550096af3" #"{tavern.env_vars.GLOBAL_ASSET_ID_AS_BUILT}" + globalAssetId: "urn:uuid:3f4da38c-d1d0-4324-bda8-4a48fffef019" #"{tavern.env_vars.GLOBAL_ASSET_ID_AS_BUILT}" bpn: "{tavern.env_vars.BPN_AS_BUILT}" collectAspects: true auditContractNegotiation: true @@ -3260,7 +3260,7 @@ stages: url: "{tavern.env_vars.IRS_HOST}/irs/jobs" json: key: - globalAssetId: "urn:uuid:835eed75-8556-4d36-aae0-b3c550096af3" #"{tavern.env_vars.GLOBAL_ASSET_ID_AS_BUILT}" + globalAssetId: "urn:uuid:3f4da38c-d1d0-4324-bda8-4a48fffef019" #"{tavern.env_vars.GLOBAL_ASSET_ID_AS_BUILT}" bpn: "{tavern.env_vars.BPN_AS_BUILT}" collectAspects: true auditContractNegotiation: false From d6e2357289729d1f2e98c0cbfcc8e55a88be65d9 Mon Sep 17 00:00:00 2001 From: ds-kgassner Date: Thu, 16 May 2024 10:24:53 +0200 Subject: [PATCH 5/8] Revert "fix(featurefiles): [#503] removing feature files" This reverts commit 85decb332445ea51400917b6fdc3e08e25333c84. --- .../resources/features/10_TRI-817.feature | 250 +++++++++ .../resources/features/1_TRI-1616.feature | 271 +++++++++ .../test/resources/features/1_TRI-686.feature | 10 + .../features/2_TRI-1577_TRI-768.feature | 107 ++++ .../resources/features/3_TRI-1949.feature | 527 ++++++++++++++++++ .../features/4_TRI-512_TRI-768.feature | 197 +++++++ .../test/resources/features/5_TRI-768.feature | 459 +++++++++++++++ .../features/6_TRI-1312_TRI-768.feature | 88 +++ .../features/7_TRI-982_TRI-768.feature | 70 +++ .../features/8_TRI-1018_TRI-768.feature | 152 +++++ .../features/9_TRI-512_TRI-817.feature | 197 +++++++ 11 files changed, 2328 insertions(+) create mode 100644 irs-cucumber-tests/src/test/resources/features/10_TRI-817.feature create mode 100644 irs-cucumber-tests/src/test/resources/features/1_TRI-1616.feature create mode 100644 irs-cucumber-tests/src/test/resources/features/1_TRI-686.feature create mode 100644 irs-cucumber-tests/src/test/resources/features/2_TRI-1577_TRI-768.feature create mode 100644 irs-cucumber-tests/src/test/resources/features/3_TRI-1949.feature create mode 100644 irs-cucumber-tests/src/test/resources/features/4_TRI-512_TRI-768.feature create mode 100644 irs-cucumber-tests/src/test/resources/features/5_TRI-768.feature create mode 100644 irs-cucumber-tests/src/test/resources/features/6_TRI-1312_TRI-768.feature create mode 100644 irs-cucumber-tests/src/test/resources/features/7_TRI-982_TRI-768.feature create mode 100644 irs-cucumber-tests/src/test/resources/features/8_TRI-1018_TRI-768.feature create mode 100644 irs-cucumber-tests/src/test/resources/features/9_TRI-512_TRI-817.feature diff --git a/irs-cucumber-tests/src/test/resources/features/10_TRI-817.feature b/irs-cucumber-tests/src/test/resources/features/10_TRI-817.feature new file mode 100644 index 0000000000..e34ada370a --- /dev/null +++ b/irs-cucumber-tests/src/test/resources/features/10_TRI-817.feature @@ -0,0 +1,250 @@ +Feature: Default + + Background: + #@TRI-817 + Given the IRS URL "https://irs.int.demo.catena-x.net" + And the admin user api key + + + #h2. INT  + #||Key||Value|| + #|globalAssetId|urn:uuid:334cce52-1f52-4bc9-9dd1-410bbe497bbc| + #|BPNL|BPNL00000003B2OM| + # + #h3. Test Objective: + # + #__ + # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. + # + #h3. Description: + # + #__ + # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer + # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. + # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer + # # Api consumer gets an item graph document with the results for the requested globalAssetId + # + #h3. Preconditions: + # + #__ + # # DT Twin Registry is up and running and contains valid test data set + # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints + # # EDC Consumer is set up and configures to the DT Registry and Submodel  + # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume + # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects + ## Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api consumer (role has t.b.d.) + @TRI-818 @TRI-1452 @TRI-874 @INT @INTEGRATION_TEST @[INT-TEST] + Scenario: 🔨🧩[INT-TEST] End 2 End for Tier A (ZF) [BPN:BPNL00000003B2OM] + Given I register an IRS job for globalAssetId "urn:uuid:334cce52-1f52-4bc9-9dd1-410bbe497bbc" and BPN "BPNL00000003B2OM" + And aspects : + | urn:bamm:io.catenax.serial_part:1.0.1#SerialPart | + | urn:bamm:io.catenax.single_level_bom_as_built:2.0.0#SingleLevelBomAsBuilt | + | urn:samm:io.catenax.batch:2.0.0#Batch | + | urn:bamm:io.catenax.material_for_recycling:1.1.0#MaterialForRecycling | + And collectAspects "true" + And lookupBPNs "false" + And depth 100 + And direction "downward" + When I get the job-id + Then I check, if the job has status "COMPLETED" within 20 minutes + And I check, if number of "tombstones" equals to "summary/asyncFetchedItems/failed" + And I check, if "summary" contains 12 completed and 0 failed items + And I check, if "bpn summary" contains 4 completed and 0 failed items + And I check, if "relationships" are equal to "TRI-704-expected-relationships.json" + And I check, if "submodels" are equal to "TRI-704-expected-submodels.json" + And I check, if submodels contains BPNL number "BPNL00000003B2OM" exactly 1 times + + #h2. INT  + #||Key||Value|| + #|globalAssetId|urn:uuid:ed333e9a-5afa-40b2-99da-bae2fd21501e| + #|BPNL|BPNL00000003AVTH| + # + #h3. Test Objective: + # + #__ + # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. + # + #h3. Description: + # + #__ + # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer + # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. + # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer + # # Api consumer gets an item graph document with the results for the requested globalAssetId + # + #h3. Preconditions: + # + #__ + # # DT Twin Registry is up and running and contains valid test data set + # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints + # # EDC Consumer is set up and configures to the DT Registry and Submodel  + # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume + # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects + ## Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api consumer (role has t.b.d.) + @TRI-1070 @TRI-1452 @TRI-874 @INT @INTEGRATION_TEST @INTEGRATION_TEST_2.0.0 + Scenario: 🔨🧩[INT-TEST] End 2 End for OEM B (Mercedes Benz) [BPN: BPNL00000003AVTH] + Given I register an IRS job for globalAssetId "urn:uuid:ed333e9a-5afa-40b2-99da-bae2fd21501e" and BPN "BPNL00000003AVTH" + And aspects : + | urn:bamm:io.catenax.serial_part:1.0.1#SerialPart | + | urn:bamm:io.catenax.single_level_bom_as_built:2.0.0#SingleLevelBomAsBuilt | + | urn:samm:io.catenax.batch:2.0.0#Batch | + | urn:bamm:io.catenax.material_for_recycling:1.1.0#MaterialForRecycling | + | urn:bamm:io.catenax.physical_dimension:1.0.0#PhysicalDimension | + And collectAspects "true" + And lookupBPNs "false" + And depth 10 + And direction "downward" + When I get the job-id + Then I check, if the job has status "COMPLETED" within 20 minutes + And I check, if number of "tombstones" equals to "summary/asyncFetchedItems/failed" + And I check, if "summary" contains 35 completed and 0 failed items + And I check, if "bpn summary" contains 35 completed and 0 failed items + And I check, if "relationships" are equal to "TRI-1070-expected-relationships.json" + And I check, if "submodels" are equal to "TRI-1070-expected-submodels.json" + And I check, if submodels contains BPNL number "BPNL00000003AVTH" exactly 35 times + + #h2. INT  + #||Key||Value|| + #|globalAssetId|urn:uuid:6d505432-8b31-4966-9514-4b753372683f| + #|BPNL|BPNL00000003AVTH| + # + #h3. Test Objective: + # + #__ + # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. + # + #h3. Description: + # + #__ + # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer + # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. + # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer + # # Api consumer gets an item graph document with the results for the requested globalAssetId + # + #h3. Preconditions: + # + #__ + # # DT Twin Registry is up and running and contains valid test data set + # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints + # # EDC Consumer is set up and configures to the DT Registry and Submodel  + # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume + # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects + ## Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api consumer (role has t.b.d.) + @TRI-819 @TRI-1452 @TRI-874 @TEST-315 @INT @INTEGRATION_TEST @[INT-TEST] + Scenario: 🔨🧩[INT-TEST] End 2 End for OEM-B (MB) [BPN:BPNL00000003AVTH] + Given I register an IRS job for globalAssetId "urn:uuid:6d505432-8b31-4966-9514-4b753372683f" and BPN "BPNL00000003AVTH" + And collectAspects "true" + And lookupBPNs "false" + And depth 100 + And direction "downward" + And aspects : + | urn:bamm:io.catenax.serial_part:1.0.1#SerialPart | + | urn:bamm:io.catenax.single_level_bom_as_built:2.0.0#SingleLevelBomAsBuilt | + | urn:samm:io.catenax.batch:2.0.0#Batch | + When I get the job-id + Then I check, if the job has status "COMPLETED" within 20 minutes + And I check, if number of "tombstones" equals to "summary/asyncFetchedItems/failed" + And I check, if "summary" contains 271 completed and 0 failed items + And I check, if "bpn summary" contains 83 completed and 0 failed items + And I check, if "relationships" are equal to "TRI-767-expected-relationships.json" + And I check, if "submodels" are equal to "TRI-767-expected-submodels.json" + And I check, if submodels contains BPNL number "BPNL00000003AVTH" exactly 69 times + + #h2. INT  + #||Key||Value|| + #|globalAssetId|urn:uuid:e95f3ff2-c5e7-49a5-873b-aee2728917d3| + #|BPNL| BPNL00000003B2OM | + # + # + # + #h3. Test Objective: + # + #__ + # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. + # + #h3. Description: + # + #__ + # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer + # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. + # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer + # # Api consumer gets an item graph document with the results for the requested globalAssetId + # + #h3. Preconditions: + # + #__ + # # DT Twin Registry is up and running and contains valid test data set + # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints + # # EDC Consumer is set up and configures to the DT Registry and Submodel  + # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume + # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects + ## Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api consumer (role has t.b.d.) + @TRI-820 @TRI-1452 @TRI-874 @INT @INTEGRATION_TEST @[INT-TEST] + Scenario: 🔨🧩[INT-TEST] End 2 End for aspect "MaterialForRecycling" + Given I register an IRS job for globalAssetId "urn:uuid:e95f3ff2-c5e7-49a5-873b-aee2728917d3" and BPN "BPNL00000003B2OM" + And aspects : + | urn:bamm:io.catenax.material_for_recycling:1.1.0#MaterialForRecycling | + And collectAspects "true" + And lookupBPNs "false" + And depth 100 + And direction "downward" + When I get the job-id + Then I check, if the job has status "COMPLETED" within 20 minutes + And I check, if number of "tombstones" equals to "summary/asyncFetchedItems/failed" + And I check, if "summary" contains 5 completed and 3 failed items + And I check, if "bpn summary" contains 4 completed and 0 failed items + And I check, if "relationships" are equal to "TRI-528-expected-relationships.json" + And I check, if "submodels" are equal to "TRI-528-expected-submodels.json" + #And I check, if submodels contains BPNL number "BPNL00000003B2OM" exactly 1 times \ No newline at end of file diff --git a/irs-cucumber-tests/src/test/resources/features/1_TRI-1616.feature b/irs-cucumber-tests/src/test/resources/features/1_TRI-1616.feature new file mode 100644 index 0000000000..6509589eb4 --- /dev/null +++ b/irs-cucumber-tests/src/test/resources/features/1_TRI-1616.feature @@ -0,0 +1,271 @@ +Feature: Default + + Background: + #@TRI-1616 + Given the IRS URL "https://irs-dil.dev.demo.catena-x.net" + And the admin user api key + + + #*Used testdata* from TRI-1291. + # + #*TBD:* + #h3. Test Objective: + # + #__ + # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. + # + #h3. Description: + # + #__ + # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer + # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. + # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer + # # Api consumer gets an item graph document with the results for the requested globalAssetId + # + #h3. Preconditions: + # + #__ + # # DT Twin Registry is up and running and contains valid test data set + # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints + # # EDC Consumer is set up and configures to the DT Registry and Submodel  + # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume + # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects + ## Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api consumer (role has t.b.d.) + @TRI-1564 @TRI-1942 @TRI-873 @TRI-1843 @DIL @INTEGRATION_TEST @INTEGRATION_TEST_2.0.0 + Scenario: 🔨🧩[DIL] Check data integrity use case with one changed part + Given I register an IRS job for globalAssetId "urn:uuid:05abf6ff-8c78-4b72-948b-40e08e9b83f3" and BPN "BPNL00000003AZQP" + And integrityCheck "true" + And collectAspects "true" + And aspects : + | urn:bamm:io.catenax.serial_part:1.0.1#SerialPart | + When I get the job-id + Then I check, if the job has status "COMPLETED" within 10 minutes + # And I check, if "part-changed" tombstones for data integrity are existing + And I check, if integrityState is "INVALID" + + #Vehicle A + #urn:uuid:a1fa0f85-697d-4c9d-982f-2501af8e8636 + #Complete and valid integrity aspects + # + #Vehicle B + #urn:uuid:05abf6ff-8c78-4b72-948b-40e08e9b83f3 + #1 Part urn:uuid:dc60fc50-c875-4ce6-a1b9-d59c4c1e0b17 has payload which changed after the hash was created + # + #Vehicle C + ##urn:uuid:17e11d67-0315-4504-82cd-8e70a8c33a6a + #Signatures for Part urn:uuid:8c437b9d-f1b8-4397-b030-c3637eaf9b53 were created with a different private key + # + #Vehicle D + #urn:uuid:5672e8ff-8a73-425e-b2a5-5561b5b21d7a + #IntegrityAspect for part urn:uuid:ef3865b8-6811-4659-a1b5-e186f8e42258 is missing + + #*Used testdata* from TRI-1291. + # + #*TBD:* + #h3. Test Objective: + # + #__ + # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. + # + #h3. Description: + # + #__ + # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer + # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. + # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer + # # Api consumer gets an item graph document with the results for the requested globalAssetId + # + #h3. Preconditions: + # + #__ + # # DT Twin Registry is up and running and contains valid test data set + # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints + # # EDC Consumer is set up and configures to the DT Registry and Submodel  + # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume + # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects + ## Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api consumer (role has t.b.d.) + @TRI-1565 @TRI-1942 @TRI-873 @TRI-1843 @DIL @INTEGRATION_TEST @INTEGRATION_TEST_2.0.0 + Scenario: 🔨🧩[DIL] Check data integrity use case with one part created with different private key + Given I register an IRS job for globalAssetId "urn:uuid:17e11d67-0315-4504-82cd-8e70a8c33a6a" and BPN "BPNL00000003AZQP" + And integrityCheck "true" + And aspects : + | urn:bamm:io.catenax.single_level_bom_as_built:2.0.0#SingleLevelBomAsBuilt | + When I get the job-id + Then I check, if the job has status "COMPLETED" within 10 minutes + #And I check, if "different private key" tombstones for data integrity are existing + And I check, if integrityState is "INVALID" + + #Vehicle A + #urn:uuid:a1fa0f85-697d-4c9d-982f-2501af8e8636 + #Complete and valid integrity aspects + # + #Vehicle B + #urn:uuid:05abf6ff-8c78-4b72-948b-40e08e9b83f3 + #1 Part urn:uuid:dc60fc50-c875-4ce6-a1b9-d59c4c1e0b17 has payload which changed after the hash was created + # + #Vehicle C + #urn:uuid:17e11d67-0315-4504-82cd-8e70a8c33a6a + #Signatures for Part urn:uuid:8c437b9d-f1b8-4397-b030-c3637eaf9b53 were created with a different private key + # + #Vehicle D + #urn:uuid:5672e8ff-8a73-425e-b2a5-5561b5b21d7a + #IntegrityAspect for part urn:uuid:ef3865b8-6811-4659-a1b5-e186f8e42258 is missing + + #*Used testdata* from TRI-1291. + # + #*TBD:* + #h3. Test Objective: + # + #__ + # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. + # + #h3. Description: + # + #__ + # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer + # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. + # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer + # # Api consumer gets an item graph document with the results for the requested globalAssetId + # + #h3. Preconditions: + # + #__ + # # DT Twin Registry is up and running and contains valid test data set + # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints + # # EDC Consumer is set up and configures to the DT Registry and Submodel  + # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume + # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects + ## Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api consumer (role has t.b.d.) + @TRI-1566 @TRI-1942 @TRI-873 @TRI-1843 @DIL @INTEGRATION_TEST @INTEGRATION_TEST_2.0.0 + Scenario: 🔨🧩[DIL] Check data integrity use case with missing integrity aspect for one part + Given I register an IRS job for globalAssetId "urn:uuid:5672e8ff-8a73-425e-b2a5-5561b5b21d7a" and BPN "BPNL00000003AZQP" + And integrityCheck "true" + And collectAspects "true" + And aspects : + | urn:bamm:io.catenax.serial_part:1.0.1#SerialPart | + | urn:bamm:io.catenax.single_level_bom_as_built:2.0.0#SingleLevelBomAsBuilt | + When I get the job-id + Then I check, if the job has status "COMPLETED" within 10 minutes + #And I check, if "missing integrity aspect" tombstones for data integrity are existing + And I check, if integrityState is "INVALID" + + #Vehicle A + #urn:uuid:a1fa0f85-697d-4c9d-982f-2501af8e8636 + #Complete and valid integrity aspects + # + #Vehicle B + #urn:uuid:05abf6ff-8c78-4b72-948b-40e08e9b83f3 + #1 Part urn:uuid:dc60fc50-c875-4ce6-a1b9-d59c4c1e0b17 has payload which changed after the hash was created + # + #Vehicle C + #urn:uuid:17e11d67-0315-4504-82cd-8e70a8c33a6a + #Signatures for Part urn:uuid:8c437b9d-f1b8-4397-b030-c3637eaf9b53 were created with a different private key + # + #Vehicle D + #urn:uuid:5672e8ff-8a73-425e-b2a5-5561b5b21d7a + #IntegrityAspect for part urn:uuid:ef3865b8-6811-4659-a1b5-e186f8e42258 is missing + + #*Used testdata* from TRI-1291. + # + #*TBD:* + #h3. Test Objective: + # + #__ + # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. + # + #h3. Description: + # + #__ + # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer + # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. + # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer + # # Api consumer gets an item graph document with the results for the requested globalAssetId + # + #h3. Preconditions: + # + #__ + # # DT Twin Registry is up and running and contains valid test data set + # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints + # # EDC Consumer is set up and configures to the DT Registry and Submodel  + # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume + # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects + ## Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api consumer (role has t.b.d.) + @TRI-1563 @TRI-1942 @TRI-873 @TRI-1843 @DIL @INTEGRATION_TEST @INTEGRATION_TEST_2.0.0 + Scenario: 🔨🧩[DIL] Check data integrity use case with complete and valid integrity aspects + Given I register an IRS job for globalAssetId "urn:uuid:a1fa0f85-697d-4c9d-982f-2501af8e8636" and BPN "BPNL00000003AZQP" + And integrityCheck "true" + And aspects : + | urn:bamm:io.catenax.serial_part:1.0.1#SerialPart | + | urn:bamm:io.catenax.single_level_bom_as_built:2.0.0#SingleLevelBomAsBuilt | + When I get the job-id + Then I check, if the job has status "COMPLETED" within 10 minutes + #And I check, if "no" tombstones for data integrity are existing + And I check, if integrityState is "VALID" + + #Vehicle A + #urn:uuid:a1fa0f85-697d-4c9d-982f-2501af8e8636 + #Complete and valid integrity aspects + # + #Vehicle B + #urn:uuid:05abf6ff-8c78-4b72-948b-40e08e9b83f3 + #1 Part urn:uuid:dc60fc50-c875-4ce6-a1b9-d59c4c1e0b17 has payload which changed after the hash was created + # + #Vehicle C + ##urn:uuid:17e11d67-0315-4504-82cd-8e70a8c33a6a + #Signatures for Part urn:uuid:8c437b9d-f1b8-4397-b030-c3637eaf9b53 were created with a different private key + # + #Vehicle D + #urn:uuid:5672e8ff-8a73-425e-b2a5-5561b5b21d7a + #IntegrityAspect for part urn:uuid:ef3865b8-6811-4659-a1b5-e186f8e42258 is missing \ No newline at end of file diff --git a/irs-cucumber-tests/src/test/resources/features/1_TRI-686.feature b/irs-cucumber-tests/src/test/resources/features/1_TRI-686.feature new file mode 100644 index 0000000000..545fa843a3 --- /dev/null +++ b/irs-cucumber-tests/src/test/resources/features/1_TRI-686.feature @@ -0,0 +1,10 @@ +@TRI-686 @Ignore +Feature: Cucumber Test Story + + + @TRI-687 @Ignore + Scenario: Test Cucumber Test Story + Given I have entered 1 into the calculator + And I have entered 2 into the calculator + When I press add + Then the result should be 3 on the screen \ No newline at end of file diff --git a/irs-cucumber-tests/src/test/resources/features/2_TRI-1577_TRI-768.feature b/irs-cucumber-tests/src/test/resources/features/2_TRI-1577_TRI-768.feature new file mode 100644 index 0000000000..31f8166105 --- /dev/null +++ b/irs-cucumber-tests/src/test/resources/features/2_TRI-1577_TRI-768.feature @@ -0,0 +1,107 @@ +@TRI-1577 +Feature: 👍[RELEASE_3.2.0][HOTFIX] Update Batch Aspectmodel v. 2.0.0 + #h2. Business Value + # # (y) [ ] *User-business value:* + # # (y) [ ] *Risk reduction:* + # # (y) [x] *Regulatory value:* + # # (y) [ ] *Commercial value:* + # # (y) [ ] *Market value:* + # # (y) [ ] *Efficiency value:* + # # (y) [ ] *Future value:* + # + #h2. User Story + # + #*As a PO* + #*I want to fullfill the compliance guardrails* + #*so that _our application / project have success_* + #h2. Outcome + # - (/) aspect model for batch updated to version 2.0.0 >> IRS no longer uses Aspect Models Batch or SerialPart in Code so these changes are solely for plain submodels. I verified locally that Batch 2.0.0 is sucessfully passed in "submodels" in the job response, using the example payload generated from the .ttl files of + # - (/) Extend the IRS testdata file with new batch model 2.0.0 >> see [PR #502|https://github.com/catenax-ng/tx-item-relationship-service/pull/502] + # - (/) Test adjusted testdata new on Batch semantic model (Environment: DEV) >> We are still depending from the testdata set -> Requirement defined TDG-26 + # - (/) Add a new story for removal Batch and SerialPart dependencies from code (FUP) >> No follow up is required there are no changes necessary + # - (/) Check if SubmodelModels are still needed if in the case it is create a new story to get rid of this code >> IRS no longer uses Aspect Models Batch or SerialPart in Code so these changes are solely for plain submodels. I verified locally that Batch 2.0.0 is sucessfully passed in "submodels" in the job response, using the example payload generated from the .ttl files of + # - (/) Cucumber tests are adjusted to new batch models >> Show successfully execution of cucumber tests [~alexander.bulgakov@partner.doubleslash.de] -> See execution [TRI-1603|https://jira.catena-x.net/secure/XrayExecuteTest!default.jspa?testExecIssueKey=TRI-1603&testIssueKey=TRI-1598] + # + #h2. Hints / Details : + # * PR for Batch Aspect [https://github.com/eclipse-tractusx/sldt-semantic-models/pull/286] + # + #Changers: + # - Semantic ID will change + # - customerPartId deleted + # - nameAtCustomer deleted + # + #h2. NFR + #h2. Dependency + # # (?) [ ] * Portal / Access Management + # # (?) [ ] * Testdata Management + # # (?) [ ] * Test Management AND/OR Release Management + # # (?) [ ] * Semantic Model Teams + # # (?) [ ] * EDC + # # (?) [ ] * Decentral twin infrastructure (discovery finders * ) + # # (?) [ ] * IRS + # # (?) [ ] * To be extended .... + # + #h2. TODO: + # * (-) Fill out description + # * (-) Fill out Story Points + # * (-) (Assign an Assignee - might be done during the Sprint) + # * (-) define Acceptance Criteria + # * (-) [DoR |https://confluence.catena-x.net/pages/viewpage.action?pageId=917505] + + Background: + #@TRI-768 + Given the IRS URL "https://irs.dev.demo.catena-x.net" + And the admin user api key + + + #*Used testdataset*: 1.5.3 + # + #h3. Test Objective: + # + #__ + # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. + # + #h3. Description: + # + #__ + # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer + # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. + # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer + # # Api consumer gets an item graph document with the results for the requested globalAssetId + # + #h3. Preconditions: + # + #__ + # # DT Twin Registry is up and running and contains valid test data set + # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints + # # EDC Consumer is set up and configures to the DT Registry and Submodel  + # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume + # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects + ## Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api consumer (role has t.b.d.) + @TRI-1598 @TRI-1843 @TRI-1942 @TRI-873 @TRI-1770 @TRI-1682 @DEV @INTEGRATION_TEST + Scenario: 🔨🧩[DEV-TEST] BomLifecycle 'asBuilt' for testing "Batch"-Model [BPNL00000003AVTH] 🌟 + Given I register an IRS job for globalAssetId "urn:uuid:8724338c-5c85-4c34-91eb-e2735d58fb0d" and BPN "BPNL00000003AVTH" + And collectAspects "true" + And depth 10 + And direction "downward" + And bomLifecycle "asBuilt" + And lookupBPNs "false" + And aspects : + | urn:samm:io.catenax.batch:3.0.0#Batch | + When I get the job-id + Then I check, if the job has status "COMPLETED" within 20 minutes + And I check, if "relationships" are equal to "TRI-1598-expected-relationships.json" + And I check, if "submodels" are equal to "TRI-1598-expected-submodels.json" \ No newline at end of file diff --git a/irs-cucumber-tests/src/test/resources/features/3_TRI-1949.feature b/irs-cucumber-tests/src/test/resources/features/3_TRI-1949.feature new file mode 100644 index 0000000000..9ed1f8d9be --- /dev/null +++ b/irs-cucumber-tests/src/test/resources/features/3_TRI-1949.feature @@ -0,0 +1,527 @@ +Feature: Default + + Background: + #@TRI-1949 + Given the IRS URL "https://irs.dev.demo.catena-x.net/" -- policystore + And the admin user api key -- policystore + + + #{*}Used testdataset{*}: — + #h3. Test Objective: + # + #__ + # * Register policies for different BPNLs + # + #h3. Description: + # + #__ + # # Register policies (for associating with more than one BPNL POST + UPDATE is needed) + # # Get all policies and get policies for BPNLs and check + # + #h3. Preconditions: + # + #__ + # # Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + # * *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment |https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + # * *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api admin + @TRI-1950 @TRI-873 @DEV @INTEGRATION_TEST + Scenario: 🔨🧩[DEV-TEST] Policy Store API: Register policies + # cleanup + Given no policies with prefix "integration-test-policy-" exist + + # act and assert + Given I want to register a policy with policyId "integration-test-policy-1111" + And the policy should be associated to BPN "BPNL1234567890AB" + And the policy should have validUntil "1111-11-11T11:11:11.111Z" + When I register the policy + Then the create policy response should have HTTP status 201 and policyId "integration-test-policy-1111" + + Given I want to register a policy with policyId "integration-test-policy-2222" + And the policy should be associated to the following BPNs: + | BPNL1234567890AB | + | BPNL1234567890CD | + And the policy should have validUntil "2222-11-11T11:11:11.111Z" + When I register the policy + Then the create policy response should have HTTP status 201 and policyId "integration-test-policy-2222" + + When a policy with policyId "integration-test-policy-3333" is registered for BPN "BPNL1234567890CD" and validUntil "3333-11-11T11:11:11.111Z" + Then the create policy response should have HTTP status 201 and policyId "integration-test-policy-3333" + + When a policy with policyId "integration-test-policy-4444" is registered for BPN "BPNL1234567890CD" and validUntil "4444-11-11T11:11:11.111Z" + Then the create policy response should have HTTP status 201 and policyId "integration-test-policy-4444" + + When I successfully fetch all policies + Then the BPNs should be associated with policies as follows: + | BPN | policyId | + | BPNL1234567890AB | integration-test-policy-1111 | + | BPNL1234567890AB | integration-test-policy-2222 | + | BPNL1234567890CD | integration-test-policy-2222 | + | BPNL1234567890CD | integration-test-policy-3333 | + | BPNL1234567890CD | integration-test-policy-4444 | + + When I fetch policies for BPNs: + | BPNL1234567890AB | + Then the fetch policies for BPN response should have HTTP status 200 + And the BPNs should be associated with policies as follows: + | BPN | policyId | + | BPNL1234567890AB | integration-test-policy-1111 | + | BPNL1234567890AB | integration-test-policy-2222 | + + When I fetch policies for BPNs: + | BPNL1234567890CD | + Then the fetch policies for BPN response should have HTTP status 200 + And the BPNs should be associated with policies as follows: + | BPN | policyId | + | BPNL1234567890CD | integration-test-policy-2222 | + | BPNL1234567890CD | integration-test-policy-3333 | + | BPNL1234567890CD | integration-test-policy-4444 | + + When I fetch policies for BPNs: + | BPNL1234567890AB | + | BPNL1234567890CD | + Then the fetch policies for BPN response should have HTTP status 200 + And the BPNs should be associated with policies as follows: + | BPN | policyId | + | BPNL1234567890AB | integration-test-policy-1111 | + | BPNL1234567890AB | integration-test-policy-2222 | + | BPNL1234567890CD | integration-test-policy-2222 | + | BPNL1234567890CD | integration-test-policy-3333 | + | BPNL1234567890CD | integration-test-policy-4444 | + + #{*}Used testdataset{*}: — + #h3. Test Objective: + # + #__ + # * Update a policies validUntil date and check if successful + # + #h3. Description: + # + #__ + # # Register a policy + # # Update its validUntil + # # Assert that update was successful + # + #h3. Preconditions: + # + #__ + # # Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + # * *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment |https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + # * *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api admin + @TRI-1951 @TRI-873 @DEV @INTEGRATION_TEST + Scenario: 🔨🧩[DEV-TEST] Policy Store API: Update a policy validUntil date + # cleanup + Given no policies with prefix "integration-test-policy-" exist + + # set up testdata + Given a policy with policyId "integration-test-policy-1111" is registered for BPN "BPNL1234567890AB" and validUntil "1111-11-11T11:11:11.111Z" + Then the create policy response should have HTTP status 201 and policyId "integration-test-policy-1111" + + # act and assert + When I update policy "integration-test-policy-1111", BPN "BPNL1234567890AB", validUntil "1112-11-11T11:11:11.111Z" + Then the update policy response should have HTTP status 200 + When I successfully fetch all policies + Then the BPN "BPNL1234567890AB" should have a policy with policyId "integration-test-policy-1111" and validUntil "1112-11-11T11:11:11.111Z" + + #{*}Used testdataset{*}: — + #h3. Test Objective: + # + #__ + # * Update validUntil of a policy that is assocoated to multiple BPNLs and check if successful + # + #h3. Description: + # + #__ + # # Register a policy and asssociate it with multiple BPNLs + # # Update its validUntil + # # Assert that update was successful + # + #h3. Preconditions: + # + #__ + # # Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + # * *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment |https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + # * *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api admin + @TRI-1952 @TRI-873 @DEV @INTEGRATION_TEST + Scenario: 🔨🧩[DEV-TEST] Policy Store API: Update a policy validUntil date for a policy that is associated to multiple BPNs + # cleanup + Given no policies with prefix "integration-test-policy-" exist + + # set up testdata + Given I want to register a policy with policyId "integration-test-policy-1111" + And the policy should be associated to BPN "BPNL1234567890AB" + And the policy should have validUntil "1111-11-11T11:11:11.111Z" + When I register the policy + Then the create policy response should have HTTP status 201 and policyId "integration-test-policy-1111" + + Given I want to register a policy with policyId "integration-test-policy-2222" + And the policy should be associated to BPN "BPNL1234567890AB" + And the policy should have validUntil "2222-11-11T11:11:11.111Z" + And the policy should be associated to the following BPNs: + | BPNL1234567890AB | + | BPNL1234567890CD | + When I register the policy + Then the create policy response should have HTTP status 201 and policyId "integration-test-policy-2222" + + When a policy with policyId "integration-test-policy-3333" is registered for BPN "BPNL1234567890CD" and validUntil "3333-11-11T11:11:11.111Z" + Then the create policy response should have HTTP status 201 and policyId "integration-test-policy-3333" + + When a policy with policyId "integration-test-policy-4444" is registered for BPN "BPNL1234567890CD" and validUntil "4444-11-11T11:11:11.111Z" + Then the create policy response should have HTTP status 201 and policyId "integration-test-policy-4444" + + # check the testdata preconditions + When I successfully fetch all policies + Then the BPN "BPNL1234567890AB" should have a policy with policyId "integration-test-policy-1111" and validUntil "1111-11-11T11:11:11.111Z" + And the BPN "BPNL1234567890AB" should have a policy with policyId "integration-test-policy-2222" and validUntil "2222-11-11T11:11:11.111Z" + And the BPN "BPNL1234567890CD" should have a policy with policyId "integration-test-policy-2222" and validUntil "2222-11-11T11:11:11.111Z" + And the BPN "BPNL1234567890CD" should have a policy with policyId "integration-test-policy-3333" and validUntil "3333-11-11T11:11:11.111Z" + And the BPN "BPNL1234567890CD" should have a policy with policyId "integration-test-policy-4444" and validUntil "4444-11-11T11:11:11.111Z" + + # act + When I update policy with policyId "integration-test-policy-2222" and given BPNs using validUntil "2223-11-11T11:11:11.111Z": + | BPNL1234567890AB | + | BPNL1234567890CD | + Then the update policy response should have HTTP status 200 + + # assert + When I successfully fetch all policies + Then the BPN "BPNL1234567890AB" should have a policy with policyId "integration-test-policy-1111" and validUntil "1111-11-11T11:11:11.111Z" + And the BPN "BPNL1234567890AB" should have a policy with policyId "integration-test-policy-2222" and validUntil "2223-11-11T11:11:11.111Z" + And the BPN "BPNL1234567890CD" should have a policy with policyId "integration-test-policy-2222" and validUntil "2223-11-11T11:11:11.111Z" + And the BPN "BPNL1234567890CD" should have a policy with policyId "integration-test-policy-3333" and validUntil "3333-11-11T11:11:11.111Z" + And the BPN "BPNL1234567890CD" should have a policy with policyId "integration-test-policy-4444" and validUntil "4444-11-11T11:11:11.111Z" + + #{*}Used testdataset{*}: — + #h3. Test Objective: + # + #__ + # * Add BPNL to a policy and check if successful + # + #h3. Description: + # + #__ + # # Register some policies + # # Add another BPNL to one of them + # # Assert that update was successful + # + #h3. Preconditions: + # + #__ + # # Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + # * *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment |https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + # * *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api admin + @TRI-1953 @TRI-873 @DEV @INTEGRATION_TEST + Scenario: 🔨🧩[DEV-TEST] Policy Store API: Add BPN to policy + # cleanup + Given no policies with prefix "integration-test-policy-" exist + + # set up testdata + Given a policy with policyId "integration-test-policy-1111" is registered for BPN "BPNL1234567890AB" and validUntil "1111-11-11T11:11:11.111Z" + Then the create policy response should have HTTP status 201 and policyId "integration-test-policy-1111" + + Given a policy with policyId "integration-test-policy-2222" is registered for BPN "BPNL1234567890CD" and validUntil "2222-11-11T11:11:11.111Z" + Then the create policy response should have HTTP status 201 and policyId "integration-test-policy-2222" + + # act and assert + When I update policy "integration-test-policy-1111", BPN "BPNL1234567890CD", validUntil "1112-11-11T11:11:11.111Z" + Then the update policy response should have HTTP status 200 + + When I successfully fetch all policies + Then the BPN "BPNL1234567890CD" should have a policy with policyId "integration-test-policy-2222" and validUntil "2222-11-11T11:11:11.111Z" + And the BPN "BPNL1234567890CD" should have a policy with policyId "integration-test-policy-1111" and validUntil "1112-11-11T11:11:11.111Z" + And the BPN "BPNL1234567890AB" should have 0 policies having policyId starting with "integration-test-policy-" + + #{*}Used testdataset{*}: — + #h3. Test Objective: + # + #__ + # * Register policy without validUntil should fail + # + #h3. Description: + # + #__ + # # Register policy without validUntil + # + #h3. Preconditions: + # + #__ + # # Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + # * *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment |https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + # * *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api admin + @TRI-1965 @TRI-873 @DEV @INTEGRATION_TEST + Scenario: 🔨🧩[DEV-TEST] Policy Store API: Register policies without validUntil (bad case) + # cleanup + Given no policies with prefix "integration-test-policy-" exist + + # act + Given I want to register a policy with policyId "integration-test-policy-1111" + And the policy should be associated to BPN "BPNL1234567890AB" + And the policy should have no validUntil + When I register the policy + + # assert + Then the create policy response should have HTTP status 400 + + #{*}Used testdataset{*}: — + #h3. Test Objective: + # + #__ + # * Add a policy to BPNLs and check if successful + # + #h3. Description: + # + #__ + # # Register policy with BPNL1 + # # Update using BPNL1 and BPNL2 in order to add it to BPNL2 + # # Assert that update was successful + # + #h3. Preconditions: + # + #__ + # # Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + # * *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment |https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + # * *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api admin + @TRI-1954 @TRI-873 @DEV @INTEGRATION_TEST + Scenario: 🔨🧩[DEV-TEST] Policy Store API: Add policyId to given BPNs + # cleanup + Given no policies with prefix "integration-test-policy-" exist + + # set up testdata + Given a policy with policyId "integration-test-policy-1111" is registered for BPN "BPNL1234567890AB" and validUntil "1111-11-11T11:11:11.111Z" + Then the create policy response should have HTTP status 201 and policyId "integration-test-policy-1111" + + # check the testdata preconditions + When I successfully fetch all policies + Then the BPN "BPNL1234567890AB" should have the following policies: + | integration-test-policy-1111 | + And the BPN "BPNL1234567890CD" should have 0 policies having policyId starting with "integration-test-policy-" + + # act and assert + When I want to update the policy with policyId "integration-test-policy-1111" + And the policy should be associated to the following BPNs: + | BPNL1234567890AB | + | BPNL1234567890CD | + And the policy should have validUntil "1112-11-11T11:11:11.111Z" + And I update the policy + Then the update policy response should have HTTP status 200 + + When I successfully fetch all policies + Then the BPNs should be associated with policies as follows: + | BPN | policyId | + | BPNL1234567890AB | integration-test-policy-1111 | + | BPNL1234567890CD | integration-test-policy-1111 | + + #{*}Used testdataset{*}: — + #h3. Test Objective: + # + #__ + # * Delete some policies and check if successful + # + #h3. Description: + # + #__ + # # Register some policies + # # Delete some of them + # # Assert that deletion was successful + # + #h3. Preconditions: + # + #__ + # # Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + # * *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment |https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + # * *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api admin + @TRI-1955 @TRI-873 @DEV @INTEGRATION_TEST + Scenario: 🔨🧩[DEV-TEST] Policy Store API: Delete some policies + # cleanup + Given no policies with prefix "integration-test-policy-" exist + + # set up testdata + Given a policy with policyId "integration-test-policy-1111" is registered for BPN "BPNL1234567890AB" and validUntil "2222-11-11T11:11:11.111Z" + Then the create policy response should have HTTP status 201 and policyId "integration-test-policy-1111" + + Given I add policyId "integration-test-policy-1111" to given BPNs using validUntil "1111-11-11T11:11:11.111Z": + | BPNL1234567890AB | + | BPNL1234567890EF | + Then the update policy response should have HTTP status 200 + + Given a policy with policyId "integration-test-policy-2222" is registered for BPN "BPNL1234567890AB" and validUntil "1111-11-11T11:11:11.111Z" + Then the create policy response should have HTTP status 201 and policyId "integration-test-policy-2222" + + Given I add policyId "integration-test-policy-2222" to given BPNs using validUntil "1111-11-11T11:11:11.111Z": + | BPNL1234567890AB | + | BPNL1234567890CD | + Then the update policy response should have HTTP status 200 + + Given a policy with policyId "integration-test-policy-3333" is registered for BPN "BPNL1234567890CD" and validUntil "2222-11-11T11:11:11.111Z" + Then the create policy response should have HTTP status 201 and policyId "integration-test-policy-3333" + + Given a policy with policyId "integration-test-policy-4444" is registered for BPN "BPNL1234567890CD" and validUntil "2222-11-11T11:11:11.111Z" + Then the create policy response should have HTTP status 201 and policyId "integration-test-policy-4444" + + # check the testdata preconditions + When I successfully fetch all policies + Then the BPNs should be associated with policies as follows: + | BPN | policyId | + | BPNL1234567890AB | integration-test-policy-1111 | + | BPNL1234567890EF | integration-test-policy-1111 | + | BPNL1234567890AB | integration-test-policy-2222 | + | BPNL1234567890CD | integration-test-policy-2222 | + | BPNL1234567890CD | integration-test-policy-3333 | + | BPNL1234567890CD | integration-test-policy-4444 | + + # act and assert + When I delete the policy "integration-test-policy-2222" + Then the delete policy response should have HTTP status 200 + + When I delete the policy "integration-test-policy-3333" + Then the delete policy response should have HTTP status 200 + + When I delete the policy "integration-test-policy-4444" + Then the delete policy response should have HTTP status 200 + + When I successfully fetch all policies + Then the BPN "BPNL1234567890CD" should have 0 policies having policyId starting with "integration-test-policy-" + And the BPNs should be associated with policies as follows: + | BPN | policyId | + | BPNL1234567890AB | integration-test-policy-1111 | + | BPNL1234567890EF | integration-test-policy-1111 | + + #{*}Used testdataset{*}: — + #h3. Test Objective: + # + #__ + # * + #Fetching policies by BPNLs should fail for invalid BPNLs + # + #h3. Description: + # + #__ + # # Register policy + # # Fetch policies via BPNLs with some invalid BPNLs + # # Check that failed for the invalid BPNLs + # + #h3. Preconditions: + # + #__ + # # Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + # * *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment |https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + # * *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api admin + @TRI-1966 @TRI-873 @DEV @INTEGRATION_TEST + Scenario: 🔨🧩[DEV-TEST] Policy Store API: Fetching policies by BPNLs should fail for invalid BPNLs (bad case) + # cleanup + Given no policies with prefix "integration-test-policy-" exist + + # test data setup + Given a policy with policyId "integration-test-policy-1111" is registered for BPN "BPNL1234567890AB" and validUntil "1111-11-11T11:11:11.111Z" + Given a policy with policyId "integration-test-policy-2222" is registered for BPN "BPNL1234567890CD" and validUntil "2222-11-11T11:11:11.111Z" + Given a policy with policyId "integration-test-policy-3333" is registered for BPN "BPNL1234567890EF" and validUntil "3333-11-11T11:11:11.111Z" + + # act + When I fetch policies for BPNs: + | BPNL1234567890AB | + | BPNL1234567890CD | + Then the fetch policies for BPN response should have HTTP status 200 + + When I fetch policies for BPNs: + | BPNL1234567890CD | + | INVALID | + Then the fetch policies for BPN response should have HTTP status 400 + + When I fetch policies for BPNs: + | BPNACB | + Then the fetch policies for BPN response should have HTTP status 400 + + When I fetch policies for BPNs: + | ERRRES | + Then the fetch policies for BPN response should have HTTP status 400 + + When I fetch policies for BPNs: + | DELETE * FROM Table | + Then the fetch policies for BPN response should have HTTP status 400 \ No newline at end of file diff --git a/irs-cucumber-tests/src/test/resources/features/4_TRI-512_TRI-768.feature b/irs-cucumber-tests/src/test/resources/features/4_TRI-512_TRI-768.feature new file mode 100644 index 0000000000..f48ca499c8 --- /dev/null +++ b/irs-cucumber-tests/src/test/resources/features/4_TRI-512_TRI-768.feature @@ -0,0 +1,197 @@ +@TRI-512 +Feature: 👍 [AS_PLANNED] BomLifecycle 'asPlanned' implementation (1.0.0) + #*As* IRS-Consumer, + #*I want* to be able to traverse through a BOM as planned, + #*so that* I can use the IRS to access these structures. + # + #h2. Details: + #* [Details| https://confluence.catena-x.net/pages/viewpage.action?pageId=53248769] + #* (!) BOMAsPlanned : Update and extension of BOMAsPlanned is planned for Iteration 2. + #* (-) Traversal Aspect SingleLevelBomAsPlanned is used for bomLifecycle": "asPlanned" and direction "downwards" + #* (-) In case no aspect is choose by the api caller, default aspect "PartAsPlanned" is used for bomLifecycle "asPlanned" + # + #h2. Hint / Context :  + #---- + #* Check Semantic Hub for more detailed information about the Aspects + #* Aspects are: "PartAsPlanned“ and „SingleLevelBomAsPlanned“ + #* Contact Simon Schulz if further information is needed + #* Check if namespace starts with _io.catenax_ + #* "SingleLevelBomAsPlanned" results in QueryParameter => "bomLifecycle": "asPlanned", + #* update local Testdataset with reasonable Testdata (2 levels, 7 Component, each component has PartAsPlanned and SingleLevelBomAsPlanned with 2 children except level2 leafs) + #* use similar Structure as BomAsBuilt Dataset + #* https://confluence.catena-x.net/display/PL/Release+2+test+dataset%27s + #* Testdata: https://confluence.catena-x.net/display/PL/BoMAsPlanned+test+dataset version 1.3.4 asplanned alpha + # + # + #h2. TODO: + #---- + #* (-) implement functionality + #* (-) create Test-dataset for BoM as Planned data + #* (-) create Tests + #* (-) run Tests + #* (-) refactor API Documentation + # + #h2. Background: + #* (/) [~thomas.braun3@zf.com] will take care that testdata for BoM asPlanned are prepared. + #* (/) Aspect BoM asPlanned is already available. There is an update until Iteration 2 for . Version 1.0.0 + #* (/) Implementation BoM AsPlanned im IRS (Alignment Trace-X Implementation ESS in PI6) + #* (!) BoM As Planned will be extended Version 1.1.0 will be avaiable in iteration 2. + + Background: + #@TRI-768 + Given the IRS URL "https://irs.dev.demo.catena-x.net" + And the admin user api key + + + #*Used testdataset*: 1.5.0 + # + #h3. Test Objective: + # + #__ + # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. + # + #h3. Description: + # + #__ + # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer + # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. + # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer + # # Api consumer gets an item graph document with the results for the requested globalAssetId + # + #h3. Preconditions: + # + #__ + # # DT Twin Registry is up and running and contains valid test data set + # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints + # # EDC Consumer is set up and configures to the DT Registry and Submodel  + # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume + # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects + ## Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api consumer (role has t.b.d.) + @TRI-893 @TRI-1942 @TRI-873 @TRI-1843 @TRI-1770 @DEV @INTEGRATION_TEST @INTEGRATION_TEST_2.0.0 + Scenario: 🔨🧩[DEV-TEST] End 2 End for BomLifecycle 'asPlanned' Vehicle Model C for SAP [BPNL00000003AZQP] + Given I register an IRS job for globalAssetId "urn:uuid:65e1554e-e5cd-4560-bac1-1352582122fb" and BPN "BPNL00000003AZQP" + And collectAspects "true" + And depth 10 + And direction "downward" + And bomLifecycle "asPlanned" + And aspects : + | urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned | + When I get the job-id + Then I check, if the job has status "COMPLETED" within 20 minutes + And I check, if "relationships" are equal to "TRI-893-expected-relationships.json" + And I check, if "submodels" are equal to "TRI-893-expected-submodels.json" + + #*Used testdataset*: 1.5.0 + # + #h3. Test Objective: + # + #__ + # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. + # + #h3. Description: + # + #__ + # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer + # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. + # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer + # # Api consumer gets an item graph document with the results for the requested globalAssetId + # + #h3. Preconditions: + # + #__ + # # DT Twin Registry is up and running and contains valid test data set + # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints + # # EDC Consumer is set up and configures to the DT Registry and Submodel  + # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume + # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects + ## Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api consumer (role has t.b.d.) + @TRI-821 @TRI-1942 @TRI-873 @TRI-1843 @TRI-1770 @DEV @INTEGRATION_TEST + Scenario: 🪓🧩[DEV-TEST] End 2 End for BomLifecycle 'asPlanned' Vehicle Model A for BMW [BPNL00000003AYRE] + Given I register an IRS job for globalAssetId "urn:uuid:0733946c-59c6-41ae-9570-cb43a6e4c79e" and BPN "BPNL00000003AYRE" + And collectAspects "true" + And depth 10 + And direction "downward" + And bomLifecycle "asPlanned" + And aspects : + | urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned | + When I get the job-id + Then I check, if the job has status "COMPLETED" within 20 minutes + And I check, if "relationships" are equal to "TRI-821-expected-relationships.json" + And I check, if "submodels" are equal to "TRI-821-expected-submodels.json" + + #*Used testdataset*: 1.5.0 + # + #h3. Test Objective: + # + #__ + # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. + # + #h3. Description: + # + #__ + # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer + # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. + # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer + # # Api consumer gets an item graph document with the results for the requested globalAssetId + # + #h3. Preconditions: + # + #__ + # # DT Twin Registry is up and running and contains valid test data set + # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints + # # EDC Consumer is set up and configures to the DT Registry and Submodel  + # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume + # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects + ## Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api consumer (role has t.b.d.) + @TRI-891 @TRI-1942 @TRI-873 @TRI-1843 @TRI-1770 @DEV @INTEGRATION_TEST @INTEGRATION_TEST_2.0.0 + Scenario: 🔨🧩[DEV-TEST] End 2 End for BomLifecycle 'asPlanned' Vehicle Model B for MercedesBenz [BPNL00000003AVTH] + Given I register an IRS job for globalAssetId "urn:uuid:68904173-ad59-4a77-8412-3e73fcafbd8b" and BPN "BPNL00000003AVTH" + And collectAspects "true" + And depth 10 + And direction "downward" + And bomLifecycle "asPlanned" + And aspects : + | urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned | + When I get the job-id + Then I check, if the job has status "COMPLETED" within 20 minutes + And I check, if "relationships" are equal to "TRI-891-expected-relationships.json" + And I check, if "submodels" are equal to "TRI-891-expected-submodels.json" \ No newline at end of file diff --git a/irs-cucumber-tests/src/test/resources/features/5_TRI-768.feature b/irs-cucumber-tests/src/test/resources/features/5_TRI-768.feature new file mode 100644 index 0000000000..8f0a85a4b3 --- /dev/null +++ b/irs-cucumber-tests/src/test/resources/features/5_TRI-768.feature @@ -0,0 +1,459 @@ +Feature: Default + + Background: + #@TRI-768 + Given the IRS URL "https://irs.dev.demo.catena-x.net" + And the admin user api key + + + #h2. DEV + #||Key||Value|| + #|globalAssetId|urn:uuid:6d505432-8b31-4966-9514-4b753372683f| + #|BPNL|BPNL00000003AVTH| + # + #h3. Test Objective: + # + #__ + # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. + # + #h3. Description: + # + #__ + # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer + # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. + # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer + # # Api consumer gets an item graph document with the results for the requested globalAssetId + # + #h3. Preconditions: + # + #__ + # # DT Twin Registry is up and running and contains valid test data set + # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints + # # EDC Consumer is set up and configures to the DT Registry and Submodel  + # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume + # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects + ## Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api consumer (role has t.b.d.) + @TRI-767 @TRI-1942 @TRI-873 @TRI-1843 @TRI-1770 @TRI-1682 @DEV @INTEGRATION_TEST @TESTKEY + Scenario: 🔨🧩[DEV-TEST] End 2 End for OEM-B (MB) [BPN:BPNL00000003AVTH] (SerialPart 3.0.0, SingleLevelBomAsBuilt 3.0.0 , Batch 3.0.0) + Given I register an IRS job for globalAssetId "urn:uuid:8724338c-5c85-4c34-91eb-e2735d58fb0d" and BPN "BPNL00000003AVTH" + And collectAspects "true" + And lookupBPNs "false" + And depth 100 + And direction "downward" + And aspects : + | urn:samm:io.catenax.serial_part:3.0.0#SerialPart | + # | urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt | + #| urn:samm:io.catenax.just_in_sequence_part:3.0.0#JustInSequencePart | + # | urn:samm:io.catenax.batch:3.0.0#Batch | + When I get the job-id + Then I check, if the job has status "COMPLETED" within 20 minutes + And I check, if number of "tombstones" equals to "summary/asyncFetchedItems/failed" + And I check, if "summary" contains 175 completed and 0 failed items + And I check, if "bpn summary" contains 0 completed and 0 failed items + And I check, if "relationships" are equal to "TRI-767-expected-relationships.json" + And I check, if "submodels" are equal to "TRI-767-expected-submodels.json" + And I check, if submodels contains BPNL number "BPNL00000003AVTH" exactly 69 times + + #h2. DEV + #||Key||Value|| + #|globalAssetId|urn:uuid:c6d2d642-a055-4ddf-87e3-1a3b02c689e3| + #|BPNL|BPNL00000000BJTL| + #h3. Test Objective: + # + #__ + # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. + # + #h3. Description: + # + #__ + # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer + # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. + # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer + # # Api consumer gets an item graph document with the results for the requested globalAssetId + # + #h3. Preconditions: + # + #__ + # # DT Twin Registry is up and running and contains valid test data set + # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints + # # EDC Consumer is set up and configures to the DT Registry and Submodel  + # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume + # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects + # # Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + # * *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment |https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + # * *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api consumer (role has t.b.d.) + @TRI-1913 @TRI-1942 @TRI-1843 @TRI-1682 @TRI-1770 @TRI-873 @DEV @INTEGRATION_TEST + Scenario: 🔨🧩[DEV-TEST] End 2 End for aspects "3.0.0#JustInSequencePart", "3.0.0#SerialPart" with "1.0.0#PartSiteInformationAsBuilt" + Given I register an IRS job for globalAssetId "urn:uuid:c6d2d642-a055-4ddf-87e3-1a3b02c689e3" and BPN "BPNL00000000BJTL" + And aspects : + | urn:samm:io.catenax.just_in_sequence_part:3.0.0#JustInSequencePart | + | urn:samm:io.catenax.serial_part:3.0.0#SerialPart | + And collectAspects "true" + And lookupBPNs "false" + And depth 1 + And bomLifecycle "asPlanned" + And direction "downward" + When I get the job-id + Then I check, if the job has status "COMPLETED" within 20 minutes + And I check, if number of "tombstones" equals to "summary/asyncFetchedItems/failed" + And I check, if "summary" contains 1 completed and 0 failed items + And I check, if "submodels" are equal to "TRI-1913-expected-submodels.json" + + #h2. DEV + #||Key||Value|| + #|globalAssetId|urn:uuid:ee9b9c9e-1416-45a3-b683-d98d5d88e548| + #|BPNL|BPNL00000003AXS3| + #h3. Test Objective: + # + #__ + # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. + # + #h3. Description: + # + #__ + # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer + # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. + # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer + # # Api consumer gets an item graph document with the results for the requested globalAssetId + # + #h3. Preconditions: + # + #__ + # # DT Twin Registry is up and running and contains valid test data set + # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints + # # EDC Consumer is set up and configures to the DT Registry and Submodel  + # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume + # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects + # # Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + # * *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment |https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + # * *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api consumer (role has t.b.d.) + @TRI-1914 @TRI-1942 @TRI-1843 @TRI-1770 @TRI-1682 @TRI-873 @DEV @INTEGRATION_TEST + Scenario: 🔨🧩[DEV-TEST] End 2 End for aspects "3.0.0#Batch" with "1.0.0#PartSiteInformationAsBuilt" + Given I register an IRS job for globalAssetId "urn:uuid:ee9b9c9e-1416-45a3-b683-d98d5d88e548" and BPN "BPNL00000003AXS3" + And aspects : + | urn:samm:io.catenax.batch:3.0.0#Batch | + And collectAspects "true" + And lookupBPNs "false" + And depth 1 + And bomLifecycle "asBuilt" + And direction "downward" + When I get the job-id + Then I check, if the job has status "COMPLETED" within 20 minutes + And I check, if number of "tombstones" equals to "summary/asyncFetchedItems/failed" + And I check, if "summary" contains 1 completed and 0 failed items + And I check, if "submodels" are equal to "TRI-1914-expected-submodels.json" + + #h2. DEV + #||Key||Value|| + #|globalAssetId|urn:uuid:e5c96ab5-896a-482c-8761-efd74777ca97| + #|BPNL|BPNL00000003AYRE| + #h3. Test Objective: + # + #__ + # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. + # + #h3. Description: + # + #__ + # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer + # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. + # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer + # # Api consumer gets an item graph document with the results for the requested globalAssetId + # + #h3. Preconditions: + # + #__ + # # DT Twin Registry is up and running and contains valid test data set + # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints + # # EDC Consumer is set up and configures to the DT Registry and Submodel  + # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume + # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects + # # Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + # * *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment |https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + # * *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api consumer (role has t.b.d.) + @TRI-1915 @TRI-1942 @TRI-1843 @TRI-1682 @TRI-1770 @TRI-873 @DEV @INTEGRATION_TEST + Scenario: 🔨🧩[DEV-TEST] End 2 End for aspects "3.0.0#SingleLevelBomAsPlanned", "2.0.0#PartAsPlanned" + Given I register an IRS job for globalAssetId "urn:uuid:e5c96ab5-896a-482c-8761-efd74777ca97" and BPN "BPNL00000003AYRE" + And aspects : + | urn:samm:io.catenax.single_level_bom_as_planned:3.0.0#SingleLevelBomAsPlanned | + | urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned | + And collectAspects "true" + And lookupBPNs "false" + And depth 1 + And bomLifecycle "asPlanned" + And direction "downward" + When I get the job-id + Then I check, if the job has status "COMPLETED" within 20 minutes + And I check, if number of "tombstones" equals to "summary/asyncFetchedItems/failed" + And I check, if "summary" contains 3 completed and 0 failed items + And I check, if "submodels" are equal to "TRI-1915-expected-submodels.json" + + #*Used testdataset*: 1.6.0 + # + #h3. Test Objective: + # + #__ + # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. + # + #h3. Description: + # + #__ + # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer + # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. + # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer + # # Api consumer gets an item graph document with the results for the requested globalAssetId + # + #h3. Preconditions: + # + #__ + # # DT Twin Registry is up and running and contains valid test data set + # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints + # # EDC Consumer is set up and configures to the DT Registry and Submodel  + # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume + # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects + ## Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api consumer (role has t.b.d.) + @TRI-1647 @TRI-1942 @TRI-873 @TRI-1843 @TRI-1770 @TRI-1682 @DEV @INTEGRATION_TEST @INTEGRATION_TEST_2.0.0 + Scenario: 🪓🧩[DEV-TEST] End 2 End for aspect "TractionBatteryCode" + Given I register an IRS job for globalAssetId "urn:uuid:f204622a-f4f3-4be7-b255-06c27524984b" and BPN "BPNL00000003AVTH" + And collectAspects "true" + And depth 2 + And direction "downward" + And bomLifecycle "asBuilt" + And aspects : + | urn:samm:io.catenax.traction_battery_code:1.0.0#TractionBatteryCode | + When I get the job-id + Then I check, if the job has status "COMPLETED" within 20 minutes + And I check, if "submodels" are equal to "TRI-1647-expected-submodels.json" + + #h2. DEV + #||Key||Value|| + #|globalAssetId|urn:uuid:1ad0892a-59c1-4118-8b52-601540973f31| + #|BPNL|BPNL00000003CSGV| + #h3. Test Objective: + # + #__ + # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. + # + #h3. Description: + # + #__ + # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer + # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. + # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer + # # Api consumer gets an item graph document with the results for the requested globalAssetId + # + #h3. Preconditions: + # + #__ + # # DT Twin Registry is up and running and contains valid test data set + # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints + # # EDC Consumer is set up and configures to the DT Registry and Submodel  + # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume + # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects + # # Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + # * *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment |https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + # * *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api consumer (role has t.b.d.) + @TRI-1918 @TRI-1942 @TRI-1843 @TRI-1682 @TRI-1770 @TRI-873 @DEV @INTEGRATION_TEST + Scenario: 🔨🧩[DEV-TEST] End 2 End for aspects "3.0.0#SingleLevelBomAsBuilt" + Given I register an IRS job for globalAssetId "urn:uuid:1ad0892a-59c1-4118-8b52-601540973f31" and BPN "BPNL00000003CSGV" + And aspects : + | urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt | + And collectAspects "true" + And lookupBPNs "false" + And depth 1 + And bomLifecycle "asBuilt" + And direction "downward" + When I get the job-id + Then I check, if the job has status "COMPLETED" within 20 minutes + And I check, if number of "tombstones" equals to "summary/asyncFetchedItems/failed" + And I check, if "summary" contains 2 completed and 0 failed items + And I check, if "submodels" are equal to "TRI-1918-expected-submodels.json" + + #h2. DEV + #||Key||Value|| + #|globalAssetId|urn:uuid:e097c30e-9010-4eb9-8a8c-064736aceab8| + #|BPNL|BPNL00000003B2OM| + # + #h3. Test Objective: + # + #__ + # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. + # + #h3. Description: + # + #__ + # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer + # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. + # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer + # # Api consumer gets an item graph document with the results for the requested globalAssetId + # + #h3. Preconditions: + # + #__ + # # DT Twin Registry is up and running and contains valid test data set + # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints + # # EDC Consumer is set up and configures to the DT Registry and Submodel  + # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume + # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects + ## Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api consumer (role has t.b.d.) + @TRI-704 @TRI-1942 @TRI-873 @TRI-1843 @TRI-1770 @TRI-1682 @DEV @INTEGRATION_TEST + Scenario: 🔨🧩[DEV-TEST] End 2 End for Tier A (ZF) [BPN:BPNL00000003B2OM] (SerialPart 3.0.0, SingleLevelBomAsBuilt 3.0.0 , Batch 3.0.0) + Given I register an IRS job for globalAssetId "urn:uuid:e097c30e-9010-4eb9-8a8c-064736aceab8" and BPN "BPNL00000003B2OM" + And aspects : + | urn:samm:io.catenax.serial_part:3.0.0#SerialPart | + | urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt | + | urn:samm:io.catenax.batch:3.0.0#Batch | + | urn:samm:io.catenax.material_for_recycling:1.1.0#MaterialForRecycling | + And collectAspects "true" + And lookupBPNs "false" + And depth 100 + And direction "downward" + When I get the job-id + Then I check, if the job has status "COMPLETED" within 20 minutes + And I check, if number of "tombstones" equals to "summary/asyncFetchedItems/failed" + And I check, if "summary" contains 5 completed and 0 failed items + And I check, if "bpn summary" contains 4 completed and 0 failed items + And I check, if "relationships" are equal to "TRI-704-expected-relationships.json" + And I check, if "submodels" are equal to "TRI-704-expected-submodels.json" + And I check, if submodels contains BPNL number "BPNL00000003B2OM" exactly 1 times + + #h2. DEV + #||Key||Value|| + #|globalAssetId|urn:uuid:015aa300-f0ea-47cd-84d5-969f2cb2cf75| + #|BPNL| BPNL00000003B2OM | + # + # + #h3. Test Objective: + # + #__ + # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. + # + #h3. Description: + # + #__ + # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer + # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. + # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer + # # Api consumer gets an item graph document with the results for the requested globalAssetId + # + #h3. Preconditions: + # + #__ + # # DT Twin Registry is up and running and contains valid test data set + # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints + # # EDC Consumer is set up and configures to the DT Registry and Submodel  + # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume + # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects + ## Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api consumer (role has t.b.d.) + @TRI-528 @TRI-1942 @TRI-873 @TRI-1843 @TRI-1770 @TRI-1682 @DEV @INTEGRATION_TEST + Scenario: 🔨🧩[DEV-TEST] End 2 End for aspect "MaterialForRecycling" + Given I register an IRS job for globalAssetId "urn:uuid:015aa300-f0ea-47cd-84d5-969f2cb2cf75" and BPN "BPNL00000003B2OM" + And aspects : + | urn:samm:io.catenax.material_for_recycling:1.1.0#MaterialForRecycling | + And collectAspects "true" + And lookupBPNs "false" + And depth 1 + And direction "downward" + When I get the job-id + Then I check, if the job has status "COMPLETED" within 20 minutes + And I check, if number of "tombstones" equals to "summary/asyncFetchedItems/failed" + And I check, if "summary" contains 4 completed and 0 failed items + And I check, if "bpn summary" contains 3 completed and 0 failed items + And I check, if "relationships" are equal to "TRI-528-expected-relationships.json" + And I check, if "submodels" are equal to "TRI-528-expected-submodels.json" \ No newline at end of file diff --git a/irs-cucumber-tests/src/test/resources/features/6_TRI-1312_TRI-768.feature b/irs-cucumber-tests/src/test/resources/features/6_TRI-1312_TRI-768.feature new file mode 100644 index 0000000000..4ed686d122 --- /dev/null +++ b/irs-cucumber-tests/src/test/resources/features/6_TRI-1312_TRI-768.feature @@ -0,0 +1,88 @@ +@TRI-1312 +Feature: 👍 [SPIKE][PoC] Enable IRS for multiple LifeCycles (asBuilt & asSpecified) + #h2. User Story + # + #*As* CE Developer, + #*I want* to use the IRS to fetch multiple trees at the same time, + #*so that* the application Digital Product Pass can integrate the IRS. + #h2. Hints / Details / NFR (Technical, Design & Content) :  + # * contact [~kevin.tram@accenture.com] for further information + # * asBuilt and AsSpecified + # * downward + # * for one globalAssetID + # * [https://portal.int.demo.catena-x.net/semantichub/] SingleLevelBomAsSpecified BAMM 2.0.0 RELEASED + # * The Twin aspect for asSpecified is SerialPart + # + #h2. External dependencies (due date: 11.07.2023 ) + # * (x) [~sasan.baba-esfahani@bmw.de] & [~luis.rickert@accenture.com] provides testdata for asSpecified BOM --> in a first step: CE provides consistant Testdata files of aspect models Serial Part to SingleLevelBomAsSpecified + # * (x) [~sasan.baba-esfahani@bmw.de] & [~luis.rickert@accenture.com] provides a infrastructure Provider, EDC, dDTR to test the asSpecified BOM with on vehicle + # * (x) [~sasan.baba-esfahani@bmw.de] & [~luis.rickert@accenture.com] is added to testdata set as a new requirement + # * (x) [~sasan.baba-esfahani@bmw.de] & [~luis.rickert@accenture.com] adds asSpecified facets to INT environment + # + # + #h2. Hint + # !asSpecified.png|thumbnail! + # + # + #h2. TODO: + # * (-) Fill out description + # * (-) Fill out Story Points + # * (-) Assign an Assignee + # * (-) define Acceptance Criteria + # * (-) [DoR |https://confluence.catena-x.net/pages/viewpage.action?pageId=917505]  + + Background: + #@TRI-768 + Given the IRS URL "https://irs.dev.demo.catena-x.net" + And the admin user api key + + + #*Used testdataset*: 1.6.0 + # + #h3. Test Objective: + # + #__ + # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. + # + #h3. Description: + # + #__ + # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer + # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. + # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer + # # Api consumer gets an item graph document with the results for the requested globalAssetId + # + #h3. Preconditions: + # + #__ + # # DT Twin Registry is up and running and contains valid test data set + # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints + # # EDC Consumer is set up and configures to the DT Registry and Submodel  + # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume + # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects + ## Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api consumer (role has t.b.d.) + @TRI-1537 @TRI-1942 @TRI-873 @TRI-1843 @TRI-1770 @TRI-1682 @DEV @INTEGRATION_TEST + Scenario: 🪓🧩[DEV-TEST] End 2 End for aspect "JustInSequencePart" 🌟 + Given I register an IRS job for globalAssetId "urn:uuid:c6d2d642-a055-4ddf-87e3-1a3b02c689e3" and BPN "BPNL00000000BJTL" + And collectAspects "true" + And depth 10 + And direction "downward" + And bomLifecycle "asBuilt" + And aspects : + | urn:samm:io.catenax.just_in_sequence_part:1.0.0#JustInSequencePart | + When I get the job-id + Then I check, if the job has status "COMPLETED" within 20 minutes + And I check, if "submodels" are equal to "TRI-1537-expected-submodels.json" \ No newline at end of file diff --git a/irs-cucumber-tests/src/test/resources/features/7_TRI-982_TRI-768.feature b/irs-cucumber-tests/src/test/resources/features/7_TRI-982_TRI-768.feature new file mode 100644 index 0000000000..b5e59b9af0 --- /dev/null +++ b/irs-cucumber-tests/src/test/resources/features/7_TRI-982_TRI-768.feature @@ -0,0 +1,70 @@ +@TRI-982 +Feature: 👍 SingleLevelUsageAsBuilt ready to use on Dev environment + #*As a* Trace-X user + #*I want* to be able to send notification upwards in the supply chain + #*so that* I can tell my costumer, that there is an issue with a part + #h2. Hint: + # - Check the Model is correct + # - expected Result for a Battery Cell is to have several relations in the relationship array + # - Add testcase for objects focused in picture below + #!screenshot-2.png|thumbnail! + # + #*Sprint Planning 2* + # * Investigate on potential issue + # * Create testcase for expected result + + Background: + #@TRI-768 + Given the IRS URL "https://irs.dev.demo.catena-x.net" + And the admin user api key + + + #h2. DEV + #||Key||Value|| + #|globalAssetId|urn:uuid:e7777066-e453-4431-beb3-4e99d042f923| + # + #h3. Test Objective: + # + #__ + # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. + # + #h3. Description: + # + #__ + # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer + # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. + # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer + # # Api consumer gets an item graph document with the results for the requested globalAssetId + # + #h3. Preconditions: + # + #__ + # # DT Twin Registry is up and running and contains valid test data set + # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints + # # EDC Consumer is set up and configures to the DT Registry and Submodel  + # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume + # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects + ## Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api consumer (role has t.b.d.) + @TRI-1009 @TRI-1942 @TRI-873 @TRI-1843 @TRI-1770 @TRI-1682 @DEV @INTEGRATION_TEST + Scenario: 🔨🧩[DEV-TEST] End 2 End for upward direction and SingleLevelUsageAsBuilt ⌛ + Given I register an IRS job for globalAssetId "urn:uuid:e7777066-e453-4431-beb3-4e99d042f923" and BPN "BPNL00000003AVTH" + And direction "upward" + And lookupBPNs "false" + When I get the job-id + Then I check, if the job has status "COMPLETED" within 20 minutes + And I check, if "summary" contains 2 completed and 0 failed items + And I check, if "bpn summary" contains 1 completed and 0 failed items + And I check, if "relationships" are equal to "TRI-1009-expected-relationships.json" \ No newline at end of file diff --git a/irs-cucumber-tests/src/test/resources/features/8_TRI-1018_TRI-768.feature b/irs-cucumber-tests/src/test/resources/features/8_TRI-1018_TRI-768.feature new file mode 100644 index 0000000000..33854a6c18 --- /dev/null +++ b/irs-cucumber-tests/src/test/resources/features/8_TRI-1018_TRI-768.feature @@ -0,0 +1,152 @@ +@TRI-1018 +Feature: 🎏⭐⭐⭐ [27.03.2023] 👍 Batch Processing for a bunch of globalAssetIds + #h2. User Story + # + #*As* a system which calculates the Remaining Useful Life of a vehicle type based on a bunch of parts + #*I want* to pass a number of globalAssetId to the IRS in one API call + #*so that* a related research for parts are bundled in a single IRS api call + #h2. Outcome + # - + # + #h2. Hints / Details / . Hints & NFR (Technical, Design & Content))* :  + # + #* trigger callback, if applicable + # * Implement error handling (determine batch status based on aggregated job status) + # * Persist and load batches + # * Extend tavern tests to cover new API + # + #h2. Sprint Planning 2 (04.04.2023): + # * Review current PR first + # * Address any bugs found in review or on DEV/INT + # * Implement missing checksum (discuss feature with Martin + Jan first) + # * Implement timeouts + + Background: + #@TRI-768 + Given the IRS URL "https://irs.dev.demo.catena-x.net" + And the admin user api key + + + #*Used testdataset*: 1.5.0 + # + #h3. Test Objective: + # + #__ + # * Get job created by batch processing to check correct parameter. + # + #h3. Description: + # + #__ + # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer + # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. + # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer + # # Api consumer gets an item graph document with the results for the requested globalAssetId + # + #h3. Preconditions: + # + #__ + # # DT Twin Registry is up and running and contains valid test data set + # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints + # # EDC Consumer is set up and configures to the DT Registry and Submodel  + # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume + # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects + ## Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api consumer (role has t.b.d.) + @TRI-1267 @TRI-1942 @TRI-873 @TRI-1843 @TRI-1770 @DEV @INTEGRATION_TEST + Scenario: 🔨🧩[DEV-TEST] Check correct job executions of batch processing (SingleLevelBomAsBuilt/SerialPart 3.0.0) + Given I register an IRS batch job for globalAssetIds and BPNs: + | globalAssetId | bpn | + | urn:uuid:771d2ccc-a081-4d3a-bcb2-46c6a0a33743 | BPNL0000000XX0X0 | + | urn:uuid:3db730be-9de5-4db5-a58d-684de36484e7 | BPNL0000000XX0X0 | + | urn:uuid:73173bf5-08df-4898-9d6d-8899015c161e | BPNL0000000XX0X0 | + | urn:uuid:07e0997f-4212-4456-8f27-164b30fc8355 | BPNL0000000XX0X0 | + | urn:uuid:88f51be1-3771-4335-8b5c-4c5050123127 | BPNL0000000XX0X0 | + | urn:uuid:d3c0bf85-d44f-47c5-990d-fec8a36065c6 | BPNL0000000XX0X0 | + | urn:uuid:51ff7c73-34e9-45d4-816c-d92578843e68 | BPNL0000000XX0X0 | + | urn:uuid:b21cfd5b-dcf4-46fa-9227-3eb693567dd8 | BPNL0000000XX0X0 | + | urn:uuid:8f9d8c7f-6d7a-48f1-9959-9fa3a1a7a891 | BPNL0000000XX0X0 | + | urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd | BPNL0000000XX0X0 | + | urn:uuid:a4a26b9c-9460-4cc5-8645-85916b86adb0 | BPNL0000000XX0X0 | + | urn:uuid:7b87f5d6-f75e-40f1-a439-779ae9f57a21 | BPNL0000000XX0X0 | + | urn:uuid:8914a66e-b59b-405f-afff-b97d71ebece3 | BPNL0000000XX0X0 | + | urn:uuid:a1082992-cc3b-4da1-af6b-aa692ed71461 | BPNL0000000XX0X0 | + | urn:uuid:0ea1aa79-10d4-4df1-8a5a-5b7eafd26163 | BPNL0000000XX0X0 | + | urn:uuid:1e35e091-3d3d-421e-9c7e-14cf1c9442a6 | BPNL0000000XX0X0 | + | urn:uuid:cc8e9448-b294-46e7-8110-337e8bfa3001 | BPNL0000000XX0X0 | + | urn:uuid:fa5804f1-8d4e-437c-aca2-a5491be61758 | BPNL0000000XX0X0 | + | urn:uuid:a0f6803c-e4dc-4cda-8ad2-91cc57868449 | BPNL0000000XX0X0 | + | urn:uuid:492781f5-62ff-4fb2-876c-3498e2844d13 | BPNL0000000XX0X0 | + | urn:uuid:d6142601-5e09-45fe-9b42-e53cf8cd458c | BPNL0000000XX0X0 | + And collectAspects "true" + And depth 1 + And direction "downward" + And lookupBPNs "false" + And bomLifecycle "asBuilt" + And batchStrategy "PRESERVE_BATCH_JOB_ORDER" + And batchSize 10 + And callbackUrl "https://www.check123.com" + And aspects : + | urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt | + | urn:samm:io.catenax.serial_part:3.0.0#SerialPart | + + When I get the order-id + Then I check, if the order contains 3 batches + And I check, if batch 3 contains 1 job + #check batchNumber = 3 and jobsInBatchChecksum = 1 + + When I get the batch-id of "first" batch + Then I check, if the batch contains 10 jobs + And I check, if the batchNumber is 1 + And batchTotal is 3 + And totalJobs is 21 + And jobsInBatchChecksum is 10 + + When I get the "first" job-id from batch + Then I check, if job parameter are set with aspects: + | urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt | + | urn:samm:io.catenax.serial_part:3.0.0#SerialPart | + And collectAspects is "true" + And depth is 1 + And direction is "downward" + And lookupBPNs is "false" + And bomLifecycle is "asBuilt" + And callbackUrl is "https://www.check123.com" \ No newline at end of file diff --git a/irs-cucumber-tests/src/test/resources/features/9_TRI-512_TRI-817.feature b/irs-cucumber-tests/src/test/resources/features/9_TRI-512_TRI-817.feature new file mode 100644 index 0000000000..8e25a6248c --- /dev/null +++ b/irs-cucumber-tests/src/test/resources/features/9_TRI-512_TRI-817.feature @@ -0,0 +1,197 @@ +@TRI-512 +Feature: 👍 [AS_PLANNED] BomLifecycle 'asPlanned' implementation (1.0.0) + #*As* IRS-Consumer, + #*I want* to be able to traverse through a BOM as planned, + #*so that* I can use the IRS to access these structures. + # + #h2. Details: + #* [Details| https://confluence.catena-x.net/pages/viewpage.action?pageId=53248769] + #* (!) BOMAsPlanned : Update and extension of BOMAsPlanned is planned for Iteration 2. + #* (-) Traversal Aspect SingleLevelBomAsPlanned is used for bomLifecycle": "asPlanned" and direction "downwards" + #* (-) In case no aspect is choose by the api caller, default aspect "PartAsPlanned" is used for bomLifecycle "asPlanned" + # + #h2. Hint / Context :  + #---- + #* Check Semantic Hub for more detailed information about the Aspects + #* Aspects are: "PartAsPlanned“ and „SingleLevelBomAsPlanned“ + #* Contact Simon Schulz if further information is needed + #* Check if namespace starts with _io.catenax_ + #* "SingleLevelBomAsPlanned" results in QueryParameter => "bomLifecycle": "asPlanned", + #* update local Testdataset with reasonable Testdata (2 levels, 7 Component, each component has PartAsPlanned and SingleLevelBomAsPlanned with 2 children except level2 leafs) + #* use similar Structure as BomAsBuilt Dataset + #* https://confluence.catena-x.net/display/PL/Release+2+test+dataset%27s + #* Testdata: https://confluence.catena-x.net/display/PL/BoMAsPlanned+test+dataset version 1.3.4 asplanned alpha + # + # + #h2. TODO: + #---- + #* (-) implement functionality + #* (-) create Test-dataset for BoM as Planned data + #* (-) create Tests + #* (-) run Tests + #* (-) refactor API Documentation + # + #h2. Background: + #* (/) [~thomas.braun3@zf.com] will take care that testdata for BoM asPlanned are prepared. + #* (/) Aspect BoM asPlanned is already available. There is an update until Iteration 2 for . Version 1.0.0 + #* (/) Implementation BoM AsPlanned im IRS (Alignment Trace-X Implementation ESS in PI6) + #* (!) BoM As Planned will be extended Version 1.1.0 will be avaiable in iteration 2. + + Background: + #@TRI-817 + Given the IRS URL "https://irs.int.demo.catena-x.net" + And the admin user api key + + + #*Used testdataset*: 1.4.0 + # + #h3. Test Objective: + # + #__ + # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. + # + #h3. Description: + # + #__ + # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer + # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. + # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer + # # Api consumer gets an item graph document with the results for the requested globalAssetId + # + #h3. Preconditions: + # + #__ + # # DT Twin Registry is up and running and contains valid test data set + # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints + # # EDC Consumer is set up and configures to the DT Registry and Submodel  + # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume + # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects + ## Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api consumer (role has t.b.d.) + @TRI-872 @TRI-1452 @TRI-874 @INT @INTEGRATION_TEST @INTEGRATION_TEST_2.0.0 + Scenario: 🪓🧩[INT-TEST] End 2 End for BomLifecycle 'asPlanned' Vehicle Model A for BMW [BPNL00000003AYRE] + Given I register an IRS job for globalAssetId "urn:uuid:0733946c-59c6-41ae-9570-cb43a6e4c79e" and BPN "BPNL00000003AYRE" + And collectAspects "true" + And depth 10 + And direction "downward" + And bomLifecycle "asPlanned" + And aspects : + | urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned | + When I get the job-id + Then I check, if the job has status "COMPLETED" within 20 minutes + And I check, if "relationships" are equal to "TRI-872-expected-relationships.json" + And I check, if "submodels" are equal to "TRI-872-expected-submodels.json" + + #*Used testdataset*: 1.4.0 + # + #h3. Test Objective: + # + #__ + # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. + # + #h3. Description: + # + #__ + # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer + # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. + # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer + # # Api consumer gets an item graph document with the results for the requested globalAssetId + # + #h3. Preconditions: + # + #__ + # # DT Twin Registry is up and running and contains valid test data set + # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints + # # EDC Consumer is set up and configures to the DT Registry and Submodel  + # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume + # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects + ## Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api consumer (role has t.b.d.) + @TRI-894 @TRI-1452 @TRI-874 @INT @INTEGRATION_TEST @INTEGRATION_TEST_2.0.0 + Scenario: 🔨🧩[INT-TEST] End 2 End for BomLifecycle 'asPlanned' Vehicle Model C for SAP [BPNL00000003AZQP] + Given I register an IRS job for globalAssetId "urn:uuid:65e1554e-e5cd-4560-bac1-1352582122fb" and BPN "BPNL00000003AZQP" + And collectAspects "true" + And depth 10 + And direction "downward" + And bomLifecycle "asPlanned" + And aspects : + | urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned | + When I get the job-id + Then I check, if the job has status "COMPLETED" within 20 minutes + And I check, if "relationships" are equal to "TRI-894-expected-relationships.json" + And I check, if "submodels" are equal to "TRI-894-expected-submodels.json" + + #*Used testdataset*: 1.4.0 + # + #h3. Test Objective: + # + #__ + # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. + # + #h3. Description: + # + #__ + # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer + # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. + # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer + # # Api consumer gets an item graph document with the results for the requested globalAssetId + # + #h3. Preconditions: + # + #__ + # # DT Twin Registry is up and running and contains valid test data set + # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints + # # EDC Consumer is set up and configures to the DT Registry and Submodel  + # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume + # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects + ## Refer to *Hints* section for test Setup. + # + #h3. Hints: + # + #__ + # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] + # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] + #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] + #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. + # + #h3. Role: + # + #__ + # * IRS api consumer (role has t.b.d.) + @TRI-892 @TRI-1452 @TRI-874 @INT @INTEGRATION_TEST @INTEGRATION_TEST_2.0.0 + Scenario: 🔨🧩[INT-TEST] End 2 End for BomLifecycle 'asPlanned' Vehicle Model B for MercedesBenz [BPNL00000003AVTH] + Given I register an IRS job for globalAssetId "urn:uuid:68904173-ad59-4a77-8412-3e73fcafbd8b" and BPN "BPNL00000003AVTH" + And collectAspects "true" + And depth 10 + And direction "downward" + And bomLifecycle "asPlanned" + And aspects : + | urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned | + When I get the job-id + Then I check, if the job has status "COMPLETED" within 20 minutes + And I check, if "relationships" are equal to "TRI-892-expected-relationships.json" + And I check, if "submodels" are equal to "TRI-892-expected-submodels.json" \ No newline at end of file From 67109ae8afe92bc707d851160535d097e869e147 Mon Sep 17 00:00:00 2001 From: ds-kgassner Date: Thu, 16 May 2024 10:26:48 +0200 Subject: [PATCH 6/8] fix(featurefiles): [#503] removing feature files --- .../resources/features/10_TRI-817.feature | 250 --------- .../resources/features/1_TRI-1616.feature | 271 --------- .../features/2_TRI-1577_TRI-768.feature | 107 ---- .../resources/features/3_TRI-1949.feature | 527 ------------------ .../features/4_TRI-512_TRI-768.feature | 197 ------- .../test/resources/features/5_TRI-768.feature | 459 --------------- .../features/6_TRI-1312_TRI-768.feature | 88 --- .../features/7_TRI-982_TRI-768.feature | 70 --- .../features/8_TRI-1018_TRI-768.feature | 152 ----- .../features/9_TRI-512_TRI-817.feature | 197 ------- 10 files changed, 2318 deletions(-) delete mode 100644 irs-cucumber-tests/src/test/resources/features/10_TRI-817.feature delete mode 100644 irs-cucumber-tests/src/test/resources/features/1_TRI-1616.feature delete mode 100644 irs-cucumber-tests/src/test/resources/features/2_TRI-1577_TRI-768.feature delete mode 100644 irs-cucumber-tests/src/test/resources/features/3_TRI-1949.feature delete mode 100644 irs-cucumber-tests/src/test/resources/features/4_TRI-512_TRI-768.feature delete mode 100644 irs-cucumber-tests/src/test/resources/features/5_TRI-768.feature delete mode 100644 irs-cucumber-tests/src/test/resources/features/6_TRI-1312_TRI-768.feature delete mode 100644 irs-cucumber-tests/src/test/resources/features/7_TRI-982_TRI-768.feature delete mode 100644 irs-cucumber-tests/src/test/resources/features/8_TRI-1018_TRI-768.feature delete mode 100644 irs-cucumber-tests/src/test/resources/features/9_TRI-512_TRI-817.feature diff --git a/irs-cucumber-tests/src/test/resources/features/10_TRI-817.feature b/irs-cucumber-tests/src/test/resources/features/10_TRI-817.feature deleted file mode 100644 index e34ada370a..0000000000 --- a/irs-cucumber-tests/src/test/resources/features/10_TRI-817.feature +++ /dev/null @@ -1,250 +0,0 @@ -Feature: Default - - Background: - #@TRI-817 - Given the IRS URL "https://irs.int.demo.catena-x.net" - And the admin user api key - - - #h2. INT  - #||Key||Value|| - #|globalAssetId|urn:uuid:334cce52-1f52-4bc9-9dd1-410bbe497bbc| - #|BPNL|BPNL00000003B2OM| - # - #h3. Test Objective: - # - #__ - # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. - # - #h3. Description: - # - #__ - # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer - # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. - # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer - # # Api consumer gets an item graph document with the results for the requested globalAssetId - # - #h3. Preconditions: - # - #__ - # # DT Twin Registry is up and running and contains valid test data set - # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints - # # EDC Consumer is set up and configures to the DT Registry and Submodel  - # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume - # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects - ## Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api consumer (role has t.b.d.) - @TRI-818 @TRI-1452 @TRI-874 @INT @INTEGRATION_TEST @[INT-TEST] - Scenario: 🔨🧩[INT-TEST] End 2 End for Tier A (ZF) [BPN:BPNL00000003B2OM] - Given I register an IRS job for globalAssetId "urn:uuid:334cce52-1f52-4bc9-9dd1-410bbe497bbc" and BPN "BPNL00000003B2OM" - And aspects : - | urn:bamm:io.catenax.serial_part:1.0.1#SerialPart | - | urn:bamm:io.catenax.single_level_bom_as_built:2.0.0#SingleLevelBomAsBuilt | - | urn:samm:io.catenax.batch:2.0.0#Batch | - | urn:bamm:io.catenax.material_for_recycling:1.1.0#MaterialForRecycling | - And collectAspects "true" - And lookupBPNs "false" - And depth 100 - And direction "downward" - When I get the job-id - Then I check, if the job has status "COMPLETED" within 20 minutes - And I check, if number of "tombstones" equals to "summary/asyncFetchedItems/failed" - And I check, if "summary" contains 12 completed and 0 failed items - And I check, if "bpn summary" contains 4 completed and 0 failed items - And I check, if "relationships" are equal to "TRI-704-expected-relationships.json" - And I check, if "submodels" are equal to "TRI-704-expected-submodels.json" - And I check, if submodels contains BPNL number "BPNL00000003B2OM" exactly 1 times - - #h2. INT  - #||Key||Value|| - #|globalAssetId|urn:uuid:ed333e9a-5afa-40b2-99da-bae2fd21501e| - #|BPNL|BPNL00000003AVTH| - # - #h3. Test Objective: - # - #__ - # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. - # - #h3. Description: - # - #__ - # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer - # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. - # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer - # # Api consumer gets an item graph document with the results for the requested globalAssetId - # - #h3. Preconditions: - # - #__ - # # DT Twin Registry is up and running and contains valid test data set - # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints - # # EDC Consumer is set up and configures to the DT Registry and Submodel  - # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume - # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects - ## Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api consumer (role has t.b.d.) - @TRI-1070 @TRI-1452 @TRI-874 @INT @INTEGRATION_TEST @INTEGRATION_TEST_2.0.0 - Scenario: 🔨🧩[INT-TEST] End 2 End for OEM B (Mercedes Benz) [BPN: BPNL00000003AVTH] - Given I register an IRS job for globalAssetId "urn:uuid:ed333e9a-5afa-40b2-99da-bae2fd21501e" and BPN "BPNL00000003AVTH" - And aspects : - | urn:bamm:io.catenax.serial_part:1.0.1#SerialPart | - | urn:bamm:io.catenax.single_level_bom_as_built:2.0.0#SingleLevelBomAsBuilt | - | urn:samm:io.catenax.batch:2.0.0#Batch | - | urn:bamm:io.catenax.material_for_recycling:1.1.0#MaterialForRecycling | - | urn:bamm:io.catenax.physical_dimension:1.0.0#PhysicalDimension | - And collectAspects "true" - And lookupBPNs "false" - And depth 10 - And direction "downward" - When I get the job-id - Then I check, if the job has status "COMPLETED" within 20 minutes - And I check, if number of "tombstones" equals to "summary/asyncFetchedItems/failed" - And I check, if "summary" contains 35 completed and 0 failed items - And I check, if "bpn summary" contains 35 completed and 0 failed items - And I check, if "relationships" are equal to "TRI-1070-expected-relationships.json" - And I check, if "submodels" are equal to "TRI-1070-expected-submodels.json" - And I check, if submodels contains BPNL number "BPNL00000003AVTH" exactly 35 times - - #h2. INT  - #||Key||Value|| - #|globalAssetId|urn:uuid:6d505432-8b31-4966-9514-4b753372683f| - #|BPNL|BPNL00000003AVTH| - # - #h3. Test Objective: - # - #__ - # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. - # - #h3. Description: - # - #__ - # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer - # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. - # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer - # # Api consumer gets an item graph document with the results for the requested globalAssetId - # - #h3. Preconditions: - # - #__ - # # DT Twin Registry is up and running and contains valid test data set - # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints - # # EDC Consumer is set up and configures to the DT Registry and Submodel  - # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume - # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects - ## Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api consumer (role has t.b.d.) - @TRI-819 @TRI-1452 @TRI-874 @TEST-315 @INT @INTEGRATION_TEST @[INT-TEST] - Scenario: 🔨🧩[INT-TEST] End 2 End for OEM-B (MB) [BPN:BPNL00000003AVTH] - Given I register an IRS job for globalAssetId "urn:uuid:6d505432-8b31-4966-9514-4b753372683f" and BPN "BPNL00000003AVTH" - And collectAspects "true" - And lookupBPNs "false" - And depth 100 - And direction "downward" - And aspects : - | urn:bamm:io.catenax.serial_part:1.0.1#SerialPart | - | urn:bamm:io.catenax.single_level_bom_as_built:2.0.0#SingleLevelBomAsBuilt | - | urn:samm:io.catenax.batch:2.0.0#Batch | - When I get the job-id - Then I check, if the job has status "COMPLETED" within 20 minutes - And I check, if number of "tombstones" equals to "summary/asyncFetchedItems/failed" - And I check, if "summary" contains 271 completed and 0 failed items - And I check, if "bpn summary" contains 83 completed and 0 failed items - And I check, if "relationships" are equal to "TRI-767-expected-relationships.json" - And I check, if "submodels" are equal to "TRI-767-expected-submodels.json" - And I check, if submodels contains BPNL number "BPNL00000003AVTH" exactly 69 times - - #h2. INT  - #||Key||Value|| - #|globalAssetId|urn:uuid:e95f3ff2-c5e7-49a5-873b-aee2728917d3| - #|BPNL| BPNL00000003B2OM | - # - # - # - #h3. Test Objective: - # - #__ - # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. - # - #h3. Description: - # - #__ - # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer - # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. - # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer - # # Api consumer gets an item graph document with the results for the requested globalAssetId - # - #h3. Preconditions: - # - #__ - # # DT Twin Registry is up and running and contains valid test data set - # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints - # # EDC Consumer is set up and configures to the DT Registry and Submodel  - # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume - # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects - ## Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api consumer (role has t.b.d.) - @TRI-820 @TRI-1452 @TRI-874 @INT @INTEGRATION_TEST @[INT-TEST] - Scenario: 🔨🧩[INT-TEST] End 2 End for aspect "MaterialForRecycling" - Given I register an IRS job for globalAssetId "urn:uuid:e95f3ff2-c5e7-49a5-873b-aee2728917d3" and BPN "BPNL00000003B2OM" - And aspects : - | urn:bamm:io.catenax.material_for_recycling:1.1.0#MaterialForRecycling | - And collectAspects "true" - And lookupBPNs "false" - And depth 100 - And direction "downward" - When I get the job-id - Then I check, if the job has status "COMPLETED" within 20 minutes - And I check, if number of "tombstones" equals to "summary/asyncFetchedItems/failed" - And I check, if "summary" contains 5 completed and 3 failed items - And I check, if "bpn summary" contains 4 completed and 0 failed items - And I check, if "relationships" are equal to "TRI-528-expected-relationships.json" - And I check, if "submodels" are equal to "TRI-528-expected-submodels.json" - #And I check, if submodels contains BPNL number "BPNL00000003B2OM" exactly 1 times \ No newline at end of file diff --git a/irs-cucumber-tests/src/test/resources/features/1_TRI-1616.feature b/irs-cucumber-tests/src/test/resources/features/1_TRI-1616.feature deleted file mode 100644 index 6509589eb4..0000000000 --- a/irs-cucumber-tests/src/test/resources/features/1_TRI-1616.feature +++ /dev/null @@ -1,271 +0,0 @@ -Feature: Default - - Background: - #@TRI-1616 - Given the IRS URL "https://irs-dil.dev.demo.catena-x.net" - And the admin user api key - - - #*Used testdata* from TRI-1291. - # - #*TBD:* - #h3. Test Objective: - # - #__ - # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. - # - #h3. Description: - # - #__ - # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer - # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. - # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer - # # Api consumer gets an item graph document with the results for the requested globalAssetId - # - #h3. Preconditions: - # - #__ - # # DT Twin Registry is up and running and contains valid test data set - # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints - # # EDC Consumer is set up and configures to the DT Registry and Submodel  - # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume - # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects - ## Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api consumer (role has t.b.d.) - @TRI-1564 @TRI-1942 @TRI-873 @TRI-1843 @DIL @INTEGRATION_TEST @INTEGRATION_TEST_2.0.0 - Scenario: 🔨🧩[DIL] Check data integrity use case with one changed part - Given I register an IRS job for globalAssetId "urn:uuid:05abf6ff-8c78-4b72-948b-40e08e9b83f3" and BPN "BPNL00000003AZQP" - And integrityCheck "true" - And collectAspects "true" - And aspects : - | urn:bamm:io.catenax.serial_part:1.0.1#SerialPart | - When I get the job-id - Then I check, if the job has status "COMPLETED" within 10 minutes - # And I check, if "part-changed" tombstones for data integrity are existing - And I check, if integrityState is "INVALID" - - #Vehicle A - #urn:uuid:a1fa0f85-697d-4c9d-982f-2501af8e8636 - #Complete and valid integrity aspects - # - #Vehicle B - #urn:uuid:05abf6ff-8c78-4b72-948b-40e08e9b83f3 - #1 Part urn:uuid:dc60fc50-c875-4ce6-a1b9-d59c4c1e0b17 has payload which changed after the hash was created - # - #Vehicle C - ##urn:uuid:17e11d67-0315-4504-82cd-8e70a8c33a6a - #Signatures for Part urn:uuid:8c437b9d-f1b8-4397-b030-c3637eaf9b53 were created with a different private key - # - #Vehicle D - #urn:uuid:5672e8ff-8a73-425e-b2a5-5561b5b21d7a - #IntegrityAspect for part urn:uuid:ef3865b8-6811-4659-a1b5-e186f8e42258 is missing - - #*Used testdata* from TRI-1291. - # - #*TBD:* - #h3. Test Objective: - # - #__ - # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. - # - #h3. Description: - # - #__ - # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer - # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. - # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer - # # Api consumer gets an item graph document with the results for the requested globalAssetId - # - #h3. Preconditions: - # - #__ - # # DT Twin Registry is up and running and contains valid test data set - # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints - # # EDC Consumer is set up and configures to the DT Registry and Submodel  - # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume - # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects - ## Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api consumer (role has t.b.d.) - @TRI-1565 @TRI-1942 @TRI-873 @TRI-1843 @DIL @INTEGRATION_TEST @INTEGRATION_TEST_2.0.0 - Scenario: 🔨🧩[DIL] Check data integrity use case with one part created with different private key - Given I register an IRS job for globalAssetId "urn:uuid:17e11d67-0315-4504-82cd-8e70a8c33a6a" and BPN "BPNL00000003AZQP" - And integrityCheck "true" - And aspects : - | urn:bamm:io.catenax.single_level_bom_as_built:2.0.0#SingleLevelBomAsBuilt | - When I get the job-id - Then I check, if the job has status "COMPLETED" within 10 minutes - #And I check, if "different private key" tombstones for data integrity are existing - And I check, if integrityState is "INVALID" - - #Vehicle A - #urn:uuid:a1fa0f85-697d-4c9d-982f-2501af8e8636 - #Complete and valid integrity aspects - # - #Vehicle B - #urn:uuid:05abf6ff-8c78-4b72-948b-40e08e9b83f3 - #1 Part urn:uuid:dc60fc50-c875-4ce6-a1b9-d59c4c1e0b17 has payload which changed after the hash was created - # - #Vehicle C - #urn:uuid:17e11d67-0315-4504-82cd-8e70a8c33a6a - #Signatures for Part urn:uuid:8c437b9d-f1b8-4397-b030-c3637eaf9b53 were created with a different private key - # - #Vehicle D - #urn:uuid:5672e8ff-8a73-425e-b2a5-5561b5b21d7a - #IntegrityAspect for part urn:uuid:ef3865b8-6811-4659-a1b5-e186f8e42258 is missing - - #*Used testdata* from TRI-1291. - # - #*TBD:* - #h3. Test Objective: - # - #__ - # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. - # - #h3. Description: - # - #__ - # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer - # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. - # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer - # # Api consumer gets an item graph document with the results for the requested globalAssetId - # - #h3. Preconditions: - # - #__ - # # DT Twin Registry is up and running and contains valid test data set - # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints - # # EDC Consumer is set up and configures to the DT Registry and Submodel  - # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume - # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects - ## Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api consumer (role has t.b.d.) - @TRI-1566 @TRI-1942 @TRI-873 @TRI-1843 @DIL @INTEGRATION_TEST @INTEGRATION_TEST_2.0.0 - Scenario: 🔨🧩[DIL] Check data integrity use case with missing integrity aspect for one part - Given I register an IRS job for globalAssetId "urn:uuid:5672e8ff-8a73-425e-b2a5-5561b5b21d7a" and BPN "BPNL00000003AZQP" - And integrityCheck "true" - And collectAspects "true" - And aspects : - | urn:bamm:io.catenax.serial_part:1.0.1#SerialPart | - | urn:bamm:io.catenax.single_level_bom_as_built:2.0.0#SingleLevelBomAsBuilt | - When I get the job-id - Then I check, if the job has status "COMPLETED" within 10 minutes - #And I check, if "missing integrity aspect" tombstones for data integrity are existing - And I check, if integrityState is "INVALID" - - #Vehicle A - #urn:uuid:a1fa0f85-697d-4c9d-982f-2501af8e8636 - #Complete and valid integrity aspects - # - #Vehicle B - #urn:uuid:05abf6ff-8c78-4b72-948b-40e08e9b83f3 - #1 Part urn:uuid:dc60fc50-c875-4ce6-a1b9-d59c4c1e0b17 has payload which changed after the hash was created - # - #Vehicle C - #urn:uuid:17e11d67-0315-4504-82cd-8e70a8c33a6a - #Signatures for Part urn:uuid:8c437b9d-f1b8-4397-b030-c3637eaf9b53 were created with a different private key - # - #Vehicle D - #urn:uuid:5672e8ff-8a73-425e-b2a5-5561b5b21d7a - #IntegrityAspect for part urn:uuid:ef3865b8-6811-4659-a1b5-e186f8e42258 is missing - - #*Used testdata* from TRI-1291. - # - #*TBD:* - #h3. Test Objective: - # - #__ - # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. - # - #h3. Description: - # - #__ - # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer - # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. - # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer - # # Api consumer gets an item graph document with the results for the requested globalAssetId - # - #h3. Preconditions: - # - #__ - # # DT Twin Registry is up and running and contains valid test data set - # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints - # # EDC Consumer is set up and configures to the DT Registry and Submodel  - # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume - # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects - ## Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api consumer (role has t.b.d.) - @TRI-1563 @TRI-1942 @TRI-873 @TRI-1843 @DIL @INTEGRATION_TEST @INTEGRATION_TEST_2.0.0 - Scenario: 🔨🧩[DIL] Check data integrity use case with complete and valid integrity aspects - Given I register an IRS job for globalAssetId "urn:uuid:a1fa0f85-697d-4c9d-982f-2501af8e8636" and BPN "BPNL00000003AZQP" - And integrityCheck "true" - And aspects : - | urn:bamm:io.catenax.serial_part:1.0.1#SerialPart | - | urn:bamm:io.catenax.single_level_bom_as_built:2.0.0#SingleLevelBomAsBuilt | - When I get the job-id - Then I check, if the job has status "COMPLETED" within 10 minutes - #And I check, if "no" tombstones for data integrity are existing - And I check, if integrityState is "VALID" - - #Vehicle A - #urn:uuid:a1fa0f85-697d-4c9d-982f-2501af8e8636 - #Complete and valid integrity aspects - # - #Vehicle B - #urn:uuid:05abf6ff-8c78-4b72-948b-40e08e9b83f3 - #1 Part urn:uuid:dc60fc50-c875-4ce6-a1b9-d59c4c1e0b17 has payload which changed after the hash was created - # - #Vehicle C - ##urn:uuid:17e11d67-0315-4504-82cd-8e70a8c33a6a - #Signatures for Part urn:uuid:8c437b9d-f1b8-4397-b030-c3637eaf9b53 were created with a different private key - # - #Vehicle D - #urn:uuid:5672e8ff-8a73-425e-b2a5-5561b5b21d7a - #IntegrityAspect for part urn:uuid:ef3865b8-6811-4659-a1b5-e186f8e42258 is missing \ No newline at end of file diff --git a/irs-cucumber-tests/src/test/resources/features/2_TRI-1577_TRI-768.feature b/irs-cucumber-tests/src/test/resources/features/2_TRI-1577_TRI-768.feature deleted file mode 100644 index 31f8166105..0000000000 --- a/irs-cucumber-tests/src/test/resources/features/2_TRI-1577_TRI-768.feature +++ /dev/null @@ -1,107 +0,0 @@ -@TRI-1577 -Feature: 👍[RELEASE_3.2.0][HOTFIX] Update Batch Aspectmodel v. 2.0.0 - #h2. Business Value - # # (y) [ ] *User-business value:* - # # (y) [ ] *Risk reduction:* - # # (y) [x] *Regulatory value:* - # # (y) [ ] *Commercial value:* - # # (y) [ ] *Market value:* - # # (y) [ ] *Efficiency value:* - # # (y) [ ] *Future value:* - # - #h2. User Story - # - #*As a PO* - #*I want to fullfill the compliance guardrails* - #*so that _our application / project have success_* - #h2. Outcome - # - (/) aspect model for batch updated to version 2.0.0 >> IRS no longer uses Aspect Models Batch or SerialPart in Code so these changes are solely for plain submodels. I verified locally that Batch 2.0.0 is sucessfully passed in "submodels" in the job response, using the example payload generated from the .ttl files of - # - (/) Extend the IRS testdata file with new batch model 2.0.0 >> see [PR #502|https://github.com/catenax-ng/tx-item-relationship-service/pull/502] - # - (/) Test adjusted testdata new on Batch semantic model (Environment: DEV) >> We are still depending from the testdata set -> Requirement defined TDG-26 - # - (/) Add a new story for removal Batch and SerialPart dependencies from code (FUP) >> No follow up is required there are no changes necessary - # - (/) Check if SubmodelModels are still needed if in the case it is create a new story to get rid of this code >> IRS no longer uses Aspect Models Batch or SerialPart in Code so these changes are solely for plain submodels. I verified locally that Batch 2.0.0 is sucessfully passed in "submodels" in the job response, using the example payload generated from the .ttl files of - # - (/) Cucumber tests are adjusted to new batch models >> Show successfully execution of cucumber tests [~alexander.bulgakov@partner.doubleslash.de] -> See execution [TRI-1603|https://jira.catena-x.net/secure/XrayExecuteTest!default.jspa?testExecIssueKey=TRI-1603&testIssueKey=TRI-1598] - # - #h2. Hints / Details : - # * PR for Batch Aspect [https://github.com/eclipse-tractusx/sldt-semantic-models/pull/286] - # - #Changers: - # - Semantic ID will change - # - customerPartId deleted - # - nameAtCustomer deleted - # - #h2. NFR - #h2. Dependency - # # (?) [ ] * Portal / Access Management - # # (?) [ ] * Testdata Management - # # (?) [ ] * Test Management AND/OR Release Management - # # (?) [ ] * Semantic Model Teams - # # (?) [ ] * EDC - # # (?) [ ] * Decentral twin infrastructure (discovery finders * ) - # # (?) [ ] * IRS - # # (?) [ ] * To be extended .... - # - #h2. TODO: - # * (-) Fill out description - # * (-) Fill out Story Points - # * (-) (Assign an Assignee - might be done during the Sprint) - # * (-) define Acceptance Criteria - # * (-) [DoR |https://confluence.catena-x.net/pages/viewpage.action?pageId=917505] - - Background: - #@TRI-768 - Given the IRS URL "https://irs.dev.demo.catena-x.net" - And the admin user api key - - - #*Used testdataset*: 1.5.3 - # - #h3. Test Objective: - # - #__ - # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. - # - #h3. Description: - # - #__ - # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer - # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. - # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer - # # Api consumer gets an item graph document with the results for the requested globalAssetId - # - #h3. Preconditions: - # - #__ - # # DT Twin Registry is up and running and contains valid test data set - # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints - # # EDC Consumer is set up and configures to the DT Registry and Submodel  - # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume - # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects - ## Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api consumer (role has t.b.d.) - @TRI-1598 @TRI-1843 @TRI-1942 @TRI-873 @TRI-1770 @TRI-1682 @DEV @INTEGRATION_TEST - Scenario: 🔨🧩[DEV-TEST] BomLifecycle 'asBuilt' for testing "Batch"-Model [BPNL00000003AVTH] 🌟 - Given I register an IRS job for globalAssetId "urn:uuid:8724338c-5c85-4c34-91eb-e2735d58fb0d" and BPN "BPNL00000003AVTH" - And collectAspects "true" - And depth 10 - And direction "downward" - And bomLifecycle "asBuilt" - And lookupBPNs "false" - And aspects : - | urn:samm:io.catenax.batch:3.0.0#Batch | - When I get the job-id - Then I check, if the job has status "COMPLETED" within 20 minutes - And I check, if "relationships" are equal to "TRI-1598-expected-relationships.json" - And I check, if "submodels" are equal to "TRI-1598-expected-submodels.json" \ No newline at end of file diff --git a/irs-cucumber-tests/src/test/resources/features/3_TRI-1949.feature b/irs-cucumber-tests/src/test/resources/features/3_TRI-1949.feature deleted file mode 100644 index 9ed1f8d9be..0000000000 --- a/irs-cucumber-tests/src/test/resources/features/3_TRI-1949.feature +++ /dev/null @@ -1,527 +0,0 @@ -Feature: Default - - Background: - #@TRI-1949 - Given the IRS URL "https://irs.dev.demo.catena-x.net/" -- policystore - And the admin user api key -- policystore - - - #{*}Used testdataset{*}: — - #h3. Test Objective: - # - #__ - # * Register policies for different BPNLs - # - #h3. Description: - # - #__ - # # Register policies (for associating with more than one BPNL POST + UPDATE is needed) - # # Get all policies and get policies for BPNLs and check - # - #h3. Preconditions: - # - #__ - # # Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - # * *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment |https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - # * *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api admin - @TRI-1950 @TRI-873 @DEV @INTEGRATION_TEST - Scenario: 🔨🧩[DEV-TEST] Policy Store API: Register policies - # cleanup - Given no policies with prefix "integration-test-policy-" exist - - # act and assert - Given I want to register a policy with policyId "integration-test-policy-1111" - And the policy should be associated to BPN "BPNL1234567890AB" - And the policy should have validUntil "1111-11-11T11:11:11.111Z" - When I register the policy - Then the create policy response should have HTTP status 201 and policyId "integration-test-policy-1111" - - Given I want to register a policy with policyId "integration-test-policy-2222" - And the policy should be associated to the following BPNs: - | BPNL1234567890AB | - | BPNL1234567890CD | - And the policy should have validUntil "2222-11-11T11:11:11.111Z" - When I register the policy - Then the create policy response should have HTTP status 201 and policyId "integration-test-policy-2222" - - When a policy with policyId "integration-test-policy-3333" is registered for BPN "BPNL1234567890CD" and validUntil "3333-11-11T11:11:11.111Z" - Then the create policy response should have HTTP status 201 and policyId "integration-test-policy-3333" - - When a policy with policyId "integration-test-policy-4444" is registered for BPN "BPNL1234567890CD" and validUntil "4444-11-11T11:11:11.111Z" - Then the create policy response should have HTTP status 201 and policyId "integration-test-policy-4444" - - When I successfully fetch all policies - Then the BPNs should be associated with policies as follows: - | BPN | policyId | - | BPNL1234567890AB | integration-test-policy-1111 | - | BPNL1234567890AB | integration-test-policy-2222 | - | BPNL1234567890CD | integration-test-policy-2222 | - | BPNL1234567890CD | integration-test-policy-3333 | - | BPNL1234567890CD | integration-test-policy-4444 | - - When I fetch policies for BPNs: - | BPNL1234567890AB | - Then the fetch policies for BPN response should have HTTP status 200 - And the BPNs should be associated with policies as follows: - | BPN | policyId | - | BPNL1234567890AB | integration-test-policy-1111 | - | BPNL1234567890AB | integration-test-policy-2222 | - - When I fetch policies for BPNs: - | BPNL1234567890CD | - Then the fetch policies for BPN response should have HTTP status 200 - And the BPNs should be associated with policies as follows: - | BPN | policyId | - | BPNL1234567890CD | integration-test-policy-2222 | - | BPNL1234567890CD | integration-test-policy-3333 | - | BPNL1234567890CD | integration-test-policy-4444 | - - When I fetch policies for BPNs: - | BPNL1234567890AB | - | BPNL1234567890CD | - Then the fetch policies for BPN response should have HTTP status 200 - And the BPNs should be associated with policies as follows: - | BPN | policyId | - | BPNL1234567890AB | integration-test-policy-1111 | - | BPNL1234567890AB | integration-test-policy-2222 | - | BPNL1234567890CD | integration-test-policy-2222 | - | BPNL1234567890CD | integration-test-policy-3333 | - | BPNL1234567890CD | integration-test-policy-4444 | - - #{*}Used testdataset{*}: — - #h3. Test Objective: - # - #__ - # * Update a policies validUntil date and check if successful - # - #h3. Description: - # - #__ - # # Register a policy - # # Update its validUntil - # # Assert that update was successful - # - #h3. Preconditions: - # - #__ - # # Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - # * *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment |https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - # * *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api admin - @TRI-1951 @TRI-873 @DEV @INTEGRATION_TEST - Scenario: 🔨🧩[DEV-TEST] Policy Store API: Update a policy validUntil date - # cleanup - Given no policies with prefix "integration-test-policy-" exist - - # set up testdata - Given a policy with policyId "integration-test-policy-1111" is registered for BPN "BPNL1234567890AB" and validUntil "1111-11-11T11:11:11.111Z" - Then the create policy response should have HTTP status 201 and policyId "integration-test-policy-1111" - - # act and assert - When I update policy "integration-test-policy-1111", BPN "BPNL1234567890AB", validUntil "1112-11-11T11:11:11.111Z" - Then the update policy response should have HTTP status 200 - When I successfully fetch all policies - Then the BPN "BPNL1234567890AB" should have a policy with policyId "integration-test-policy-1111" and validUntil "1112-11-11T11:11:11.111Z" - - #{*}Used testdataset{*}: — - #h3. Test Objective: - # - #__ - # * Update validUntil of a policy that is assocoated to multiple BPNLs and check if successful - # - #h3. Description: - # - #__ - # # Register a policy and asssociate it with multiple BPNLs - # # Update its validUntil - # # Assert that update was successful - # - #h3. Preconditions: - # - #__ - # # Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - # * *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment |https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - # * *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api admin - @TRI-1952 @TRI-873 @DEV @INTEGRATION_TEST - Scenario: 🔨🧩[DEV-TEST] Policy Store API: Update a policy validUntil date for a policy that is associated to multiple BPNs - # cleanup - Given no policies with prefix "integration-test-policy-" exist - - # set up testdata - Given I want to register a policy with policyId "integration-test-policy-1111" - And the policy should be associated to BPN "BPNL1234567890AB" - And the policy should have validUntil "1111-11-11T11:11:11.111Z" - When I register the policy - Then the create policy response should have HTTP status 201 and policyId "integration-test-policy-1111" - - Given I want to register a policy with policyId "integration-test-policy-2222" - And the policy should be associated to BPN "BPNL1234567890AB" - And the policy should have validUntil "2222-11-11T11:11:11.111Z" - And the policy should be associated to the following BPNs: - | BPNL1234567890AB | - | BPNL1234567890CD | - When I register the policy - Then the create policy response should have HTTP status 201 and policyId "integration-test-policy-2222" - - When a policy with policyId "integration-test-policy-3333" is registered for BPN "BPNL1234567890CD" and validUntil "3333-11-11T11:11:11.111Z" - Then the create policy response should have HTTP status 201 and policyId "integration-test-policy-3333" - - When a policy with policyId "integration-test-policy-4444" is registered for BPN "BPNL1234567890CD" and validUntil "4444-11-11T11:11:11.111Z" - Then the create policy response should have HTTP status 201 and policyId "integration-test-policy-4444" - - # check the testdata preconditions - When I successfully fetch all policies - Then the BPN "BPNL1234567890AB" should have a policy with policyId "integration-test-policy-1111" and validUntil "1111-11-11T11:11:11.111Z" - And the BPN "BPNL1234567890AB" should have a policy with policyId "integration-test-policy-2222" and validUntil "2222-11-11T11:11:11.111Z" - And the BPN "BPNL1234567890CD" should have a policy with policyId "integration-test-policy-2222" and validUntil "2222-11-11T11:11:11.111Z" - And the BPN "BPNL1234567890CD" should have a policy with policyId "integration-test-policy-3333" and validUntil "3333-11-11T11:11:11.111Z" - And the BPN "BPNL1234567890CD" should have a policy with policyId "integration-test-policy-4444" and validUntil "4444-11-11T11:11:11.111Z" - - # act - When I update policy with policyId "integration-test-policy-2222" and given BPNs using validUntil "2223-11-11T11:11:11.111Z": - | BPNL1234567890AB | - | BPNL1234567890CD | - Then the update policy response should have HTTP status 200 - - # assert - When I successfully fetch all policies - Then the BPN "BPNL1234567890AB" should have a policy with policyId "integration-test-policy-1111" and validUntil "1111-11-11T11:11:11.111Z" - And the BPN "BPNL1234567890AB" should have a policy with policyId "integration-test-policy-2222" and validUntil "2223-11-11T11:11:11.111Z" - And the BPN "BPNL1234567890CD" should have a policy with policyId "integration-test-policy-2222" and validUntil "2223-11-11T11:11:11.111Z" - And the BPN "BPNL1234567890CD" should have a policy with policyId "integration-test-policy-3333" and validUntil "3333-11-11T11:11:11.111Z" - And the BPN "BPNL1234567890CD" should have a policy with policyId "integration-test-policy-4444" and validUntil "4444-11-11T11:11:11.111Z" - - #{*}Used testdataset{*}: — - #h3. Test Objective: - # - #__ - # * Add BPNL to a policy and check if successful - # - #h3. Description: - # - #__ - # # Register some policies - # # Add another BPNL to one of them - # # Assert that update was successful - # - #h3. Preconditions: - # - #__ - # # Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - # * *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment |https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - # * *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api admin - @TRI-1953 @TRI-873 @DEV @INTEGRATION_TEST - Scenario: 🔨🧩[DEV-TEST] Policy Store API: Add BPN to policy - # cleanup - Given no policies with prefix "integration-test-policy-" exist - - # set up testdata - Given a policy with policyId "integration-test-policy-1111" is registered for BPN "BPNL1234567890AB" and validUntil "1111-11-11T11:11:11.111Z" - Then the create policy response should have HTTP status 201 and policyId "integration-test-policy-1111" - - Given a policy with policyId "integration-test-policy-2222" is registered for BPN "BPNL1234567890CD" and validUntil "2222-11-11T11:11:11.111Z" - Then the create policy response should have HTTP status 201 and policyId "integration-test-policy-2222" - - # act and assert - When I update policy "integration-test-policy-1111", BPN "BPNL1234567890CD", validUntil "1112-11-11T11:11:11.111Z" - Then the update policy response should have HTTP status 200 - - When I successfully fetch all policies - Then the BPN "BPNL1234567890CD" should have a policy with policyId "integration-test-policy-2222" and validUntil "2222-11-11T11:11:11.111Z" - And the BPN "BPNL1234567890CD" should have a policy with policyId "integration-test-policy-1111" and validUntil "1112-11-11T11:11:11.111Z" - And the BPN "BPNL1234567890AB" should have 0 policies having policyId starting with "integration-test-policy-" - - #{*}Used testdataset{*}: — - #h3. Test Objective: - # - #__ - # * Register policy without validUntil should fail - # - #h3. Description: - # - #__ - # # Register policy without validUntil - # - #h3. Preconditions: - # - #__ - # # Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - # * *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment |https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - # * *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api admin - @TRI-1965 @TRI-873 @DEV @INTEGRATION_TEST - Scenario: 🔨🧩[DEV-TEST] Policy Store API: Register policies without validUntil (bad case) - # cleanup - Given no policies with prefix "integration-test-policy-" exist - - # act - Given I want to register a policy with policyId "integration-test-policy-1111" - And the policy should be associated to BPN "BPNL1234567890AB" - And the policy should have no validUntil - When I register the policy - - # assert - Then the create policy response should have HTTP status 400 - - #{*}Used testdataset{*}: — - #h3. Test Objective: - # - #__ - # * Add a policy to BPNLs and check if successful - # - #h3. Description: - # - #__ - # # Register policy with BPNL1 - # # Update using BPNL1 and BPNL2 in order to add it to BPNL2 - # # Assert that update was successful - # - #h3. Preconditions: - # - #__ - # # Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - # * *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment |https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - # * *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api admin - @TRI-1954 @TRI-873 @DEV @INTEGRATION_TEST - Scenario: 🔨🧩[DEV-TEST] Policy Store API: Add policyId to given BPNs - # cleanup - Given no policies with prefix "integration-test-policy-" exist - - # set up testdata - Given a policy with policyId "integration-test-policy-1111" is registered for BPN "BPNL1234567890AB" and validUntil "1111-11-11T11:11:11.111Z" - Then the create policy response should have HTTP status 201 and policyId "integration-test-policy-1111" - - # check the testdata preconditions - When I successfully fetch all policies - Then the BPN "BPNL1234567890AB" should have the following policies: - | integration-test-policy-1111 | - And the BPN "BPNL1234567890CD" should have 0 policies having policyId starting with "integration-test-policy-" - - # act and assert - When I want to update the policy with policyId "integration-test-policy-1111" - And the policy should be associated to the following BPNs: - | BPNL1234567890AB | - | BPNL1234567890CD | - And the policy should have validUntil "1112-11-11T11:11:11.111Z" - And I update the policy - Then the update policy response should have HTTP status 200 - - When I successfully fetch all policies - Then the BPNs should be associated with policies as follows: - | BPN | policyId | - | BPNL1234567890AB | integration-test-policy-1111 | - | BPNL1234567890CD | integration-test-policy-1111 | - - #{*}Used testdataset{*}: — - #h3. Test Objective: - # - #__ - # * Delete some policies and check if successful - # - #h3. Description: - # - #__ - # # Register some policies - # # Delete some of them - # # Assert that deletion was successful - # - #h3. Preconditions: - # - #__ - # # Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - # * *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment |https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - # * *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api admin - @TRI-1955 @TRI-873 @DEV @INTEGRATION_TEST - Scenario: 🔨🧩[DEV-TEST] Policy Store API: Delete some policies - # cleanup - Given no policies with prefix "integration-test-policy-" exist - - # set up testdata - Given a policy with policyId "integration-test-policy-1111" is registered for BPN "BPNL1234567890AB" and validUntil "2222-11-11T11:11:11.111Z" - Then the create policy response should have HTTP status 201 and policyId "integration-test-policy-1111" - - Given I add policyId "integration-test-policy-1111" to given BPNs using validUntil "1111-11-11T11:11:11.111Z": - | BPNL1234567890AB | - | BPNL1234567890EF | - Then the update policy response should have HTTP status 200 - - Given a policy with policyId "integration-test-policy-2222" is registered for BPN "BPNL1234567890AB" and validUntil "1111-11-11T11:11:11.111Z" - Then the create policy response should have HTTP status 201 and policyId "integration-test-policy-2222" - - Given I add policyId "integration-test-policy-2222" to given BPNs using validUntil "1111-11-11T11:11:11.111Z": - | BPNL1234567890AB | - | BPNL1234567890CD | - Then the update policy response should have HTTP status 200 - - Given a policy with policyId "integration-test-policy-3333" is registered for BPN "BPNL1234567890CD" and validUntil "2222-11-11T11:11:11.111Z" - Then the create policy response should have HTTP status 201 and policyId "integration-test-policy-3333" - - Given a policy with policyId "integration-test-policy-4444" is registered for BPN "BPNL1234567890CD" and validUntil "2222-11-11T11:11:11.111Z" - Then the create policy response should have HTTP status 201 and policyId "integration-test-policy-4444" - - # check the testdata preconditions - When I successfully fetch all policies - Then the BPNs should be associated with policies as follows: - | BPN | policyId | - | BPNL1234567890AB | integration-test-policy-1111 | - | BPNL1234567890EF | integration-test-policy-1111 | - | BPNL1234567890AB | integration-test-policy-2222 | - | BPNL1234567890CD | integration-test-policy-2222 | - | BPNL1234567890CD | integration-test-policy-3333 | - | BPNL1234567890CD | integration-test-policy-4444 | - - # act and assert - When I delete the policy "integration-test-policy-2222" - Then the delete policy response should have HTTP status 200 - - When I delete the policy "integration-test-policy-3333" - Then the delete policy response should have HTTP status 200 - - When I delete the policy "integration-test-policy-4444" - Then the delete policy response should have HTTP status 200 - - When I successfully fetch all policies - Then the BPN "BPNL1234567890CD" should have 0 policies having policyId starting with "integration-test-policy-" - And the BPNs should be associated with policies as follows: - | BPN | policyId | - | BPNL1234567890AB | integration-test-policy-1111 | - | BPNL1234567890EF | integration-test-policy-1111 | - - #{*}Used testdataset{*}: — - #h3. Test Objective: - # - #__ - # * - #Fetching policies by BPNLs should fail for invalid BPNLs - # - #h3. Description: - # - #__ - # # Register policy - # # Fetch policies via BPNLs with some invalid BPNLs - # # Check that failed for the invalid BPNLs - # - #h3. Preconditions: - # - #__ - # # Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - # * *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment |https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - # * *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api admin - @TRI-1966 @TRI-873 @DEV @INTEGRATION_TEST - Scenario: 🔨🧩[DEV-TEST] Policy Store API: Fetching policies by BPNLs should fail for invalid BPNLs (bad case) - # cleanup - Given no policies with prefix "integration-test-policy-" exist - - # test data setup - Given a policy with policyId "integration-test-policy-1111" is registered for BPN "BPNL1234567890AB" and validUntil "1111-11-11T11:11:11.111Z" - Given a policy with policyId "integration-test-policy-2222" is registered for BPN "BPNL1234567890CD" and validUntil "2222-11-11T11:11:11.111Z" - Given a policy with policyId "integration-test-policy-3333" is registered for BPN "BPNL1234567890EF" and validUntil "3333-11-11T11:11:11.111Z" - - # act - When I fetch policies for BPNs: - | BPNL1234567890AB | - | BPNL1234567890CD | - Then the fetch policies for BPN response should have HTTP status 200 - - When I fetch policies for BPNs: - | BPNL1234567890CD | - | INVALID | - Then the fetch policies for BPN response should have HTTP status 400 - - When I fetch policies for BPNs: - | BPNACB | - Then the fetch policies for BPN response should have HTTP status 400 - - When I fetch policies for BPNs: - | ERRRES | - Then the fetch policies for BPN response should have HTTP status 400 - - When I fetch policies for BPNs: - | DELETE * FROM Table | - Then the fetch policies for BPN response should have HTTP status 400 \ No newline at end of file diff --git a/irs-cucumber-tests/src/test/resources/features/4_TRI-512_TRI-768.feature b/irs-cucumber-tests/src/test/resources/features/4_TRI-512_TRI-768.feature deleted file mode 100644 index f48ca499c8..0000000000 --- a/irs-cucumber-tests/src/test/resources/features/4_TRI-512_TRI-768.feature +++ /dev/null @@ -1,197 +0,0 @@ -@TRI-512 -Feature: 👍 [AS_PLANNED] BomLifecycle 'asPlanned' implementation (1.0.0) - #*As* IRS-Consumer, - #*I want* to be able to traverse through a BOM as planned, - #*so that* I can use the IRS to access these structures. - # - #h2. Details: - #* [Details| https://confluence.catena-x.net/pages/viewpage.action?pageId=53248769] - #* (!) BOMAsPlanned : Update and extension of BOMAsPlanned is planned for Iteration 2. - #* (-) Traversal Aspect SingleLevelBomAsPlanned is used for bomLifecycle": "asPlanned" and direction "downwards" - #* (-) In case no aspect is choose by the api caller, default aspect "PartAsPlanned" is used for bomLifecycle "asPlanned" - # - #h2. Hint / Context :  - #---- - #* Check Semantic Hub for more detailed information about the Aspects - #* Aspects are: "PartAsPlanned“ and „SingleLevelBomAsPlanned“ - #* Contact Simon Schulz if further information is needed - #* Check if namespace starts with _io.catenax_ - #* "SingleLevelBomAsPlanned" results in QueryParameter => "bomLifecycle": "asPlanned", - #* update local Testdataset with reasonable Testdata (2 levels, 7 Component, each component has PartAsPlanned and SingleLevelBomAsPlanned with 2 children except level2 leafs) - #* use similar Structure as BomAsBuilt Dataset - #* https://confluence.catena-x.net/display/PL/Release+2+test+dataset%27s - #* Testdata: https://confluence.catena-x.net/display/PL/BoMAsPlanned+test+dataset version 1.3.4 asplanned alpha - # - # - #h2. TODO: - #---- - #* (-) implement functionality - #* (-) create Test-dataset for BoM as Planned data - #* (-) create Tests - #* (-) run Tests - #* (-) refactor API Documentation - # - #h2. Background: - #* (/) [~thomas.braun3@zf.com] will take care that testdata for BoM asPlanned are prepared. - #* (/) Aspect BoM asPlanned is already available. There is an update until Iteration 2 for . Version 1.0.0 - #* (/) Implementation BoM AsPlanned im IRS (Alignment Trace-X Implementation ESS in PI6) - #* (!) BoM As Planned will be extended Version 1.1.0 will be avaiable in iteration 2. - - Background: - #@TRI-768 - Given the IRS URL "https://irs.dev.demo.catena-x.net" - And the admin user api key - - - #*Used testdataset*: 1.5.0 - # - #h3. Test Objective: - # - #__ - # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. - # - #h3. Description: - # - #__ - # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer - # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. - # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer - # # Api consumer gets an item graph document with the results for the requested globalAssetId - # - #h3. Preconditions: - # - #__ - # # DT Twin Registry is up and running and contains valid test data set - # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints - # # EDC Consumer is set up and configures to the DT Registry and Submodel  - # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume - # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects - ## Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api consumer (role has t.b.d.) - @TRI-893 @TRI-1942 @TRI-873 @TRI-1843 @TRI-1770 @DEV @INTEGRATION_TEST @INTEGRATION_TEST_2.0.0 - Scenario: 🔨🧩[DEV-TEST] End 2 End for BomLifecycle 'asPlanned' Vehicle Model C for SAP [BPNL00000003AZQP] - Given I register an IRS job for globalAssetId "urn:uuid:65e1554e-e5cd-4560-bac1-1352582122fb" and BPN "BPNL00000003AZQP" - And collectAspects "true" - And depth 10 - And direction "downward" - And bomLifecycle "asPlanned" - And aspects : - | urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned | - When I get the job-id - Then I check, if the job has status "COMPLETED" within 20 minutes - And I check, if "relationships" are equal to "TRI-893-expected-relationships.json" - And I check, if "submodels" are equal to "TRI-893-expected-submodels.json" - - #*Used testdataset*: 1.5.0 - # - #h3. Test Objective: - # - #__ - # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. - # - #h3. Description: - # - #__ - # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer - # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. - # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer - # # Api consumer gets an item graph document with the results for the requested globalAssetId - # - #h3. Preconditions: - # - #__ - # # DT Twin Registry is up and running and contains valid test data set - # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints - # # EDC Consumer is set up and configures to the DT Registry and Submodel  - # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume - # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects - ## Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api consumer (role has t.b.d.) - @TRI-821 @TRI-1942 @TRI-873 @TRI-1843 @TRI-1770 @DEV @INTEGRATION_TEST - Scenario: 🪓🧩[DEV-TEST] End 2 End for BomLifecycle 'asPlanned' Vehicle Model A for BMW [BPNL00000003AYRE] - Given I register an IRS job for globalAssetId "urn:uuid:0733946c-59c6-41ae-9570-cb43a6e4c79e" and BPN "BPNL00000003AYRE" - And collectAspects "true" - And depth 10 - And direction "downward" - And bomLifecycle "asPlanned" - And aspects : - | urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned | - When I get the job-id - Then I check, if the job has status "COMPLETED" within 20 minutes - And I check, if "relationships" are equal to "TRI-821-expected-relationships.json" - And I check, if "submodels" are equal to "TRI-821-expected-submodels.json" - - #*Used testdataset*: 1.5.0 - # - #h3. Test Objective: - # - #__ - # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. - # - #h3. Description: - # - #__ - # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer - # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. - # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer - # # Api consumer gets an item graph document with the results for the requested globalAssetId - # - #h3. Preconditions: - # - #__ - # # DT Twin Registry is up and running and contains valid test data set - # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints - # # EDC Consumer is set up and configures to the DT Registry and Submodel  - # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume - # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects - ## Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api consumer (role has t.b.d.) - @TRI-891 @TRI-1942 @TRI-873 @TRI-1843 @TRI-1770 @DEV @INTEGRATION_TEST @INTEGRATION_TEST_2.0.0 - Scenario: 🔨🧩[DEV-TEST] End 2 End for BomLifecycle 'asPlanned' Vehicle Model B for MercedesBenz [BPNL00000003AVTH] - Given I register an IRS job for globalAssetId "urn:uuid:68904173-ad59-4a77-8412-3e73fcafbd8b" and BPN "BPNL00000003AVTH" - And collectAspects "true" - And depth 10 - And direction "downward" - And bomLifecycle "asPlanned" - And aspects : - | urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned | - When I get the job-id - Then I check, if the job has status "COMPLETED" within 20 minutes - And I check, if "relationships" are equal to "TRI-891-expected-relationships.json" - And I check, if "submodels" are equal to "TRI-891-expected-submodels.json" \ No newline at end of file diff --git a/irs-cucumber-tests/src/test/resources/features/5_TRI-768.feature b/irs-cucumber-tests/src/test/resources/features/5_TRI-768.feature deleted file mode 100644 index 8f0a85a4b3..0000000000 --- a/irs-cucumber-tests/src/test/resources/features/5_TRI-768.feature +++ /dev/null @@ -1,459 +0,0 @@ -Feature: Default - - Background: - #@TRI-768 - Given the IRS URL "https://irs.dev.demo.catena-x.net" - And the admin user api key - - - #h2. DEV - #||Key||Value|| - #|globalAssetId|urn:uuid:6d505432-8b31-4966-9514-4b753372683f| - #|BPNL|BPNL00000003AVTH| - # - #h3. Test Objective: - # - #__ - # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. - # - #h3. Description: - # - #__ - # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer - # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. - # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer - # # Api consumer gets an item graph document with the results for the requested globalAssetId - # - #h3. Preconditions: - # - #__ - # # DT Twin Registry is up and running and contains valid test data set - # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints - # # EDC Consumer is set up and configures to the DT Registry and Submodel  - # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume - # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects - ## Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api consumer (role has t.b.d.) - @TRI-767 @TRI-1942 @TRI-873 @TRI-1843 @TRI-1770 @TRI-1682 @DEV @INTEGRATION_TEST @TESTKEY - Scenario: 🔨🧩[DEV-TEST] End 2 End for OEM-B (MB) [BPN:BPNL00000003AVTH] (SerialPart 3.0.0, SingleLevelBomAsBuilt 3.0.0 , Batch 3.0.0) - Given I register an IRS job for globalAssetId "urn:uuid:8724338c-5c85-4c34-91eb-e2735d58fb0d" and BPN "BPNL00000003AVTH" - And collectAspects "true" - And lookupBPNs "false" - And depth 100 - And direction "downward" - And aspects : - | urn:samm:io.catenax.serial_part:3.0.0#SerialPart | - # | urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt | - #| urn:samm:io.catenax.just_in_sequence_part:3.0.0#JustInSequencePart | - # | urn:samm:io.catenax.batch:3.0.0#Batch | - When I get the job-id - Then I check, if the job has status "COMPLETED" within 20 minutes - And I check, if number of "tombstones" equals to "summary/asyncFetchedItems/failed" - And I check, if "summary" contains 175 completed and 0 failed items - And I check, if "bpn summary" contains 0 completed and 0 failed items - And I check, if "relationships" are equal to "TRI-767-expected-relationships.json" - And I check, if "submodels" are equal to "TRI-767-expected-submodels.json" - And I check, if submodels contains BPNL number "BPNL00000003AVTH" exactly 69 times - - #h2. DEV - #||Key||Value|| - #|globalAssetId|urn:uuid:c6d2d642-a055-4ddf-87e3-1a3b02c689e3| - #|BPNL|BPNL00000000BJTL| - #h3. Test Objective: - # - #__ - # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. - # - #h3. Description: - # - #__ - # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer - # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. - # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer - # # Api consumer gets an item graph document with the results for the requested globalAssetId - # - #h3. Preconditions: - # - #__ - # # DT Twin Registry is up and running and contains valid test data set - # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints - # # EDC Consumer is set up and configures to the DT Registry and Submodel  - # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume - # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects - # # Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - # * *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment |https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - # * *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api consumer (role has t.b.d.) - @TRI-1913 @TRI-1942 @TRI-1843 @TRI-1682 @TRI-1770 @TRI-873 @DEV @INTEGRATION_TEST - Scenario: 🔨🧩[DEV-TEST] End 2 End for aspects "3.0.0#JustInSequencePart", "3.0.0#SerialPart" with "1.0.0#PartSiteInformationAsBuilt" - Given I register an IRS job for globalAssetId "urn:uuid:c6d2d642-a055-4ddf-87e3-1a3b02c689e3" and BPN "BPNL00000000BJTL" - And aspects : - | urn:samm:io.catenax.just_in_sequence_part:3.0.0#JustInSequencePart | - | urn:samm:io.catenax.serial_part:3.0.0#SerialPart | - And collectAspects "true" - And lookupBPNs "false" - And depth 1 - And bomLifecycle "asPlanned" - And direction "downward" - When I get the job-id - Then I check, if the job has status "COMPLETED" within 20 minutes - And I check, if number of "tombstones" equals to "summary/asyncFetchedItems/failed" - And I check, if "summary" contains 1 completed and 0 failed items - And I check, if "submodels" are equal to "TRI-1913-expected-submodels.json" - - #h2. DEV - #||Key||Value|| - #|globalAssetId|urn:uuid:ee9b9c9e-1416-45a3-b683-d98d5d88e548| - #|BPNL|BPNL00000003AXS3| - #h3. Test Objective: - # - #__ - # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. - # - #h3. Description: - # - #__ - # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer - # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. - # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer - # # Api consumer gets an item graph document with the results for the requested globalAssetId - # - #h3. Preconditions: - # - #__ - # # DT Twin Registry is up and running and contains valid test data set - # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints - # # EDC Consumer is set up and configures to the DT Registry and Submodel  - # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume - # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects - # # Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - # * *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment |https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - # * *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api consumer (role has t.b.d.) - @TRI-1914 @TRI-1942 @TRI-1843 @TRI-1770 @TRI-1682 @TRI-873 @DEV @INTEGRATION_TEST - Scenario: 🔨🧩[DEV-TEST] End 2 End for aspects "3.0.0#Batch" with "1.0.0#PartSiteInformationAsBuilt" - Given I register an IRS job for globalAssetId "urn:uuid:ee9b9c9e-1416-45a3-b683-d98d5d88e548" and BPN "BPNL00000003AXS3" - And aspects : - | urn:samm:io.catenax.batch:3.0.0#Batch | - And collectAspects "true" - And lookupBPNs "false" - And depth 1 - And bomLifecycle "asBuilt" - And direction "downward" - When I get the job-id - Then I check, if the job has status "COMPLETED" within 20 minutes - And I check, if number of "tombstones" equals to "summary/asyncFetchedItems/failed" - And I check, if "summary" contains 1 completed and 0 failed items - And I check, if "submodels" are equal to "TRI-1914-expected-submodels.json" - - #h2. DEV - #||Key||Value|| - #|globalAssetId|urn:uuid:e5c96ab5-896a-482c-8761-efd74777ca97| - #|BPNL|BPNL00000003AYRE| - #h3. Test Objective: - # - #__ - # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. - # - #h3. Description: - # - #__ - # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer - # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. - # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer - # # Api consumer gets an item graph document with the results for the requested globalAssetId - # - #h3. Preconditions: - # - #__ - # # DT Twin Registry is up and running and contains valid test data set - # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints - # # EDC Consumer is set up and configures to the DT Registry and Submodel  - # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume - # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects - # # Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - # * *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment |https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - # * *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api consumer (role has t.b.d.) - @TRI-1915 @TRI-1942 @TRI-1843 @TRI-1682 @TRI-1770 @TRI-873 @DEV @INTEGRATION_TEST - Scenario: 🔨🧩[DEV-TEST] End 2 End for aspects "3.0.0#SingleLevelBomAsPlanned", "2.0.0#PartAsPlanned" - Given I register an IRS job for globalAssetId "urn:uuid:e5c96ab5-896a-482c-8761-efd74777ca97" and BPN "BPNL00000003AYRE" - And aspects : - | urn:samm:io.catenax.single_level_bom_as_planned:3.0.0#SingleLevelBomAsPlanned | - | urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned | - And collectAspects "true" - And lookupBPNs "false" - And depth 1 - And bomLifecycle "asPlanned" - And direction "downward" - When I get the job-id - Then I check, if the job has status "COMPLETED" within 20 minutes - And I check, if number of "tombstones" equals to "summary/asyncFetchedItems/failed" - And I check, if "summary" contains 3 completed and 0 failed items - And I check, if "submodels" are equal to "TRI-1915-expected-submodels.json" - - #*Used testdataset*: 1.6.0 - # - #h3. Test Objective: - # - #__ - # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. - # - #h3. Description: - # - #__ - # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer - # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. - # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer - # # Api consumer gets an item graph document with the results for the requested globalAssetId - # - #h3. Preconditions: - # - #__ - # # DT Twin Registry is up and running and contains valid test data set - # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints - # # EDC Consumer is set up and configures to the DT Registry and Submodel  - # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume - # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects - ## Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api consumer (role has t.b.d.) - @TRI-1647 @TRI-1942 @TRI-873 @TRI-1843 @TRI-1770 @TRI-1682 @DEV @INTEGRATION_TEST @INTEGRATION_TEST_2.0.0 - Scenario: 🪓🧩[DEV-TEST] End 2 End for aspect "TractionBatteryCode" - Given I register an IRS job for globalAssetId "urn:uuid:f204622a-f4f3-4be7-b255-06c27524984b" and BPN "BPNL00000003AVTH" - And collectAspects "true" - And depth 2 - And direction "downward" - And bomLifecycle "asBuilt" - And aspects : - | urn:samm:io.catenax.traction_battery_code:1.0.0#TractionBatteryCode | - When I get the job-id - Then I check, if the job has status "COMPLETED" within 20 minutes - And I check, if "submodels" are equal to "TRI-1647-expected-submodels.json" - - #h2. DEV - #||Key||Value|| - #|globalAssetId|urn:uuid:1ad0892a-59c1-4118-8b52-601540973f31| - #|BPNL|BPNL00000003CSGV| - #h3. Test Objective: - # - #__ - # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. - # - #h3. Description: - # - #__ - # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer - # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. - # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer - # # Api consumer gets an item graph document with the results for the requested globalAssetId - # - #h3. Preconditions: - # - #__ - # # DT Twin Registry is up and running and contains valid test data set - # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints - # # EDC Consumer is set up and configures to the DT Registry and Submodel  - # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume - # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects - # # Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - # * *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment |https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - # * *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api consumer (role has t.b.d.) - @TRI-1918 @TRI-1942 @TRI-1843 @TRI-1682 @TRI-1770 @TRI-873 @DEV @INTEGRATION_TEST - Scenario: 🔨🧩[DEV-TEST] End 2 End for aspects "3.0.0#SingleLevelBomAsBuilt" - Given I register an IRS job for globalAssetId "urn:uuid:1ad0892a-59c1-4118-8b52-601540973f31" and BPN "BPNL00000003CSGV" - And aspects : - | urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt | - And collectAspects "true" - And lookupBPNs "false" - And depth 1 - And bomLifecycle "asBuilt" - And direction "downward" - When I get the job-id - Then I check, if the job has status "COMPLETED" within 20 minutes - And I check, if number of "tombstones" equals to "summary/asyncFetchedItems/failed" - And I check, if "summary" contains 2 completed and 0 failed items - And I check, if "submodels" are equal to "TRI-1918-expected-submodels.json" - - #h2. DEV - #||Key||Value|| - #|globalAssetId|urn:uuid:e097c30e-9010-4eb9-8a8c-064736aceab8| - #|BPNL|BPNL00000003B2OM| - # - #h3. Test Objective: - # - #__ - # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. - # - #h3. Description: - # - #__ - # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer - # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. - # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer - # # Api consumer gets an item graph document with the results for the requested globalAssetId - # - #h3. Preconditions: - # - #__ - # # DT Twin Registry is up and running and contains valid test data set - # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints - # # EDC Consumer is set up and configures to the DT Registry and Submodel  - # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume - # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects - ## Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api consumer (role has t.b.d.) - @TRI-704 @TRI-1942 @TRI-873 @TRI-1843 @TRI-1770 @TRI-1682 @DEV @INTEGRATION_TEST - Scenario: 🔨🧩[DEV-TEST] End 2 End for Tier A (ZF) [BPN:BPNL00000003B2OM] (SerialPart 3.0.0, SingleLevelBomAsBuilt 3.0.0 , Batch 3.0.0) - Given I register an IRS job for globalAssetId "urn:uuid:e097c30e-9010-4eb9-8a8c-064736aceab8" and BPN "BPNL00000003B2OM" - And aspects : - | urn:samm:io.catenax.serial_part:3.0.0#SerialPart | - | urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt | - | urn:samm:io.catenax.batch:3.0.0#Batch | - | urn:samm:io.catenax.material_for_recycling:1.1.0#MaterialForRecycling | - And collectAspects "true" - And lookupBPNs "false" - And depth 100 - And direction "downward" - When I get the job-id - Then I check, if the job has status "COMPLETED" within 20 minutes - And I check, if number of "tombstones" equals to "summary/asyncFetchedItems/failed" - And I check, if "summary" contains 5 completed and 0 failed items - And I check, if "bpn summary" contains 4 completed and 0 failed items - And I check, if "relationships" are equal to "TRI-704-expected-relationships.json" - And I check, if "submodels" are equal to "TRI-704-expected-submodels.json" - And I check, if submodels contains BPNL number "BPNL00000003B2OM" exactly 1 times - - #h2. DEV - #||Key||Value|| - #|globalAssetId|urn:uuid:015aa300-f0ea-47cd-84d5-969f2cb2cf75| - #|BPNL| BPNL00000003B2OM | - # - # - #h3. Test Objective: - # - #__ - # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. - # - #h3. Description: - # - #__ - # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer - # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. - # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer - # # Api consumer gets an item graph document with the results for the requested globalAssetId - # - #h3. Preconditions: - # - #__ - # # DT Twin Registry is up and running and contains valid test data set - # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints - # # EDC Consumer is set up and configures to the DT Registry and Submodel  - # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume - # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects - ## Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api consumer (role has t.b.d.) - @TRI-528 @TRI-1942 @TRI-873 @TRI-1843 @TRI-1770 @TRI-1682 @DEV @INTEGRATION_TEST - Scenario: 🔨🧩[DEV-TEST] End 2 End for aspect "MaterialForRecycling" - Given I register an IRS job for globalAssetId "urn:uuid:015aa300-f0ea-47cd-84d5-969f2cb2cf75" and BPN "BPNL00000003B2OM" - And aspects : - | urn:samm:io.catenax.material_for_recycling:1.1.0#MaterialForRecycling | - And collectAspects "true" - And lookupBPNs "false" - And depth 1 - And direction "downward" - When I get the job-id - Then I check, if the job has status "COMPLETED" within 20 minutes - And I check, if number of "tombstones" equals to "summary/asyncFetchedItems/failed" - And I check, if "summary" contains 4 completed and 0 failed items - And I check, if "bpn summary" contains 3 completed and 0 failed items - And I check, if "relationships" are equal to "TRI-528-expected-relationships.json" - And I check, if "submodels" are equal to "TRI-528-expected-submodels.json" \ No newline at end of file diff --git a/irs-cucumber-tests/src/test/resources/features/6_TRI-1312_TRI-768.feature b/irs-cucumber-tests/src/test/resources/features/6_TRI-1312_TRI-768.feature deleted file mode 100644 index 4ed686d122..0000000000 --- a/irs-cucumber-tests/src/test/resources/features/6_TRI-1312_TRI-768.feature +++ /dev/null @@ -1,88 +0,0 @@ -@TRI-1312 -Feature: 👍 [SPIKE][PoC] Enable IRS for multiple LifeCycles (asBuilt & asSpecified) - #h2. User Story - # - #*As* CE Developer, - #*I want* to use the IRS to fetch multiple trees at the same time, - #*so that* the application Digital Product Pass can integrate the IRS. - #h2. Hints / Details / NFR (Technical, Design & Content) :  - # * contact [~kevin.tram@accenture.com] for further information - # * asBuilt and AsSpecified - # * downward - # * for one globalAssetID - # * [https://portal.int.demo.catena-x.net/semantichub/] SingleLevelBomAsSpecified BAMM 2.0.0 RELEASED - # * The Twin aspect for asSpecified is SerialPart - # - #h2. External dependencies (due date: 11.07.2023 ) - # * (x) [~sasan.baba-esfahani@bmw.de] & [~luis.rickert@accenture.com] provides testdata for asSpecified BOM --> in a first step: CE provides consistant Testdata files of aspect models Serial Part to SingleLevelBomAsSpecified - # * (x) [~sasan.baba-esfahani@bmw.de] & [~luis.rickert@accenture.com] provides a infrastructure Provider, EDC, dDTR to test the asSpecified BOM with on vehicle - # * (x) [~sasan.baba-esfahani@bmw.de] & [~luis.rickert@accenture.com] is added to testdata set as a new requirement - # * (x) [~sasan.baba-esfahani@bmw.de] & [~luis.rickert@accenture.com] adds asSpecified facets to INT environment - # - # - #h2. Hint - # !asSpecified.png|thumbnail! - # - # - #h2. TODO: - # * (-) Fill out description - # * (-) Fill out Story Points - # * (-) Assign an Assignee - # * (-) define Acceptance Criteria - # * (-) [DoR |https://confluence.catena-x.net/pages/viewpage.action?pageId=917505]  - - Background: - #@TRI-768 - Given the IRS URL "https://irs.dev.demo.catena-x.net" - And the admin user api key - - - #*Used testdataset*: 1.6.0 - # - #h3. Test Objective: - # - #__ - # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. - # - #h3. Description: - # - #__ - # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer - # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. - # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer - # # Api consumer gets an item graph document with the results for the requested globalAssetId - # - #h3. Preconditions: - # - #__ - # # DT Twin Registry is up and running and contains valid test data set - # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints - # # EDC Consumer is set up and configures to the DT Registry and Submodel  - # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume - # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects - ## Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api consumer (role has t.b.d.) - @TRI-1537 @TRI-1942 @TRI-873 @TRI-1843 @TRI-1770 @TRI-1682 @DEV @INTEGRATION_TEST - Scenario: 🪓🧩[DEV-TEST] End 2 End for aspect "JustInSequencePart" 🌟 - Given I register an IRS job for globalAssetId "urn:uuid:c6d2d642-a055-4ddf-87e3-1a3b02c689e3" and BPN "BPNL00000000BJTL" - And collectAspects "true" - And depth 10 - And direction "downward" - And bomLifecycle "asBuilt" - And aspects : - | urn:samm:io.catenax.just_in_sequence_part:1.0.0#JustInSequencePart | - When I get the job-id - Then I check, if the job has status "COMPLETED" within 20 minutes - And I check, if "submodels" are equal to "TRI-1537-expected-submodels.json" \ No newline at end of file diff --git a/irs-cucumber-tests/src/test/resources/features/7_TRI-982_TRI-768.feature b/irs-cucumber-tests/src/test/resources/features/7_TRI-982_TRI-768.feature deleted file mode 100644 index b5e59b9af0..0000000000 --- a/irs-cucumber-tests/src/test/resources/features/7_TRI-982_TRI-768.feature +++ /dev/null @@ -1,70 +0,0 @@ -@TRI-982 -Feature: 👍 SingleLevelUsageAsBuilt ready to use on Dev environment - #*As a* Trace-X user - #*I want* to be able to send notification upwards in the supply chain - #*so that* I can tell my costumer, that there is an issue with a part - #h2. Hint: - # - Check the Model is correct - # - expected Result for a Battery Cell is to have several relations in the relationship array - # - Add testcase for objects focused in picture below - #!screenshot-2.png|thumbnail! - # - #*Sprint Planning 2* - # * Investigate on potential issue - # * Create testcase for expected result - - Background: - #@TRI-768 - Given the IRS URL "https://irs.dev.demo.catena-x.net" - And the admin user api key - - - #h2. DEV - #||Key||Value|| - #|globalAssetId|urn:uuid:e7777066-e453-4431-beb3-4e99d042f923| - # - #h3. Test Objective: - # - #__ - # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. - # - #h3. Description: - # - #__ - # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer - # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. - # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer - # # Api consumer gets an item graph document with the results for the requested globalAssetId - # - #h3. Preconditions: - # - #__ - # # DT Twin Registry is up and running and contains valid test data set - # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints - # # EDC Consumer is set up and configures to the DT Registry and Submodel  - # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume - # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects - ## Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api consumer (role has t.b.d.) - @TRI-1009 @TRI-1942 @TRI-873 @TRI-1843 @TRI-1770 @TRI-1682 @DEV @INTEGRATION_TEST - Scenario: 🔨🧩[DEV-TEST] End 2 End for upward direction and SingleLevelUsageAsBuilt ⌛ - Given I register an IRS job for globalAssetId "urn:uuid:e7777066-e453-4431-beb3-4e99d042f923" and BPN "BPNL00000003AVTH" - And direction "upward" - And lookupBPNs "false" - When I get the job-id - Then I check, if the job has status "COMPLETED" within 20 minutes - And I check, if "summary" contains 2 completed and 0 failed items - And I check, if "bpn summary" contains 1 completed and 0 failed items - And I check, if "relationships" are equal to "TRI-1009-expected-relationships.json" \ No newline at end of file diff --git a/irs-cucumber-tests/src/test/resources/features/8_TRI-1018_TRI-768.feature b/irs-cucumber-tests/src/test/resources/features/8_TRI-1018_TRI-768.feature deleted file mode 100644 index 33854a6c18..0000000000 --- a/irs-cucumber-tests/src/test/resources/features/8_TRI-1018_TRI-768.feature +++ /dev/null @@ -1,152 +0,0 @@ -@TRI-1018 -Feature: 🎏⭐⭐⭐ [27.03.2023] 👍 Batch Processing for a bunch of globalAssetIds - #h2. User Story - # - #*As* a system which calculates the Remaining Useful Life of a vehicle type based on a bunch of parts - #*I want* to pass a number of globalAssetId to the IRS in one API call - #*so that* a related research for parts are bundled in a single IRS api call - #h2. Outcome - # - - # - #h2. Hints / Details / . Hints & NFR (Technical, Design & Content))* :  - # - #* trigger callback, if applicable - # * Implement error handling (determine batch status based on aggregated job status) - # * Persist and load batches - # * Extend tavern tests to cover new API - # - #h2. Sprint Planning 2 (04.04.2023): - # * Review current PR first - # * Address any bugs found in review or on DEV/INT - # * Implement missing checksum (discuss feature with Martin + Jan first) - # * Implement timeouts - - Background: - #@TRI-768 - Given the IRS URL "https://irs.dev.demo.catena-x.net" - And the admin user api key - - - #*Used testdataset*: 1.5.0 - # - #h3. Test Objective: - # - #__ - # * Get job created by batch processing to check correct parameter. - # - #h3. Description: - # - #__ - # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer - # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. - # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer - # # Api consumer gets an item graph document with the results for the requested globalAssetId - # - #h3. Preconditions: - # - #__ - # # DT Twin Registry is up and running and contains valid test data set - # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints - # # EDC Consumer is set up and configures to the DT Registry and Submodel  - # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume - # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects - ## Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api consumer (role has t.b.d.) - @TRI-1267 @TRI-1942 @TRI-873 @TRI-1843 @TRI-1770 @DEV @INTEGRATION_TEST - Scenario: 🔨🧩[DEV-TEST] Check correct job executions of batch processing (SingleLevelBomAsBuilt/SerialPart 3.0.0) - Given I register an IRS batch job for globalAssetIds and BPNs: - | globalAssetId | bpn | - | urn:uuid:771d2ccc-a081-4d3a-bcb2-46c6a0a33743 | BPNL0000000XX0X0 | - | urn:uuid:3db730be-9de5-4db5-a58d-684de36484e7 | BPNL0000000XX0X0 | - | urn:uuid:73173bf5-08df-4898-9d6d-8899015c161e | BPNL0000000XX0X0 | - | urn:uuid:07e0997f-4212-4456-8f27-164b30fc8355 | BPNL0000000XX0X0 | - | urn:uuid:88f51be1-3771-4335-8b5c-4c5050123127 | BPNL0000000XX0X0 | - | urn:uuid:d3c0bf85-d44f-47c5-990d-fec8a36065c6 | BPNL0000000XX0X0 | - | urn:uuid:51ff7c73-34e9-45d4-816c-d92578843e68 | BPNL0000000XX0X0 | - | urn:uuid:b21cfd5b-dcf4-46fa-9227-3eb693567dd8 | BPNL0000000XX0X0 | - | urn:uuid:8f9d8c7f-6d7a-48f1-9959-9fa3a1a7a891 | BPNL0000000XX0X0 | - | urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd | BPNL0000000XX0X0 | - | urn:uuid:a4a26b9c-9460-4cc5-8645-85916b86adb0 | BPNL0000000XX0X0 | - | urn:uuid:7b87f5d6-f75e-40f1-a439-779ae9f57a21 | BPNL0000000XX0X0 | - | urn:uuid:8914a66e-b59b-405f-afff-b97d71ebece3 | BPNL0000000XX0X0 | - | urn:uuid:a1082992-cc3b-4da1-af6b-aa692ed71461 | BPNL0000000XX0X0 | - | urn:uuid:0ea1aa79-10d4-4df1-8a5a-5b7eafd26163 | BPNL0000000XX0X0 | - | urn:uuid:1e35e091-3d3d-421e-9c7e-14cf1c9442a6 | BPNL0000000XX0X0 | - | urn:uuid:cc8e9448-b294-46e7-8110-337e8bfa3001 | BPNL0000000XX0X0 | - | urn:uuid:fa5804f1-8d4e-437c-aca2-a5491be61758 | BPNL0000000XX0X0 | - | urn:uuid:a0f6803c-e4dc-4cda-8ad2-91cc57868449 | BPNL0000000XX0X0 | - | urn:uuid:492781f5-62ff-4fb2-876c-3498e2844d13 | BPNL0000000XX0X0 | - | urn:uuid:d6142601-5e09-45fe-9b42-e53cf8cd458c | BPNL0000000XX0X0 | - And collectAspects "true" - And depth 1 - And direction "downward" - And lookupBPNs "false" - And bomLifecycle "asBuilt" - And batchStrategy "PRESERVE_BATCH_JOB_ORDER" - And batchSize 10 - And callbackUrl "https://www.check123.com" - And aspects : - | urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt | - | urn:samm:io.catenax.serial_part:3.0.0#SerialPart | - - When I get the order-id - Then I check, if the order contains 3 batches - And I check, if batch 3 contains 1 job - #check batchNumber = 3 and jobsInBatchChecksum = 1 - - When I get the batch-id of "first" batch - Then I check, if the batch contains 10 jobs - And I check, if the batchNumber is 1 - And batchTotal is 3 - And totalJobs is 21 - And jobsInBatchChecksum is 10 - - When I get the "first" job-id from batch - Then I check, if job parameter are set with aspects: - | urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt | - | urn:samm:io.catenax.serial_part:3.0.0#SerialPart | - And collectAspects is "true" - And depth is 1 - And direction is "downward" - And lookupBPNs is "false" - And bomLifecycle is "asBuilt" - And callbackUrl is "https://www.check123.com" \ No newline at end of file diff --git a/irs-cucumber-tests/src/test/resources/features/9_TRI-512_TRI-817.feature b/irs-cucumber-tests/src/test/resources/features/9_TRI-512_TRI-817.feature deleted file mode 100644 index 8e25a6248c..0000000000 --- a/irs-cucumber-tests/src/test/resources/features/9_TRI-512_TRI-817.feature +++ /dev/null @@ -1,197 +0,0 @@ -@TRI-512 -Feature: 👍 [AS_PLANNED] BomLifecycle 'asPlanned' implementation (1.0.0) - #*As* IRS-Consumer, - #*I want* to be able to traverse through a BOM as planned, - #*so that* I can use the IRS to access these structures. - # - #h2. Details: - #* [Details| https://confluence.catena-x.net/pages/viewpage.action?pageId=53248769] - #* (!) BOMAsPlanned : Update and extension of BOMAsPlanned is planned for Iteration 2. - #* (-) Traversal Aspect SingleLevelBomAsPlanned is used for bomLifecycle": "asPlanned" and direction "downwards" - #* (-) In case no aspect is choose by the api caller, default aspect "PartAsPlanned" is used for bomLifecycle "asPlanned" - # - #h2. Hint / Context :  - #---- - #* Check Semantic Hub for more detailed information about the Aspects - #* Aspects are: "PartAsPlanned“ and „SingleLevelBomAsPlanned“ - #* Contact Simon Schulz if further information is needed - #* Check if namespace starts with _io.catenax_ - #* "SingleLevelBomAsPlanned" results in QueryParameter => "bomLifecycle": "asPlanned", - #* update local Testdataset with reasonable Testdata (2 levels, 7 Component, each component has PartAsPlanned and SingleLevelBomAsPlanned with 2 children except level2 leafs) - #* use similar Structure as BomAsBuilt Dataset - #* https://confluence.catena-x.net/display/PL/Release+2+test+dataset%27s - #* Testdata: https://confluence.catena-x.net/display/PL/BoMAsPlanned+test+dataset version 1.3.4 asplanned alpha - # - # - #h2. TODO: - #---- - #* (-) implement functionality - #* (-) create Test-dataset for BoM as Planned data - #* (-) create Tests - #* (-) run Tests - #* (-) refactor API Documentation - # - #h2. Background: - #* (/) [~thomas.braun3@zf.com] will take care that testdata for BoM asPlanned are prepared. - #* (/) Aspect BoM asPlanned is already available. There is an update until Iteration 2 for . Version 1.0.0 - #* (/) Implementation BoM AsPlanned im IRS (Alignment Trace-X Implementation ESS in PI6) - #* (!) BoM As Planned will be extended Version 1.1.0 will be avaiable in iteration 2. - - Background: - #@TRI-817 - Given the IRS URL "https://irs.int.demo.catena-x.net" - And the admin user api key - - - #*Used testdataset*: 1.4.0 - # - #h3. Test Objective: - # - #__ - # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. - # - #h3. Description: - # - #__ - # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer - # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. - # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer - # # Api consumer gets an item graph document with the results for the requested globalAssetId - # - #h3. Preconditions: - # - #__ - # # DT Twin Registry is up and running and contains valid test data set - # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints - # # EDC Consumer is set up and configures to the DT Registry and Submodel  - # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume - # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects - ## Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api consumer (role has t.b.d.) - @TRI-872 @TRI-1452 @TRI-874 @INT @INTEGRATION_TEST @INTEGRATION_TEST_2.0.0 - Scenario: 🪓🧩[INT-TEST] End 2 End for BomLifecycle 'asPlanned' Vehicle Model A for BMW [BPNL00000003AYRE] - Given I register an IRS job for globalAssetId "urn:uuid:0733946c-59c6-41ae-9570-cb43a6e4c79e" and BPN "BPNL00000003AYRE" - And collectAspects "true" - And depth 10 - And direction "downward" - And bomLifecycle "asPlanned" - And aspects : - | urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned | - When I get the job-id - Then I check, if the job has status "COMPLETED" within 20 minutes - And I check, if "relationships" are equal to "TRI-872-expected-relationships.json" - And I check, if "submodels" are equal to "TRI-872-expected-submodels.json" - - #*Used testdataset*: 1.4.0 - # - #h3. Test Objective: - # - #__ - # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. - # - #h3. Description: - # - #__ - # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer - # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. - # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer - # # Api consumer gets an item graph document with the results for the requested globalAssetId - # - #h3. Preconditions: - # - #__ - # # DT Twin Registry is up and running and contains valid test data set - # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints - # # EDC Consumer is set up and configures to the DT Registry and Submodel  - # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume - # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects - ## Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api consumer (role has t.b.d.) - @TRI-894 @TRI-1452 @TRI-874 @INT @INTEGRATION_TEST @INTEGRATION_TEST_2.0.0 - Scenario: 🔨🧩[INT-TEST] End 2 End for BomLifecycle 'asPlanned' Vehicle Model C for SAP [BPNL00000003AZQP] - Given I register an IRS job for globalAssetId "urn:uuid:65e1554e-e5cd-4560-bac1-1352582122fb" and BPN "BPNL00000003AZQP" - And collectAspects "true" - And depth 10 - And direction "downward" - And bomLifecycle "asPlanned" - And aspects : - | urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned | - When I get the job-id - Then I check, if the job has status "COMPLETED" within 20 minutes - And I check, if "relationships" are equal to "TRI-894-expected-relationships.json" - And I check, if "submodels" are equal to "TRI-894-expected-submodels.json" - - #*Used testdataset*: 1.4.0 - # - #h3. Test Objective: - # - #__ - # * Get a complete item graph response for a requested and valid globalAssetId over IRS api. - # - #h3. Description: - # - #__ - # # Job execution for bom lifecycle "asBuild" and direction downward (AssemblyPartRelationship ) without given graph depth of 2 is registered in IRS processing for requested globalAssetId is initated by an irs api consumer - # # Job processed builds an item graph using AssemblyPartRelationship aspects discovered over DigitalTwin registry and collected over the related endpoint addresses. - # # Job is processing the complete item graph and stores the job in the internal job store where it could be requested by the api consumer - # # Api consumer gets an item graph document with the results for the requested globalAssetId - # - #h3. Preconditions: - # - #__ - # # DT Twin Registry is up and running and contains valid test data set - # # Submodel Servers up and running and providing consistent submodel aspects test data aligned with AAS shell endpoints - # # EDC Consumer is set up and configures to the DT Registry and Submodel  - # # AASWrapper and AASProxy infrastructure is up and running and configured to EDC Consume - # # An valid and existing globalAssetId is available, containing AssemblyPartRelationship aspects - ## Refer to *Hints* section for test Setup. - # - #h3. Hints: - # - #__ - # * Environment, settings and variables could be found here [IRS - Integration Test (Environments & Settings)|https://confluence.catena-x.net/pages/viewpage.action?pageId=42403839] - # * *IRS request collection:* Using IRS request collection to execute REST calls [Insomnia Collection |https://github.com/catenax-ng/tx-item-relationship-service/blob/main/local/testing/IRS_Request_Collection.json] - #* *Keycloak authentication:* Authorization of curl calls refer to Keycloak authentication [IRS Deployment | https://confluence.catena-x.net/pages/viewpage.action?pageId=40503341] - #* *Remark:* It is important to add client_secret into request - it can be found in shared keypass file CX-IRS.kdbx. Please contact [~Johannes.Zahn@bmw.de] or [~martin.kanal@doubleslash.de] to receive the client_secret. - # - #h3. Role: - # - #__ - # * IRS api consumer (role has t.b.d.) - @TRI-892 @TRI-1452 @TRI-874 @INT @INTEGRATION_TEST @INTEGRATION_TEST_2.0.0 - Scenario: 🔨🧩[INT-TEST] End 2 End for BomLifecycle 'asPlanned' Vehicle Model B for MercedesBenz [BPNL00000003AVTH] - Given I register an IRS job for globalAssetId "urn:uuid:68904173-ad59-4a77-8412-3e73fcafbd8b" and BPN "BPNL00000003AVTH" - And collectAspects "true" - And depth 10 - And direction "downward" - And bomLifecycle "asPlanned" - And aspects : - | urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned | - When I get the job-id - Then I check, if the job has status "COMPLETED" within 20 minutes - And I check, if "relationships" are equal to "TRI-892-expected-relationships.json" - And I check, if "submodels" are equal to "TRI-892-expected-submodels.json" \ No newline at end of file From 94b9c0ff125c499480d4f1520af056cd32b8700e Mon Sep 17 00:00:00 2001 From: ds-kgassner Date: Thu, 16 May 2024 10:27:58 +0200 Subject: [PATCH 7/8] Revert "fix(tests): [#503] fix submodel results for TRI-1914" This reverts commit 8c98a7d84a5ce8b5b5d2849b3f6e35022c9a8b5f. --- .../TRI-1914-expected-submodels.json | 74 +++++++++---------- 1 file changed, 37 insertions(+), 37 deletions(-) diff --git a/irs-cucumber-tests/src/test/resources/expected-files/TRI-1914-expected-submodels.json b/irs-cucumber-tests/src/test/resources/expected-files/TRI-1914-expected-submodels.json index c143b04544..862e847d27 100644 --- a/irs-cucumber-tests/src/test/resources/expected-files/TRI-1914-expected-submodels.json +++ b/irs-cucumber-tests/src/test/resources/expected-files/TRI-1914-expected-submodels.json @@ -1,40 +1,40 @@ { "submodels": [ - { - "identification": "urn:uuid:25f66a0d-2a2e-4af7-a134-c3559be44bb9", - "aspectType": "urn:samm:io.catenax.batch:3.0.0#Batch", - "contractAgreementId": "33d17201-e8a7-4ae1-a32a-182806fee651", - "payload": { - "localIdentifiers": [ - { - "value": "BPNL00000003AXS3", - "key": "batchId" - } - ], - "manufacturingInformation": { - "date": "2022-02-04T14:48:54Z", - "country": "HUR", - "sites": [ - { - "catenaXsiteId": "BPNS00000003AXS3", - "function": "production" - } - ] - }, - "catenaXId": "urn:uuid:d78045d5-4ee7-4980-b24c-31dafeb6f54f", - "partTypeInformation": { - "manufacturerPartId": "GH-22", - "partClassification": [ - { - "classificationDescription": "Standard data element types with associated classification scheme for electric components.", - "classificationStandard": "IEC", - "classificationID": "61360- 2:2012 " - } - ], - "nameAtManufacturer": "Mirror left" - }, - "itemVersion": "03" - } - } - ] + { + "identification": "urn:uuid:17354138-5bf3-45ba-899a-d5245d4d9c83", + "aspectType": "urn:samm:io.catenax.batch:3.0.0#Batch", + "contractAgreementId": "MDBmZDcyMDktYTE2MS00OWM5LWFiMzAtMmUwMDllNWE3MDAw:dXJuOnV1aWQ6Njc1NWMyZTAtNzc5Ni00NTYzLWE1NjktYTk3NmZjZTNiYjQ3:MjhhN2VlY2EtMDQwNi00ZjQ4LWI2NDktMjhiYzU0NzcyNTcx", + "payload": { + "localIdentifiers": [ + { + "value": "BPNL00000003AXS3", + "key": "batchId" + } + ], + "manufacturingInformation": { + "date": "2022-02-04T14:48:54", + "country": "HUR", + "sites": [ + { + "catenaXsiteId": "BPNS00000003AXS3", + "function": "production" + } + ] + }, + "catenaXId": "urn:uuid:ee9b9c9e-1416-45a3-b683-d98d5d88e548", + "partTypeInformation": { + "manufacturerPartId": "SC-00", + "partClassification": [ + { + "classificationDescription": "Standard data element types with associated classification scheme for electric components.", + "classificationStandard": "IEC", + "classificationID": "61360- 2:2012 " + } + ], + "nameAtManufacturer": "Mirror left" + }, + "itemVersion": "03" + } + } + ] } \ No newline at end of file From 6a375c51193f0f4d7e663368d3bc338f761d8be1 Mon Sep 17 00:00:00 2001 From: ds-kgassner Date: Thu, 16 May 2024 10:38:21 +0200 Subject: [PATCH 8/8] fix(cucumber):[#503] adjusting expected files --- .../TRI-893-expected-relationships.json | 76 +++++++++---------- .../TRI-983-expected-submodels.json | 2 +- 2 files changed, 39 insertions(+), 39 deletions(-) diff --git a/irs-cucumber-tests/src/test/resources/expected-files/TRI-893-expected-relationships.json b/irs-cucumber-tests/src/test/resources/expected-files/TRI-893-expected-relationships.json index 1d925525d2..8660465e5c 100644 --- a/irs-cucumber-tests/src/test/resources/expected-files/TRI-893-expected-relationships.json +++ b/irs-cucumber-tests/src/test/resources/expected-files/TRI-893-expected-relationships.json @@ -19,44 +19,44 @@ "aspectType": "SingleLevelBomAsPlanned", "bpn": "BPNL00000003B5MJ" }, - //{ - // "catenaXId": "urn:uuid:65e1554e-e5cd-4560-bac1-1352582122fb", - // "linkedItem": { - // "quantity": { - // "quantityNumber": 1.0, - // "measurementUnit": { - // "datatypeURI": null, - // "lexicalValue": "unit:piece" - // } - // }, - // "lifecycleContext": "asPlanned", - // "assembledOn": "2022-02-03T14:48:54.709Z", - // "lastModifiedOn": "2022-02-03T14:48:54.709Z", - // "childCatenaXId": "urn:uuid:e8c48a8e-d2d7-43d9-a867-65c70c85f5b8", - // "hasAlternatives": false - // }, - // "aspectType": "SingleLevelBomAsPlanned", - // "bpn": "BPNL50096894aNXY" - //}, - //{ - // "catenaXId": "urn:uuid:e8c48a8e-d2d7-43d9-a867-65c70c85f5b8", - // "linkedItem": { - // "quantity": { - // "quantityNumber": 1580.0, - // "measurementUnit": { - // "datatypeURI": null, - // "lexicalValue": "unit:gram" - // } - // }, - // "lifecycleContext": "asPlanned", - // "assembledOn": "2022-02-03T14:48:54.709Z", - // "lastModifiedOn": "2022-02-03T14:48:54.709Z", - // "childCatenaXId": "urn:uuid:94d086c6-0124-4f2c-86b2-1d419e47499d", - // "hasAlternatives": false - // }, - // "aspectType": "SingleLevelBomAsPlanned", - // "bpn": "BPNL50096894aNXY" - //}, + { + "catenaXId": "urn:uuid:65e1554e-e5cd-4560-bac1-1352582122fb", + "linkedItem": { + "quantity": { + "quantityNumber": 1.0, + "measurementUnit": { + "datatypeURI": null, + "lexicalValue": "unit:piece" + } + }, + "lifecycleContext": "asPlanned", + "assembledOn": "2022-02-03T14:48:54.709Z", + "lastModifiedOn": "2022-02-03T14:48:54.709Z", + "childCatenaXId": "urn:uuid:e8c48a8e-d2d7-43d9-a867-65c70c85f5b8", + "hasAlternatives": false + }, + "aspectType": "SingleLevelBomAsPlanned", + "bpn": "BPNL50096894aNXY" + }, + { + "catenaXId": "urn:uuid:e8c48a8e-d2d7-43d9-a867-65c70c85f5b8", + "linkedItem": { + "quantity": { + "quantityNumber": 1580.0, + "measurementUnit": { + "datatypeURI": null, + "lexicalValue": "unit:gram" + } + }, + "lifecycleContext": "asPlanned", + "assembledOn": "2022-02-03T14:48:54.709Z", + "lastModifiedOn": "2022-02-03T14:48:54.709Z", + "childCatenaXId": "urn:uuid:94d086c6-0124-4f2c-86b2-1d419e47499d", + "hasAlternatives": false + }, + "aspectType": "SingleLevelBomAsPlanned", + "bpn": "BPNL50096894aNXY" + }, { "catenaXId": "urn:uuid:94d086c6-0124-4f2c-86b2-1d419e47499d", "linkedItem": { diff --git a/irs-cucumber-tests/src/test/resources/expected-files/TRI-983-expected-submodels.json b/irs-cucumber-tests/src/test/resources/expected-files/TRI-983-expected-submodels.json index 5bb39d487a..f4b42ce9c3 100644 --- a/irs-cucumber-tests/src/test/resources/expected-files/TRI-983-expected-submodels.json +++ b/irs-cucumber-tests/src/test/resources/expected-files/TRI-983-expected-submodels.json @@ -51,7 +51,7 @@ "partTypeInformation": { "manufacturerPartId": "123564887-01", "classification": "product", - "nameAtManufacturer": "Tire Model A" + "nameAtManufacturer": "Tire Model A" }, "partSitesInformationAsPlanned": [ {