Skip to content

Commit

Permalink
feat(workflows):[#732] update all BPNs in tests and test data to BPNL…
Browse files Browse the repository at this point in the history
…00000003AYRE
  • Loading branch information
ds-jhartmann committed Jul 5, 2024
1 parent 62f4e84 commit fee26b9
Show file tree
Hide file tree
Showing 35 changed files with 4,179 additions and 3,171 deletions.
36 changes: 34 additions & 2 deletions .github/workflows/tavern-UMBRELLA.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
pip install tavern
pip list
- name: Run tests
- name: Run IRS tests
env:
IRS_HOST: 'http://localhost:8080'
IRS_ESS_HOST: 'http://localhost:8080'
Expand All @@ -66,7 +66,7 @@ jobs:
BPN_ESS_INCIDENT: 'BPNS00000003B6LU'
BPN_AS_PLANNED: 'BPNL00000003AYRE'
GLOBAL_ASSET_ID_AS_BUILT: 'urn:uuid:4509ea7c-c8d2-41a1-83ca-c214ee34af6c'
BPN_AS_BUILT: 'BPNL00000003AVTH'
BPN_AS_BUILT: 'BPNL00000003AYRE'
run: |
python -m pytest local/testing/api-tests/irs-api-tests.tavern.yaml --junitxml=tavern-results.xml
Expand All @@ -82,6 +82,38 @@ jobs:
files: |
result.xml
- name: Run ESS tests
if: always() && steps.setup-env.outcome == 'success'
env:
IRS_HOST: 'http://localhost:8080'
IRS_ESS_HOST: 'http://localhost:8080'
REGULAR_USER_API_KEY: 'password'
ADMIN_USER_API_KEY: 'password'
REGULAR_USER_API_KEY_ESS: 'password'
ADMIN_USER_API_KEY_ESS: 'password'
GLOBAL_ASSET_ID_AS_PLANNED: 'urn:uuid:0733946c-59c6-41ae-9570-cb43a6e4c79e'
GLOBAL_ASSET_ID_ESS_AS_BUILT: 'urn:uuid:2c57b0e9-a653-411d-bdcd-64787e9fd3a7'
BPN_ESS_AS_BUILT: 'BPNL00000003CRHK'
BPN_ESS_INCIDENT: 'BPNS00000003B6LU'
BPN_AS_PLANNED: 'BPNL00000003AYRE'
GLOBAL_ASSET_ID_AS_BUILT: 'urn:uuid:4509ea7c-c8d2-41a1-83ca-c214ee34af6c'
BPN_AS_BUILT: 'BPNL00000003AYRE'
run: |
python -m pytest local/testing/api-tests/irs-ess-api-tests.tavern.yaml --junitxml=tavern-ess-results.xml
- name: Mask credentials
if: always()
run: |
sed "s/access_tok.*:s = '.*'//g" tavern-ess-results.xml | sed "s/Authorization: Bearer .*/Authorization:/g" | uniq > ess-result.xml
- name: Publish Tavern Results
uses: EnricoMi/publish-unit-test-result-action@v2.16.1

Check notice

Code scanning / KICS

Unpinned Actions Full Length Commit SHA Note

Action is not pinned to a full length commit SHA.
if: always()
with:
files: |
ess-result.xml
- name: Attach logs
if: always() && steps.setup-env.outcome == 'success'
uses: ./.github/actions/umbrella-irs-logs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"hasAlternatives": false
},
"aspectType": "SingleLevelBomAsBuilt",
"bpn": "BPNL00000003CSAP"
"bpn": "BPNL00000003AYRE"
},
{
"catenaXId": "urn:uuid:bec0a457-4d6b-4c1c-88f7-125d04f04d68",
Expand All @@ -36,7 +36,7 @@
"hasAlternatives": false
},
"aspectType": "SingleLevelBomAsBuilt",
"bpn": "BPNL00000007RI31"
"bpn": "BPNL00000003AYRE"
},
{
"catenaXId": "urn:uuid:6e709d64-bdc7-49f4-a87d-4e1f7e2c3b7c",
Expand All @@ -55,7 +55,7 @@
"hasAlternatives": false
},
"aspectType": "SingleLevelBomAsBuilt",
"bpn": "BPNL00000007RNYV"
"bpn": "BPNL00000003AYRE"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"hasAlternatives": false
},
"aspectType": "SingleLevelBomAsPlanned",
"bpn": "BPNL00000007QG00"
"bpn": "BPNL00000003AYRE"
},
{
"catenaXId": "urn:uuid:0bc18367-69c3-428f-925d-6f8a461edefd",
Expand All @@ -36,7 +36,7 @@
"hasAlternatives": false
},
"aspectType": "SingleLevelBomAsPlanned",
"bpn": "BPNL00000007QG00"
"bpn": "BPNL00000003AYRE"
},
{
"catenaXId": "urn:uuid:4e8dd2c1-0d21-4794-af92-03a12f85a2eb",
Expand All @@ -55,7 +55,7 @@
"hasAlternatives": false
},
"aspectType": "SingleLevelBomAsPlanned",
"bpn": "BPNL00000007QG00"
"bpn": "BPNL00000003AYRE"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"partSitesInformationAsPlanned": [
{
"functionValidUntil": "2023-12-11T06:14:55.183Z",
"catenaXsiteId": "BPNL00000007QG00",
"catenaXsiteId": "BPNL00000003AYRE",
"function": "production",
"functionValidFrom": "2023-12-11T06:14:55.181Z"
}
Expand All @@ -35,7 +35,7 @@
"partSitesInformationAsPlanned": [
{
"functionValidUntil": "2023-12-11T06:14:55.183Z",
"catenaXsiteId": "BPNL00000007QG00",
"catenaXsiteId": "BPNL00000003AYRE",
"function": "production",
"functionValidFrom": "2023-12-11T06:14:55.181Z"
}
Expand All @@ -56,7 +56,7 @@
"partSitesInformationAsPlanned": [
{
"functionValidUntil": "2023-12-11T06:14:55.183Z",
"catenaXsiteId": "BPNL00000007QG00",
"catenaXsiteId": "BPNL00000003AYRE",
"function": "production",
"functionValidFrom": "2023-12-11T06:14:55.181Z"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"hasAlternatives": false
},
"aspectType": "SingleLevelUsageAsBuilt",
"bpn": "BPNL00000007QG00"
"bpn": "BPNL00000003AYRE"
},
{
"catenaXId": "urn:uuid:677582a5-bdca-45e1-a671-7a98ff5ddcb7",
Expand All @@ -36,7 +36,7 @@
"hasAlternatives": false
},
"aspectType": "SingleLevelUsageAsBuilt",
"bpn": "BPNL00000007QG00"
"bpn": "BPNL00000003AYRE"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"hasAlternatives": false
},
"aspectType": "SingleLevelUsageAsPlanned",
"bpn": "BPNL00000007QG00"
"bpn": "BPNL00000003AYRE"
},
{
"catenaXId": "urn:uuid:4e8aa114-cf50-4780-811c-11723c9f0647",
Expand All @@ -36,7 +36,7 @@
"hasAlternatives": false
},
"aspectType": "SingleLevelUsageAsPlanned",
"bpn": "BPNL00000007QG00"
"bpn": "BPNL00000003AYRE"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"hasAlternatives": false
},
"aspectType": "SingleLevelUsageAsBuilt",
"bpn": "BPNL00000003AVTH"
"bpn": "BPNL00000003AYRE"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"hasAlternatives": false
},
"aspectType": "SingleLevelBomAsBuilt",
"bpn": "BPNL00000003AXS3"
"bpn": "BPNL00000003AYRE"
},
{
"catenaXId": "urn:uuid:54d9154a-01a4-47f1-a798-57d86a5744fa",
Expand All @@ -36,7 +36,7 @@
"hasAlternatives": false
},
"aspectType": "SingleLevelBomAsBuilt",
"bpn": "BPNL00000003B0Q0"
"bpn": "BPNL00000003AYRE"
},
{
"catenaXId": "urn:uuid:54d9154a-01a4-47f1-a798-57d86a5744fa",
Expand All @@ -55,7 +55,7 @@
"hasAlternatives": false
},
"aspectType": "SingleLevelBomAsBuilt",
"bpn": "BPNL00000003B3NX"
"bpn": "BPNL00000003AYRE"
},
{
"catenaXId": "urn:uuid:81dbecc3-aa15-4da6-9f8c-d48638e333c2",
Expand All @@ -74,7 +74,7 @@
"hasAlternatives": false
},
"aspectType": "SingleLevelBomAsBuilt",
"bpn": "BPNL00000003B0Q0"
"bpn": "BPNL00000003AYRE"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"payload": {
"localIdentifiers": [
{
"value": "BPNL00000003AXS3",
"value": "BPNL00000003AYRE",
"key": "batchId"
}
],
Expand Down Expand Up @@ -43,7 +43,7 @@
"payload": {
"localIdentifiers": [
{
"value": "BPNL00000003B0Q0",
"value": "BPNL00000003AYRE",
"key": "batchId"
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"payload": {
"localIdentifiers": [
{
"value": "BPNL00000000BJTL",
"value": "BPNL00000003AYRE",
"key": "manufacturerId"
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"payload": {
"localIdentifiers": [
{
"value": "BPNL00000003AXS3",
"value": "BPNL00000003AYRE",
"key": "batchId"
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"unit": "unit:kilogram",
"value": 0.11
},
"businessPartner": "BPNL00000003AXS3",
"businessPartner": "BPNL00000003AYRE",
"createdOn": "2022-02-03T14:48:54.709Z",
"lastModifiedOn": "2022-02-03T14:48:54.709Z"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"hasAlternatives": false
},
"aspectType": "SingleLevelBomAsBuilt",
"bpn": "BPNL00000003AZQP"
"bpn": "BPNL00000003AYRE"
},
{
"catenaXId": "urn:uuid:4b4d41c3-7a7c-4544-b718-8167a70f517d",
Expand All @@ -36,7 +36,7 @@
"hasAlternatives": false
},
"aspectType": "SingleLevelBomAsBuilt",
"bpn": "BPNL00000003B3NX"
"bpn": "BPNL00000003AYRE"
},
{
"catenaXId": "urn:uuid:4b4d41c3-7a7c-4544-b718-8167a70f517d",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"hasAlternatives": false
},
"aspectType": "SingleLevelBomAsBuilt",
"bpn": "BPNL00000003B3NX"
"bpn": "BPNL00000003AYRE"
},
{
"catenaXId": "urn:uuid:aeada37a-a1d8-4535-a476-5f5e1142e3fe",
Expand All @@ -36,7 +36,7 @@
"hasAlternatives": false
},
"aspectType": "SingleLevelBomAsBuilt",
"bpn": "BPNL00000003AZQP"
"bpn": "BPNL00000003AYRE"
},
{
"catenaXId": "urn:uuid:aeada37a-a1d8-4535-a476-5f5e1142e3fe",
Expand Down Expand Up @@ -74,7 +74,7 @@
"hasAlternatives": false
},
"aspectType": "SingleLevelBomAsBuilt",
"bpn": "BPNL00000003B0Q0"
"bpn": "BPNL00000003AYRE"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"value": 20
},
"hasAlternatives": false,
"businessPartner": "BPNL00000003B3NX",
"businessPartner": "BPNL00000003AYRE",
"createdOn": "2022-02-03T14:48:54.709Z",
"lastModifiedOn": "2022-02-03T14:48:54.709Z"
},
Expand All @@ -36,7 +36,7 @@
"value": 0.2341
},
"hasAlternatives": false,
"businessPartner": "BPNL00000003AZQP",
"businessPartner": "BPNL00000003AYRE",
"createdOn": "2022-02-03T14:48:54.709Z",
"lastModifiedOn": "2022-02-03T14:48:54.709Z"
}
Expand All @@ -50,7 +50,7 @@
"payload": {
"localIdentifiers": [
{
"value": "BPNL00000003B2OM",
"value": "BPNL00000003AYRE",
"key": "manufacturerId"
},
{
Expand Down Expand Up @@ -175,7 +175,7 @@
"payload": {
"localIdentifiers": [
{
"value": "BPNL00000003B0Q0",
"value": "BPNL00000003AYRE",
"key": "batchId"
}
],
Expand Down Expand Up @@ -218,7 +218,7 @@
"value": 0.1908
},
"hasAlternatives": false,
"businessPartner": "BPNL00000003B0Q0",
"businessPartner": "BPNL00000003AYRE",
"createdOn": "2022-02-03T14:48:54.709Z",
"lastModifiedOn": "2022-02-03T14:48:54.709Z"
}
Expand All @@ -232,7 +232,7 @@
"payload": {
"localIdentifiers": [
{
"value": "BPNL00000003B3NX",
"value": "BPNL00000003AYRE",
"key": "manufacturerId"
},
{
Expand Down Expand Up @@ -302,7 +302,7 @@
"payload": {
"localIdentifiers": [
{
"value": "BPNL00000003AXS3",
"value": "BPNL00000003AYRE",
"key": "batchId"
}
],
Expand Down Expand Up @@ -371,7 +371,7 @@
"payload": {
"localIdentifiers": [
{
"value": "BPNL00000003B0Q0",
"value": "BPNL00000003AYRE",
"key": "batchId"
}
],
Expand Down
Loading

0 comments on commit fee26b9

Please sign in to comment.