Skip to content

Commit

Permalink
Merge pull request #706 from dsmf/chore/529-e2e-test-backward-compati…
Browse files Browse the repository at this point in the history
…bility

Chore/529 e2e test backward compatibility
  • Loading branch information
ds-jhartmann authored Jun 19, 2024
2 parents b631113 + 40072d3 commit a23c232
Show file tree
Hide file tree
Showing 12 changed files with 662 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ _**For better traceability add the corresponding GitHub issue number in each cha

## Added

- Added tests for aspect version compatibility. #529
- Added endpoint for dedicated removal of policy from BPNL. #559
- Integration Test Policy Store API Unhappy Path. #519
- Support for SingleLevelUsageAsPlanned. #470
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ Structure of test data:
Test:

- [Cucumber test - scenario "SingleLevelBomAsBuilt Version Compatibility"](../../../irs-cucumber-tests/src/test/resources/features/irs-dev-529-version-compatibility.feature)
- [529-single-level-bom-as-built-expected-relationships.json](../../../irs-cucumber-tests/src/test/resources/expected-files/529-single-level-bom-as-built-expected-relationships.json)
- [529-single-level-bom-as-built-expected-submodels.json](../../../irs-cucumber-tests/src/test/resources/expected-files/529-single-level-bom-as-built-expected-submodels.json)


## SingleLevelBomAsPlanned Version Compatibility
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"relationships": [
{
"catenaXId": "urn:uuid:bec0a457-4d6b-4c1c-88f7-125d04f04d68",
"linkedItem": {
"quantity": {
"quantityNumber": 20.0,
"measurementUnit": {
"datatypeURI": null,
"lexicalValue": "unit:piece"
}
},
"lifecycleContext": "asBuilt",
"assembledOn": "2022-02-03T14:48:54.709Z",
"lastModifiedOn": "2022-02-03T14:48:54.709Z",
"childCatenaXId": "urn:uuid:6e709d64-bdc7-49f4-a87d-4e1f7e2c3b7c",
"hasAlternatives": false
},
"aspectType": "SingleLevelBomAsBuilt",
"bpn": "BPNL00000003CSAP"
},
{
"catenaXId": "urn:uuid:bec0a457-4d6b-4c1c-88f7-125d04f04d68",
"linkedItem": {
"quantity": {
"quantityNumber": 20.0,
"measurementUnit": {
"datatypeURI": null,
"lexicalValue": "unit:piece"
}
},
"lifecycleContext": "asBuilt",
"assembledOn": "2022-02-03T14:48:54.709Z",
"lastModifiedOn": "2022-02-03T14:48:54.709Z",
"childCatenaXId": "urn:uuid:589d7f27-d200-4009-b24c-27b0f4b81528",
"hasAlternatives": false
},
"aspectType": "SingleLevelBomAsBuilt",
"bpn": "BPNL00000007RI31"
},
{
"catenaXId": "urn:uuid:6e709d64-bdc7-49f4-a87d-4e1f7e2c3b7c",
"linkedItem": {
"quantity": {
"quantityNumber": 2.5,
"measurementUnit": {
"datatypeURI": null,
"lexicalValue": "unit:litre"
}
},
"lifecycleContext": "asBuilt",
"assembledOn": "2022-02-03T14:48:54.709Z",
"lastModifiedOn": "2022-02-03T14:48:54.709Z",
"childCatenaXId": "urn:uuid:d23f278b-2d8b-4f11-af76-2a9a7bb91cfc",
"hasAlternatives": false
},
"aspectType": "SingleLevelBomAsBuilt",
"bpn": "BPNL00000007RNYV"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,161 @@
{
"submodels": [
{
"identification": "urn:uuid:3cbca689-83ed-40d9-81c1-3d060d54fd80",
"aspectType": "urn:samm:io.catenax.serial_part:1.0.1#SerialPart",
"contractAgreementId": null,
"payload": {
"catenaXId": "urn:uuid:bec0a457-4d6b-4c1c-88f7-125d04f04d68",
"localIdentifiers": [
{
"value": "SN12345678",
"key": "partInstanceID"
}
],
"manufacturingInformation": {
"date": "2024-02-04T14:48:54",
"country": "HUR"
},
"partTypeInformation": {
"manufacturerPartId": "456-7.890-1234-A",
"customerPartId": "PRT-12345",
"classification": "product",
"nameAtManufacturer": "Test part 1",
"nameAtCustomer": "Test part 1 customer"
}
}
},
{
"identification": "urn:uuid:b7a19cfc-eed3-4f98-a440-352641cad328",
"aspectType": "urn:samm:io.catenax.serial_part:2.0.0#SerialPart",
"contractAgreementId": null,
"payload": {
"catenaXId": "urn:uuid:6e709d64-bdc7-49f4-a87d-4e1f7e2c3b7c",
"localIdentifiers": [
{
"value": "SN34567890",
"key": "partInstanceID"
}
],
"manufacturingInformation": {
"date": "2024-05-04T03:02:01",
"country": "HUR"
},
"sites": [
{
"catenaXsiteId": "BPNS4567890123ZZ",
"function": "production"
}
],
"partTypeInformation": {
"manufacturerPartId": "678-9.012-3456-C",
"customerPartId": "PRT-90123",
"classification": "product",
"nameAtManufacturer": "Test part 4",
"nameAtCustomer": "Test part 4 customer"
}
}
},
{
"identification": "urn:uuid:11d9d776-1239-45f8-9f28-e8e841a78b92",
"aspectType": "urn:samm:io.catenax.serial_part:2.0.0#SerialPart",
"contractAgreementId": null,
"payload": {
"catenaXId": "urn:uuid:589d7f27-d200-4009-b24c-27b0f4b81528",
"localIdentifiers": [
{
"value": "SN23456789",
"key": "partInstanceID"
}
],
"manufacturingInformation": {
"date": "2024-03-04T11:12:13",
"country": "HUR"
},
"sites": [
{
"catenaXsiteId": "BPNS3456789012ZZ",
"function": "production"
}
],
"partTypeInformation": {
"manufacturerPartId": "567-8.901-2345-B",
"customerPartId": "PRT-78901",
"classification": "product",
"nameAtManufacturer": "Test part 2",
"nameAtCustomer": "Test part 2 customer"
}
}
},
{
"identification": "urn:uuid:d68ebb1b-9ab5-405f-956d-a5b514484c99",
"aspectType": "urn:samm:io.catenax.serial_part:3.0.0#SerialPart",
"contractAgreementId": null,
"payload": {
"catenaXId": "urn:uuid:589d7f27-d200-4009-b24c-27b0f4b81528",
"localIdentifiers": [
{
"value": "SN56789012",
"key": "partInstanceId"
}
],
"manufacturingInformation": {
"date": "2024-05-05T07:08:09Z",
"country": "HUR",
"sites": [
{
"catenaXsiteId": "BPNS5678901234ZZ",
"function": "production"
}
]
},
"partTypeInformation": {
"partClassification": [
{
"classificationStandard": "IEC",
"classificationID": "72451- 3:2012 ",
"classificationDescription": "Standard data element types with associated classification scheme for electric components."
}
],
"manufacturerPartId": "890-1.234-5678-E",
"customerPartId": "PRT-89012",
"nameAtManufacturer": "Test part 3",
"nameAtCustomer": "Test part 3 customer"
}
}
},
{
"identification": "urn:uuid:1c685bc9-efdc-4f74-b5f1-c9d2af385b55",
"aspectType": "urn:samm:io.catenax.serial_part:2.0.0#SerialPart",
"contractAgreementId": null,
"payload": {
"catenaXId": "urn:uuid:d23f278b-2d8b-4f11-af76-2a9a7bb91cfc",
"localIdentifiers": [
{
"value": "SN45678901",
"key": "partInstanceID"
}
],
"manufacturingInformation": {
"date": "2024-06-05T04:03:02",
"country": "HUR"
},
"sites": [
{
"catenaXsiteId": "BPNS5678901234ZZ",
"function": "production"
}
],
"partTypeInformation": {
"manufacturerPartId": "789-0.123-4567-D",
"customerPartId": "PRT-01234",
"classification": "product",
"nameAtManufacturer": "Test part 5",
"nameAtCustomer": "Test part 5 customer"
}
}
}
],
"bpns": [
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"relationships": [
{
"catenaXId": "urn:uuid:0bc18367-69c3-428f-925d-6f8a461edefd",
"linkedItem": {
"quantity": {
"quantityNumber": 20.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:4e8dd2c1-0d21-4794-af92-03a12f85a2eb",
"hasAlternatives": false
},
"aspectType": "SingleLevelBomAsPlanned",
"bpn": "BPNL00000007QG00"
},
{
"catenaXId": "urn:uuid:0bc18367-69c3-428f-925d-6f8a461edefd",
"linkedItem": {
"quantity": {
"quantityNumber": 20.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:db60f953-8894-4568-ab74-746ce00e78a1",
"hasAlternatives": false
},
"aspectType": "SingleLevelBomAsPlanned",
"bpn": "BPNL00000007QG00"
},
{
"catenaXId": "urn:uuid:4e8dd2c1-0d21-4794-af92-03a12f85a2eb",
"linkedItem": {
"quantity": {
"quantityNumber": 2.5,
"measurementUnit": {
"datatypeURI": null,
"lexicalValue": "unit:litre"
}
},
"lifecycleContext": "asPlanned",
"assembledOn": "2022-02-03T14:48:54.709Z",
"lastModifiedOn": "2022-02-03T14:48:54.709Z",
"childCatenaXId": "urn:uuid:7eb80b65-2e43-438c-8c2a-32b814d2cb88",
"hasAlternatives": false
},
"aspectType": "SingleLevelBomAsPlanned",
"bpn": "BPNL00000007QG00"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{
"submodels": [
{
"identification": "urn:uuid:169b7e61-88ee-47d0-8329-68ed5b7148d8",
"aspectType": "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned",
"contractAgreementId": null,
"payload": {
"catenaXId": "urn:uuid:4e8dd2c1-0d21-4794-af92-03a12f85a2eb",
"partTypeInformation": {
"classification": "product",
"manufacturerPartId": "345-6.789-0123-A",
"nameAtManufacturer": "Test part 2"
},
"partSitesInformationAsPlanned": [
{
"functionValidUntil": "2023-12-11T06:14:55.183Z",
"catenaXsiteId": "BPNL00000007QG00",
"function": "production",
"functionValidFrom": "2023-12-11T06:14:55.181Z"
}
]
}
},
{
"identification": "urn:uuid:24fe09b2-9a72-474d-9d01-268b417267e1",
"aspectType": "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned",
"contractAgreementId": null,
"payload": {
"catenaXId": "urn:uuid:db60f953-8894-4568-ab74-746ce00e78a1",
"partTypeInformation": {
"classification": "product",
"manufacturerPartId": "123-4.567-8901-A",
"nameAtManufacturer": "Test part 1"
},
"partSitesInformationAsPlanned": [
{
"functionValidUntil": "2023-12-11T06:14:55.183Z",
"catenaXsiteId": "BPNL00000007QG00",
"function": "production",
"functionValidFrom": "2023-12-11T06:14:55.181Z"
}
]
}
},
{
"identification": "urn:uuid:c419973a-5e86-4821-b2f0-b064c3afd488",
"aspectType": "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned",
"contractAgreementId": null,
"payload": {
"catenaXId": "urn:uuid:7eb80b65-2e43-438c-8c2a-32b814d2cb88",
"partTypeInformation": {
"classification": "product",
"manufacturerPartId": "234-5.678-9012-A",
"nameAtManufacturer": "Test part 3"
},
"partSitesInformationAsPlanned": [
{
"functionValidUntil": "2023-12-11T06:14:55.183Z",
"catenaXsiteId": "BPNL00000007QG00",
"function": "production",
"functionValidFrom": "2023-12-11T06:14:55.181Z"
}
]
}
}
]
}
Loading

0 comments on commit a23c232

Please sign in to comment.