Skip to content

Commit

Permalink
chore(test):[#529] Correct SingleLevelUsageAsPlanned
Browse files Browse the repository at this point in the history
  • Loading branch information
dsmf committed Jun 18, 2024
1 parent 92183db commit 75ce057
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ Test data:


Structure of test data:
- SingleLevelUsageAsPlanned 3.0.0, BPNL00E2EASPCPT1, urn:uuid:c4fa7e6c-6aed-4bc4-acc9-b8839c94d13c
- SingleLevelUsageAsPlanned 3.1.0, BPNL00E2EASPCP11, urn:uuid:d7a1adba-5c99-4b86-b1c6-9f0bb341f170
- SingleLevelUsageAsPlanned 3.0.0, BPNL00000007QG00, urn:uuid:4e8aa114-cf50-4780-811c-11723c9f0647
- SingleLevelUsageAsPlanned 3.1.0, BPNL00000007QG00, urn:uuid:01f4b57e-1ab3-4822-ab1b-e20651f6fd32
- futureAddedField
- SingleLevelUsageAsPlanned 2.0.0, BPNL00E2EASPCP12, urn:uuid:bdacb7fa-aeb2-4c4d-b555-c8b92b014785
- SingleLevelUsageAsPlanned 2.0.0, BPNL00000007QG00, urn:uuid:7fe9ac70-23c4-449a-88c1-3832a1cc6da6


Test:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,42 @@
{
"_todo": "todo #529 execute test, check if result is ok, add relationships here",
"relationships": [
{
"catenaXId": "urn:uuid:01f4b57e-1ab3-4822-ab1b-e20651f6fd32",
"linkedItem": {
"quantity": {
"quantityNumber": 12.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:7fe9ac70-23c4-449a-88c1-3832a1cc6da6",
"hasAlternatives": false
},
"aspectType": "SingleLevelUsageAsPlanned",
"bpn": "BPNL00000007QG00"
},
{
"catenaXId": "urn:uuid:4e8aa114-cf50-4780-811c-11723c9f0647",
"linkedItem": {
"quantity": {
"quantityNumber": 11.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:01f4b57e-1ab3-4822-ab1b-e20651f6fd32",
"hasAlternatives": false
},
"aspectType": "SingleLevelUsageAsPlanned",
"bpn": "BPNL00000007QG00"
}
]
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"_todo": "todo #529 execute test, check if result is ok, add submodels here",
"submodels": [
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ Feature: [TESTING] Integration E2E Tests for backward compatibility #529
######################################################################################################################

Scenario: SingleLevelUsageAsPlanned
Given I register an IRS job for globalAssetId "urn:uuid:15cf842e-b20e-4219-a61b-99c01cec42ea" and BPN "BPNL00000003AVTH"
Given I register an IRS job for globalAssetId "urn:uuid:7fe9ac70-23c4-449a-88c1-3832a1cc6da6" and BPN "BPNL00000007QG00"
And collectAspects "true"
And depth 10

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"https://catenax.io/schema/TestDataContainer/1.0.0": [
{
"catenaXId": "urn:uuid:4e8aa114-cf50-4780-811c-11723c9f0647",
"bpnl": "BPNL00E2EASPCPT1",
"bpnl": "BPNL00000007QG00",
"urn:samm:io.catenax.single_level_usage_as_planned:2.0.0#SingleLevelUsageAsPlanned": [
{
"catenaXId": "urn:uuid:4e8aa114-cf50-4780-811c-11723c9f0647",
Expand All @@ -51,14 +51,14 @@
},
{
"catenaXId": "urn:uuid:01f4b57e-1ab3-4822-ab1b-e20651f6fd32",
"bpnl": "BPNL00E2EASPCP11",
"bpnl": "BPNL00000007QG00",
"urn:samm:io.catenax.single_level_usage_as_planned:2.1.0#SingleLevelUsageAsPlanned": [
{
"catenaXId": "urn:uuid:01f4b57e-1ab3-4822-ab1b-e20651f6fd32",
"parentItems": [
{
"catenaXId": "urn:uuid:4e8aa114-cf50-4780-811c-11723c9f0647",
"businessPartner": "BPNL00E2EASPCPT1",
"businessPartner": "BPNL00000007QG00",
"validityPeriod": {
"validFrom": "2023-03-21T08:17:29.187+01:00",
"validTo": "2024-07-01T16:10:00.000+01:00"
Expand All @@ -72,22 +72,22 @@
}
],
"customers": [
"BPNL00E2EASPCPT1"
"BPNL00000007QG00"
],
"futureAddedField": "test"
}
]
},
{
"catenaXId": "urn:uuid:7fe9ac70-23c4-449a-88c1-3832a1cc6da6",
"bpnl": "BPNL00E2EASPCP12",
"bpnl": "BPNL00000007QG00",
"urn:samm:io.catenax.single_level_usage_as_planned:2.0.0#SingleLevelUsageAsPlanned": [
{
"catenaXId": "urn:uuid:7fe9ac70-23c4-449a-88c1-3832a1cc6da6",
"parentItems": [
{
"catenaXId": "urn:uuid:4e8aa114-cf50-4780-811c-11723c9f0647",
"businessPartner": "BPNL00E2EASPCPT1",
"catenaXId": "urn:uuid:01f4b57e-1ab3-4822-ab1b-e20651f6fd32",
"businessPartner": "BPNL00000007QG00",
"validityPeriod": {
"validFrom": "2023-03-21T08:17:29.187+01:00",
"validTo": "2024-07-01T16:10:00.000+01:00"
Expand All @@ -101,7 +101,7 @@
}
],
"customers": [
"BPNL00E2EASPCPT1"
"BPNL00000007QG00"
]
}
]
Expand Down

0 comments on commit 75ce057

Please sign in to comment.