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

feature: refactor the main tractusx-connector chart #230

7 changes: 0 additions & 7 deletions .github/actions/run-deployment-test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,6 @@ runs:
using: "composite"
steps:
- uses: actions/checkout@v3.3.0

- name: Cache ContainerD Image Layers
uses: actions/cache@v3
with:
path: /var/lib/containerd/io.containerd.snapshotter.v1.overlayfs
key: ${{ runner.os }}-io.containerd.snapshotter.v1.overlayfs

- uses: ./.github/actions/setup-java

- name: Build docker images
Expand Down
37 changes: 36 additions & 1 deletion .github/workflows/deployment-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,19 @@ concurrency:
cancel-in-progress: true

jobs:
deployment-test-memory:

test-prepare:
runs-on: ubuntu-latest
steps:
- name: Cache ContainerD Image Layers
uses: actions/cache@v3
with:
path: /var/lib/containerd/io.containerd.snapshotter.v1.overlayfs
key: ${{ runner.os }}-io.containerd.snapshotter.v1.overlayfs

test-in-memory:
runs-on: ubuntu-latest
needs: test-prepare
steps:
- uses: actions/checkout@v3.3.0
- uses: ./.github/actions/run-deployment-test
Expand All @@ -64,3 +75,27 @@ jobs:

# execute the helm test
helm test tx-inmem
paullatzelsperger marked this conversation as resolved.
Show resolved Hide resolved

test-hashicorp-postgres:
runs-on: ubuntu-latest
needs: test-prepare
steps:
- name: Checkout
uses: actions/checkout@v3.3.0
- uses: ./.github/actions/run-deployment-test
name: "Run deployment test using KinD and Helm"
with:
imagename: "edc-controlplane-postgresql-hashicorp-vault edc-dataplane-hashicorp-vault"
rootDir: "."
helm_command: |-
helm install tx-prod charts/tractusx-connector-app \
-f charts/tractusx-connector-app/example.yaml \
--dependency-update \
--wait-for-jobs --timeout=120s

# wait for the pod to become ready
kubectl rollout status deployment tx-prod-runtime-controlplane
kubectl rollout status deployment tx-prod-runtime-dataplane

# execute the helm test
helm test tx-prod --logs
paullatzelsperger marked this conversation as resolved.
Show resolved Hide resolved
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,7 @@ buildNumber.properties
.mvn/timing.properties
# https://github.com/takari/maven-wrapper#usage-without-binary-jar
.mvn/wrapper/maven-wrapper.jar

### Helm
**/*.lock
**/*.tgz
paullatzelsperger marked this conversation as resolved.
Show resolved Hide resolved
Loading