Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore/529 e2e test backward compatibility #706

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
025699e
chore(tests):[#529] Correct typo in javadoc
dsmf Jun 6, 2024
538b9c8
Merge branch 'refs/heads/main' into chore/529-e2e-test-backward-compa…
dsmf Jun 7, 2024
ec5b48f
chore(tests):[#529] Add cucumber test file
dsmf Jun 10, 2024
34a05fd
chore(docs):[#529] Add semantic model links to documentation
dsmf Jun 12, 2024
5abf46b
chore(docs):[#529] Add documentation for the tests
dsmf Jun 12, 2024
5bc917a
chore(docs):[#529] Test data for SingleLevelBomAsPlanned
dsmf Jun 12, 2024
8326b0b
chore(docs):[#529] Adjust and rename test
dsmf Jun 12, 2024
ea99ed1
chore(docs):[#529] Update documentation for SingleLevelBomAsPlanned
dsmf Jun 12, 2024
b4142d5
chore(test):[#529] Test data for SingleLevelBomAsBuilt
dsmf Jun 12, 2024
2742e61
chore(test):[#529] Corrections, more preparations
dsmf Jun 12, 2024
ef9815b
chore(test):[#529] Removed SingleLevelBomAsSpecified
dsmf Jun 13, 2024
78881d0
chore(test):[#529] Corrections and addition of SingleLevelUsageAsBuil…
dsmf Jun 13, 2024
f03c0a2
chore(test):[#529] Corrections
dsmf Jun 13, 2024
24c8e30
chore(test):[#529] Corrections SingleLevelBomAsBuilt
dsmf Jun 17, 2024
1ac0a32
chore(testdata):[#529] Fix SingleLevelBomAsBuilt testdata
dsmf Jun 17, 2024
bef4ac1
chore(testdata):[#529] Fiximport script
dsmf Jun 17, 2024
b49de9f
chore(test):[#529] Fix test and expected submodels for SingleLevelBom…
dsmf Jun 17, 2024
75ac5dc
chore(test):[#529] Add note
dsmf Jun 17, 2024
9a05208
chore(test):[#529] Correct SingleLeveBomAsPlanned
dsmf Jun 17, 2024
92183db
chore(test):[#529] Correct SingleLevelUsageAsBuilt
dsmf Jun 18, 2024
75ce057
chore(test):[#529] Correct SingleLevelUsageAsPlanned
dsmf Jun 18, 2024
450fb0c
chore(test):[#529] connect with JIRA issues, copyright header
dsmf Jun 18, 2024
946efa5
chore(test):[#529] rename feature file
dsmf Jun 18, 2024
e0bfdaa
chore(test):[#529] move feature file to features dir
dsmf Jun 18, 2024
5c2ffdd
chore(test):[#529] update documentation
dsmf Jun 18, 2024
878690b
chore(test):[#529] update changelog
dsmf Jun 18, 2024
61b2b15
Merge remote-tracking branch 'refs/remotes/origin/main' into chore/52…
dsmf Jun 19, 2024
ed36440
chore(test):[#529] move feature file to correct folder
dsmf Jun 19, 2024
6e1eeff
chore(test):[#529] fix merge conflicts
dsmf Jun 19, 2024
40072d3
Merge branch 'main' of https://github.com/eclipse-tractusx/item-relat…
dsmf Jun 19, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading