Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…ionship-service into chore/update-jdk-version-2
  • Loading branch information
ds-pweick committed Jul 10, 2024
2 parents b2d7344 + da3bc67 commit f01d650
Show file tree
Hide file tree
Showing 82 changed files with 3,409 additions and 466 deletions.
7 changes: 7 additions & 0 deletions .config/owasp-suppressions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,11 @@
<packageUrl regex="true">^pkg:maven/com.jayway.jsonpath/json-path@2.8.0$</packageUrl>
<vulnerabilityName>CVE-2023-51074</vulnerabilityName>
</suppress>
<suppress>
<notes><![CDATA[
Dataspace components for models and JSON ID transformer, therefore OAUTH not relevant.
]]></notes>
<packageUrl regex="true">^pkg:maven/org.eclipse.edc.connector.core@0.6.0$</packageUrl>
<vulnerabilityName>CVE-2024-4536</vulnerabilityName>
</suppress>
</suppressions>
25 changes: 25 additions & 0 deletions .github/workflows/cucumber-integration-test-DIL.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,32 @@ concurrency:
cancel-in-progress: true

jobs:

check-config:
runs-on: ubuntu-latest
steps:
- name: Check if DIL_REGULAR_USER_API_KEY is defined
run: |
if [[ -z "${{ secrets.DIL_REGULAR_USER_API_KEY }}" ]]; then
echo "Error: Missing secret: Please configure DIL_REGULAR_USER_API_KEY."
exit 1
fi
- name: Check if DIL_ADMIN_USER_API_KEY is defined
run: |
if [[ -z "${{ secrets.DIL_ADMIN_USER_API_KEY }}" ]]; then
echo "Error: Missing secret: Please configure DIL_ADMIN_USER_API_KEY."
exit 1
fi
- name: Check if IRS_CUCUMBER_PUBLISH_TOKEN is defined
run: |
if [[ -z "${{ secrets.IRS_CUCUMBER_PUBLISH_TOKEN }}" ]]; then
echo "Error: Missing secret: Please configure IRS_CUCUMBER_PUBLISH_TOKEN."
exit 1
fi
shell: bash

trigger-integration-test:
needs: check-config
uses: ./.github/workflows/cucumber-integration-test.yaml
secrets:
regularUserApiKey: ${{ secrets.DIL_REGULAR_USER_API_KEY }}
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/cucumber-integration-test-INT.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,32 @@ concurrency:
cancel-in-progress: true

jobs:

check-config:
runs-on: ubuntu-latest
steps:
- name: Check if INT_REGULAR_USER_API_KEY is defined
run: |
if [[ -z "${{ secrets.INT_REGULAR_USER_API_KEY }}" ]]; then
echo "Error: Missing secret: Please configure INT_REGULAR_USER_API_KEY."
exit 1
fi
- name: Check if INT_ADMIN_USER_API_KEY is defined
run: |
if [[ -z "${{ secrets.INT_ADMIN_USER_API_KEY }}" ]]; then
echo "Error: Missing secret: Please configure INT_ADMIN_USER_API_KEY."
exit 1
fi
- name: Check if IRS_CUCUMBER_PUBLISH_TOKEN is defined
run: |
if [[ -z "${{ secrets.IRS_CUCUMBER_PUBLISH_TOKEN }}" ]]; then
echo "Error: Missing secret: Please configure IRS_CUCUMBER_PUBLISH_TOKEN."
exit 1
fi
shell: bash

trigger-integration-test:
needs: check-config
uses: ./.github/workflows/cucumber-integration-test.yaml
secrets:
regularUserApiKey: ${{ secrets.INT_REGULAR_USER_API_KEY }}
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/cucumber-integration-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ on:
type: string

jobs:

build:
runs-on: ubuntu-latest

Expand All @@ -40,7 +41,11 @@ jobs:
ADMIN_USER_API_KEY: ${{ secrets.adminUserApiKey }}
ISSUE_FILTER: ${{ inputs.executionFilter }}
CUCUMBER_PUBLISH_TOKEN: ${{ secrets.cucumberPublishToken }}
run: mvn clean verify -P cucumber -Dgroups="$ISSUE_FILTER" -pl irs-cucumber-tests -am --batch-mode 2> irs-cucumber-tests/report-banner.txt
run: |
# workaround replacement since injecting the token via environment variable does not work
sed -i "s/CUCUMBER_TOKEN_IRS_PLACEHOLDER/${CUCUMBER_PUBLISH_TOKEN}/g" irs-cucumber-tests/src/test/java/org/eclipse/tractusx/irs/cucumber/RunCucumberTest.java
mvn clean verify -P cucumber -Dgroups="$ISSUE_FILTER" -pl irs-cucumber-tests -am --batch-mode 2> irs-cucumber-tests/report-banner.txt
- name: Publish Cucumber Results
uses: EnricoMi/publish-unit-test-result-action@v2.16.1
Expand All @@ -56,6 +61,7 @@ jobs:
grep -E "^│.*│$" irs-cucumber-tests/report-banner.txt > irs-cucumber-tests/cucumber-report.txt
sed -i 's/│//g' irs-cucumber-tests/cucumber-report.txt
cat irs-cucumber-tests/cucumber-report.txt
cat irs-cucumber-tests/cucumber-report.txt >> $GITHUB_STEP_SUMMARY
- name: Find previous comment in PR
if: always() && github.event_name == 'pull_request'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/helm-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
version: v0.20.0

- name: Build image
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
push: true
Expand Down
84 changes: 0 additions & 84 deletions .github/workflows/int-setup-testdata.yml

This file was deleted.

35 changes: 34 additions & 1 deletion .github/workflows/integration-test-DEV.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ name: IRS DEV Cucumber Integration test execution

on:
workflow_dispatch: # Trigger manually
inputs:
executionFilter:
description: 'Execution filter'
required: false
default: '!Ignore & !INACTIVE & INTEGRATION_TEST & DEV'
push:
branches:
- 'main'
Expand All @@ -19,12 +24,40 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true




jobs:

check-config:
runs-on: ubuntu-latest
steps:
- name: Check if DEV_REGULAR_USER_API_KEY is defined
run: |
if [[ -z "${{ secrets.DEV_REGULAR_USER_API_KEY }}" ]]; then
echo "Error: Missing secret: Please configure DEV_REGULAR_USER_API_KEY."
exit 1
fi
- name: Check if DEV_ADMIN_USER_API_KEY is defined
run: |
if [[ -z "${{ secrets.DEV_ADMIN_USER_API_KEY }}" ]]; then
echo "Error: Missing secret: Please configure DEV_ADMIN_USER_API_KEY."
exit 1
fi
- name: Check if IRS_CUCUMBER_PUBLISH_TOKEN is defined
run: |
if [[ -z "${{ secrets.IRS_CUCUMBER_PUBLISH_TOKEN }}" ]]; then
echo "Error: Missing secret: Please configure IRS_CUCUMBER_PUBLISH_TOKEN."
exit 1
fi
shell: bash

trigger-integration-test:
needs: check-config
uses: ./.github/workflows/cucumber-integration-test.yaml
secrets:
regularUserApiKey: ${{ secrets.DEV_REGULAR_USER_API_KEY }}
adminUserApiKey: ${{ secrets.DEV_ADMIN_USER_API_KEY }}
cucumberPublishToken: ${{ secrets.IRS_CUCUMBER_PUBLISH_TOKEN }}
with:
executionFilter: "!Ignore & !INACTIVE & INTEGRATION_TEST & DEV"
executionFilter: ${{ github.event.inputs.executionFilter || '!Ignore & !INACTIVE & INTEGRATION_TEST & DEV' }}
Loading

0 comments on commit f01d650

Please sign in to comment.