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

Added cucumber tests for quality investigations #368

Merged
merged 115 commits into from
Nov 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
115 commits
Select commit Hold shift + click to select a range
ed8d18e
feat(testing):[TRACEFOSS-2838] added cypress checks for test TRACEFOS…
ds-alexander-bulgakov Nov 17, 2023
ad1585d
feat(testing):[TRACEFOSS-2838] some changes on cypress methods
ds-alexander-bulgakov Nov 20, 2023
f7bb4f1
feat(testing):[TRACEFOSS-2838] fix while testing, added package trace…
ds-alexander-bulgakov Nov 20, 2023
d1584cd
feat(testing):[TRACEFOSS-2838] fix while testing, several adjustments
ds-alexander-bulgakov Nov 21, 2023
078b5b0
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 21, 2023
3a769fc
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 21, 2023
b608991
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 21, 2023
ddfe534
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 21, 2023
253e7d7
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 21, 2023
8b2ea8d
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 21, 2023
cda6d19
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 21, 2023
21026d0
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 21, 2023
845cf6f
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 21, 2023
280d1bc
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 21, 2023
b56d2fb
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 21, 2023
4e370b3
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 21, 2023
da2bb06
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing, refacto…
ds-alexander-bulgakov Nov 21, 2023
904f60c
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing, refacto…
ds-alexander-bulgakov Nov 21, 2023
7cf65dc
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 23, 2023
1ee8555
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 23, 2023
7042b67
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 23, 2023
21cd4c3
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 23, 2023
4d63d7b
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 23, 2023
38661c9
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 23, 2023
004a7e4
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 23, 2023
4f10aba
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 23, 2023
d24de19
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 23, 2023
2e59eb4
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 23, 2023
a00a433
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 23, 2023
d571d79
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 23, 2023
f76dddd
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 23, 2023
a3541e7
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 23, 2023
bd65cef
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 23, 2023
e75bfb6
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 23, 2023
a10897d
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 23, 2023
f75fcb7
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 23, 2023
92d013e
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 23, 2023
03fe539
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 23, 2023
b0fcb49
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 23, 2023
4822b29
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 23, 2023
f8612dc
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 23, 2023
c07da61
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 23, 2023
6ab480a
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 23, 2023
3434682
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 23, 2023
52e2e93
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 24, 2023
12e74ad
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 24, 2023
9c3fe23
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 24, 2023
f523e1c
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 24, 2023
dc5f924
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 24, 2023
7c13d30
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 24, 2023
82708e6
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 24, 2023
10f1406
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 24, 2023
0ba60ce
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 24, 2023
198c282
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 24, 2023
88fa4ea
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 24, 2023
def609f
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 24, 2023
765750f
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 24, 2023
154dc0a
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 24, 2023
3a2a8df
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 24, 2023
e226665
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 24, 2023
220143a
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 24, 2023
c928073
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 24, 2023
4f33886
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 24, 2023
6b4db9e
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 24, 2023
327166e
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 24, 2023
152d07f
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 24, 2023
e8dcfff
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 24, 2023
eb60f08
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 24, 2023
0fd3a0d
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 24, 2023
059d6b1
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 27, 2023
1ce8071
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 27, 2023
448df46
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 27, 2023
8ce34bf
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 27, 2023
a2e4fad
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 27, 2023
37d0664
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 27, 2023
b6f2035
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 27, 2023
a2a6b9e
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 27, 2023
36cec8e
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 27, 2023
8f53da3
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 27, 2023
710c65e
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 27, 2023
6e50d1b
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 27, 2023
4912c66
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 27, 2023
68af564
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 27, 2023
251faa8
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 27, 2023
7b7aed6
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 27, 2023
29ddd60
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 27, 2023
a99c319
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 27, 2023
47d90d5
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 27, 2023
8e1ca41
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 27, 2023
0d35540
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 27, 2023
1470374
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 27, 2023
a9a1c4e
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 27, 2023
3ce6f15
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 27, 2023
96ffc58
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 27, 2023
94b18ff
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 27, 2023
a3aa3eb
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 27, 2023
73a4540
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 27, 2023
a9a9a43
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 28, 2023
4c2979e
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 28, 2023
24d7ecd
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 28, 2023
82639ae
feat(testing):[TRACEFOSS-2838] tryouts and fix while testing
ds-alexander-bulgakov Nov 28, 2023
23287c3
Merge branch 'main' into feature/TRACEFOSS-2838-implement-first-cucum…
ds-alexander-bulgakov Nov 28, 2023
2bf4a6f
feat(testing):[TRACEFOSS-2838] deleted comments
ds-alexander-bulgakov Nov 28, 2023
89e2f37
feat(testing):[TRACEFOSS-2838] added log:false to password, adjusted …
ds-alexander-bulgakov Nov 28, 2023
3962ee4
feat(testing):[TRACEFOSS-2838] update CHANGELOG.md
ds-alexander-bulgakov Nov 28, 2023
158ed79
feat(testing):[TRACEFOSS-2838] added missing defaults to switch methods
ds-alexander-bulgakov Nov 28, 2023
25511e8
feat(testing):[TRACEFOSS-2838] changed if with default in switch of m…
ds-alexander-bulgakov Nov 28, 2023
14044cf
chore: TRACEFOSS-XXXX fix token mask
ds-ext-sceronik Nov 28, 2023
a5b8bed
chore: TRACEFOSS-604 added received / sent investigation / alert count
ds-mwesener Nov 28, 2023
a15a8da
Merge pull request #800 from catenax-ng/chore/TRACEFOSS-XXXX-fix-mask…
ds-ext-sceronik Nov 28, 2023
d428409
chore: TRACEFOSS-604 added received / sent investigation / alert count
ds-mwesener Nov 28, 2023
c7af5e3
chore: TRACEFOSS-604 added received / sent investigation / alert count
ds-mwesener Nov 28, 2023
4d14730
chore: TRACEFOSS-604 added received / sent investigation / alert count
ds-mwesener Nov 28, 2023
40e983c
Merge pull request #801 from catenax-ng/feature/TRACEFOSS-604-Dashboa…
ds-mwesener Nov 28, 2023
9547135
Merge pull request #798 from catenax-ng/feature/TRACEFOSS-2838-implem…
ds-mwesener Nov 28, 2023
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
120 changes: 60 additions & 60 deletions .github/workflows/argo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,32 +30,32 @@ on:
type: choice
description: Which Environment
required: true
options:
options:
- Dev/Test
- E2E-A/E2E-B
- int-a/int-b
testdata_version:
testdata_version:
description: Which Testdata Version CX_Testdata_MessagingTest_v<X.X.X>.json
required: true
argo_token:
description: Argo Token
required: true
api-token:
description: Api Token
required: true

api_token:
description: Api Token
required: true

env:
ARGO_TEST_REGISTRY: "https://argo.dev.demo.catena-x.net/api/v1/applications/tracex-dt-registry-test"
ARGO_TEST_EDC_PROVIDER: "https://argo.dev.demo.catena-x.net/api/v1/applications/tracex-test-edc-provider"
ARGO_TEST_TRACE_X_INSTANCE: "https://argo.dev.demo.catena-x.net/api/v1/applications/traceability-foss-test"
ARGO_TEST_RegistryReload: "https://traceability-test.dev.demo.catena-x.net/api/registry/reload"

ARGO_DEV_REGISTRY: "https://argo.dev.demo.catena-x.net/api/v1/applications/tracex-dt-registry-dev"
ARGO_DEV_EDC_PROVIDER: "https://argo.dev.demo.catena-x.net/api/v1/applications/tracex-edc-provider"
ARGO_DEV_TRACE_X_INSTANCE: "https://argo.dev.demo.catena-x.net/api/v1/applications/traceability-foss-dev"
ARGO_DEV_RegistryReload: "https://traceability.dev.demo.catena-x.net/api/registry/reload"
ARGO_E2E_A_REGISTRY: "https://argo.dev.demo.catena-x.net/api/v1/applications/tracex-dt-registry-e2e-a"

ARGO_E2E_A_REGISTRY: "https://argo.dev.demo.catena-x.net/api/v1/applications/tracex-dt-registry-e2e-a"
ARGO_E2E_A_EDC_PROVIDER: "https://argo.dev.demo.catena-x.net/api/v1/applications/tracex-edc-provider-e2e-a"
ARGO_E2E_A_TRACE_X_INSTANCE: "https://argo.dev.demo.catena-x.net/api/v1/applications/traceability-foss-e2e-a"
ARGO_E2E_A_RegistryReload: "https://traceability-e2e-a.dev.demo.catena-x.net/api/registry/reload"
Expand All @@ -64,8 +64,8 @@ env:
ARGO_E2E_B_EDC_PROVIDER: "https://argo.dev.demo.catena-x.net/api/v1/applications/tracex-edc-provider-e2e-b"
ARGO_E2E_B_TRACE_X_INSTANCE: "https://argo.dev.demo.catena-x.net/api/v1/applications/traceability-foss-e2e-b"
ARGO_E2E_B_RegistryReload: "https://traceability-e2e-b.dev.demo.catena-x.net/api/registry/reload"
ARGO_INT_A_REGISTRY: "https://argo.int.demo.catena-x.net/api/v1/applications/tx-registry-int-a"

ARGO_INT_A_REGISTRY: "https://argo.int.demo.catena-x.net/api/v1/applications/tx-registry-int-a"
ARGO_INT_A_EDC_PROVIDER: "https://argo.int.demo.catena-x.net/api/v1/applications/tx-edc-provider-int-a"
ARGO_INT_A_TRACE_X_INSTANCE: "https://argo.int.demo.catena-x.net/api/v1/applications/traceability-foss-int-a"
ARGO_INT_A_RegistryReload: "https://traceability-int-a.int.demo.catena-x.net/api/registry/reload"
Expand All @@ -74,8 +74,8 @@ env:
ARGO_INT_B_EDC_PROVIDER: "https://argo.int.demo.catena-x.net/api/v1/applications/tx-edc-provider-int-b"
ARGO_INT_B_TRACE_X_INSTANCE: "https://argo.int.demo.catena-x.net/api/v1/applications/traceability-foss-int-b"
ARGO_INT_B_RegistryReload: "https://traceability-int-b.int.demo.catena-x.net/api/registry/reload"
jobs:

jobs:

print_environment:
runs-on: ubuntu-latest
Expand All @@ -84,33 +84,33 @@ jobs:
run: |
echo "### inputs" >> $GITHUB_STEP_SUMMARY
echo "- environment: ${{ github.event.inputs.environment }}" >> $GITHUB_STEP_SUMMARY

hard_refresh_environment:
needs: print_environment
runs-on: ubuntu-latest
steps:

- name: Checkout-Repository
uses: actions/checkout@v4

- name: mask token
run: |
ARGO_TOKEN=$(jq -r '.inputs.argo_token' $GITHUB_EVENT_PATH)
echo ::add-mask::$ARGO_TOKEN
echo ARGO_TOKEN=$ARGO_TOKEN >> $GITHUB_ENV

- name: Hard refresh environment ${{ github.event.inputs.environment }}
run: |
source ./.github/argo/argo_config.sh

if [ "${{ github.event.inputs.environment }}" == "Dev/Test" ]; then
resources=("${DEV_TEST_RESOURCES[@]}")
elif [ "${{ github.event.inputs.environment }}" == "E2E-A/E2E-B" ]; then
resources=("${E2E_RESOURCES[@]}")
elif [ "${{ github.event.inputs.environment }}" == "int-a/int-b" ]; then
resources=("${INT_RESOURCES[@]}")
fi

for resource in "${resources[@]}"; do
curl -X GET -H "Authorization: Bearer ${{ env.ARGO_TOKEN }}" "$resource?refresh=hard&appNamespace=argocd"
done
Expand All @@ -120,51 +120,51 @@ jobs:
needs: hard_refresh_environment
runs-on: ubuntu-latest
steps:

- name: Checkout-Repository
uses: actions/checkout@v4

- name: mask token
run: |
ARGO_TOKEN=$(jq -r '.inputs.argo_token' $GITHUB_EVENT_PATH)
echo ::add-mask::$ARGO_TOKEN
echo ARGO_TOKEN=$ARGO_TOKEN >> $GITHUB_ENV

- name: Delete Argo Environment
run: |
source ./.github/argo/argo_config.sh

if [ "${{ github.event.inputs.environment }}" == "Dev/Test" ]; then
resources=("${DELETE_DEV_TEST_RESOURCES[@]}")
elif [ "${{ github.event.inputs.environment }}" == "E2E-A/E2E-B" ]; then
resources=("${DELETE_E2E_RESOURCES[@]}")
elif [ "${{ github.event.inputs.environment }}" == "int-a/int-b" ]; then
resources=("${DELETE_INT_RESOURCES[@]}")
fi

for resource in "${resources[@]}"; do
curl -X DELETE -H "Authorization: Bearer ${{ env.ARGO_TOKEN }}" "$resource"
sleep 2
done
sleep 10

change_target_revision:
needs: delete_environment
runs-on: ubuntu-latest
steps:

- name: mask token
run: |
ARGO_TOKEN=$(jq -r '.inputs.argo_token' $GITHUB_EVENT_PATH)
echo ::add-mask::$ARGO_TOKEN
echo ARGO_TOKEN=$ARGO_TOKEN >> $GITHUB_ENV
- name: Change TargetRevison
run: |

- name: Change TargetRevison
run: |
new_target_revision=${{ github.ref_name }}

if [ "${{ github.event.inputs.environment }}" == "Dev/Test" ]; then

json_data1=$(curl -X GET -H "Authorization: Bearer ${{ env.ARGO_TOKEN }}" "$ARGO_TEST_TRACE_X_INSTANCE")
old_TargetRevision1=$(echo "$json_data1" | jq -r '.spec.source.targetRevision')
json_data2=$(curl -X GET -H "Authorization: Bearer ${{ env.ARGO_TOKEN }}" "$ARGO_DEV_TRACE_X_INSTANCE")
Expand All @@ -175,16 +175,16 @@ jobs:
curl -X PUT -H "Content-Type: application/json" -H "Authorization: Bearer ${{ env.ARGO_TOKEN }}" -d "$updated_json" "$ARGO_TEST_TRACE_X_INSTANCE"
echo "Target Revision for Test overwritten"
fi

if [ "$old_TargetRevision2" != "$new_target_revision" ]; then
updated_json=$(echo "$json_data2" | jq ".spec.source.targetRevision = \"$new_target_revision\"")
curl -X PUT -H "Content-Type: application/json" -H "Authorization: Bearer ${{ env.ARGO_TOKEN }}" -d "$updated_json" "$ARGO_DEV_TRACE_X_INSTANCE"
echo "Target Revision for Dev overwritten"
fi


elif [ "${{ github.event.inputs.environment }}" == "E2E-A/E2E-B" ]; then

json_data1=$(curl -X GET -H "Authorization: Bearer ${{ env.ARGO_TOKEN }}" "$ARGO_E2E_A_TRACE_X_INSTANCE")
old_TargetRevision1=$(echo "$json_data1" | jq -r '.spec.source.targetRevision')
json_data2=$(curl -X GET -H "Authorization: Bearer ${{ env.ARGO_TOKEN }}" "$ARGO_E2E_B_TRACE_X_INSTANCE")
Expand All @@ -195,62 +195,62 @@ jobs:
curl -X PUT -H "Content-Type: application/json" -H "Authorization: Bearer ${{ env.ARGO_TOKEN }}" -d "$updated_json" "$ARGO_E2E_A_TRACE_X_INSTANCE"
echo "Target Revision for e2e-a overwritten"
fi

if [ "$old_TargetRevision2" != "$new_target_revision" ]; then
updated_json=$(echo "$json_data2" | jq ".spec.source.targetRevision = \"$new_target_revision\"")
curl -X PUT -H "Content-Type: application/json" -H "Authorization: Bearer ${{ env.ARGO_TOKEN }}" -d "$updated_json" "$ARGO_E2E_B_TRACE_X_INSTANCE"
echo "Target Revision for e2e-b overwritten"
fi

fi

sync_environment:
sync_environment:
needs: change_target_revision
runs-on: ubuntu-latest
steps:

- name: Checkout-Repository
uses: actions/checkout@v4

- name: mask token
run: |
ARGO_TOKEN=$(jq -r '.inputs.argo_token' $GITHUB_EVENT_PATH)
echo ::add-mask::$ARGO_TOKEN
echo ARGO_TOKEN=$ARGO_TOKEN >> $GITHUB_ENV

- name: Sync Argo Environment
run: |
source ./.github/argo/argo_config.sh

if [ "${{ github.event.inputs.environment }}" == "Dev/Test" ]; then
resources=("${SYNC_DEV_TEST_RESOURCES[@]}")
elif [ "${{ github.event.inputs.environment }}" == "E2E-A/E2E-B" ]; then
resources=("${SYNC_E2E_RESOURCES[@]}")
elif [ "${{ github.event.inputs.environment }}" == "int-a/int-b" ]; then
resources=("${SYNC_INT_RESOURCES[@]}")
fi
fi

for resource in "${resources[@]}"; do
curl -X POST -H "Authorization: Bearer ${{ env.ARGO_TOKEN }}" "$resource"
done
done
sleep 20


test_state:
needs: sync_environment
runs-on: ubuntu-latest
timeout-minutes: 15
steps:

- name: Checkout code
uses: actions/checkout@v4

- name: mask token
run: |
ARGO_TOKEN=$(jq -r '.inputs.argo_token' $GITHUB_EVENT_PATH)
echo ::add-mask::$ARGO_TOKEN
echo ARGO_TOKEN=$ARGO_TOKEN >> $GITHUB_ENV

- name: test apps state
run: |
source ./.github/argo/argo_config.sh
Expand All @@ -260,8 +260,8 @@ jobs:
resources=("${E2E_RESOURCES[@]}")
elif [ "${{ github.event.inputs.environment }}" == "int-a/int-b" ]; then
resources=("${INT_RESOURCES[@]}")
fi
fi

for resource in "${resources[@]}"; do
while true; do
json_data=$(curl -X GET -H "Authorization: Bearer ${{ env.ARGO_TOKEN }}" "$resource")
Expand All @@ -286,28 +286,28 @@ jobs:
sleep 10
fi
done
done
sleep 120
done
sleep 120

upload_testdata:
needs: test_state
runs-on: ubuntu-latest
steps:

- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'

- name: mask token
run: |
API_TOKEN=$(jq -r '.inputs.api-token' $GITHUB_EVENT_PATH)
API_TOKEN=$(jq -r '.inputs.api_token' $GITHUB_EVENT_PATH)
echo ::add-mask::$API_TOKEN
echo API_TOKEN=$API_TOKEN >> $GITHUB_ENV

- name: Upload testdata
run: |
python -m pip install requests
Expand All @@ -329,13 +329,13 @@ jobs:
sleep 10
fi
registry_reload:
needs:
needs:
- upload_testdata
runs-on: ubuntu-latest
steps:
steps:
- name: reload the registry
run: |

if [ "${{ github.event.inputs.environment }}" == "Dev/Test" ]; then
curl -X GET "$ARGO_TEST_RegistryReload"
curl -X GET "$ARGO_DEV_RegistryReload"
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
- new filtering capabilities ( receivedQualityAlertIdsInStatusActive, sentQualityAlertIdsInStatusActive, receivedQualityInvestigationIdsInStatusActive, sentQualityInvestigationIdsInStatusActive )
- Validation check if table-settings correct and reset on invalid state
- Added Api-Input in Argo Workflow to fix bugs
- Added implementation for cucumber tests for quality investigations
### Changed
- Filter configuration for tables to be resuable and easy to adapt
- Realigned some mappings e.g. (manufacturer / manufacturerName) to be more clear
Expand All @@ -26,6 +27,7 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
### Added
- Added new dashboard layout and additional widgets
- Refactored dashboard response
- Added new fields to dashboard response

## [9.0.0-rc3 - 27.11.2023]
### Added
Expand Down
24 changes: 24 additions & 0 deletions frontend/cypress/integration/pages/QualityInvestigationsPage.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/********************************************************************************
* Copyright (c) 2022, 2023 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
* Copyright (c) 2022, 2023 ZF Friedrichshafen AG
* Copyright (c) 2022, 2023 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* SPDX-License-Identifier: Apache-2.0
********************************************************************************/

export class QualityInvestigationsPage {
//TBD if necessary
}
3 changes: 2 additions & 1 deletion frontend/cypress/support/step_definitions/dashboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* SPDX-License-Identifier: Apache-2.0
********************************************************************************/

import { Given, Then } from '@badeball/cypress-cucumber-preprocessor';
import { Given, Then, When } from '@badeball/cypress-cucumber-preprocessor';
import { DashboardPage } from '../../integration/pages/DashboardPage';


Expand Down Expand Up @@ -47,6 +47,7 @@ Then(/^should be visible "Dashboard" header$/, () => {
Then(/^should be visible "TOTAL OF PARTS" section$/, () => {
cy.get('section').contains('Total of parts').should('be.visible');
});

Then(/^should be visible "TOTAL OF OTHER PARTS" section$/, () => {
cy.get('section').contains('Total of other parts').should('be.visible');
});
Expand Down
Loading
Loading