Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
71 changes: 27 additions & 44 deletions .github/workflows/run-e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,79 +44,62 @@ jobs:

- name: "Setup Helm"
uses: azure/setup-helm@v4
with:
version: v3.8.1

- name: "Setup Kubectl"
uses: azure/setup-kubectl@v4

- name: "Set up OpenTofu"
uses: opentofu/setup-opentofu@v2

- uses: actions/checkout@v6

- uses: eclipse-edc/.github/.github/actions/setup-build@main

- name: "Build runtime images"
working-directory: ./
run: |
./gradlew -Ppersistence=true dockerize

./gradlew dockerize

- name: "Create k8s Kind Cluster"
uses: helm/kind-action@v1.14.0
with:
config: deployment/kind.config.yaml
cluster_name: dcp-demo

- name: "Load runtime images into KinD"
run: kind load docker-image controlplane:latest dataplane:latest identity-hub:latest catalog-server:latest issuerservice:latest -n dcp-demo

- name: "Install nginx ingress controller"
run: |
kind load docker-image -n dcp-demo \
ghcr.io/eclipse-edc/mvd/controlplane:latest \
ghcr.io/eclipse-edc/mvd/dataplane:latest \
ghcr.io/eclipse-edc/mvd/identity-hub:latest \
ghcr.io/eclipse-edc/mvd/issuerservice:latest

- name: "Install Traefik Gateway controller"
run: |-
echo "::notice title=nginx ingress on KinD::For details how to run nginx ingress on KinD check https://kind.sigs.k8s.io/docs/user/ingress/#ingress-nginx"
kubectl apply -f https://kind.sigs.k8s.io/examples/ingress/deploy-ingress-nginx.yaml
kubectl wait --namespace ingress-nginx \
--for=condition=ready pod \
--selector=app.kubernetes.io/component=controller \
--timeout=90s
helm repo add traefik https://traefik.github.io/charts
helm repo update
helm upgrade --install --namespace traefik traefik traefik/traefik --create-namespace -f values.yaml

# Wait for traefik to be ready
kubectl rollout status deployment/traefik -n traefik --timeout=120s

# forward port 80 -> 8080
kubectl -n traefik port-forward svc/traefik 8080:80 &

- name: "Tofu init"
working-directory: ./deployment
run: |-
tofu init -reconfigure
- name: "Tofu plan"
working-directory: ./deployment
run: |-
tofu plan -out=$GITHUB_SHA.out
# install Gateway API CRDs
kubectl apply --server-side --force-conflicts -f https://github.com/kubernetes-sigs/gateway-api/releases/download/v1.4.1/experimental-install.yaml

sleep 5 # to be safe`

- name: "Tofu apply"
working-directory: ./deployment
- name: "Deploy MVD"
run: |-
tofu apply "$GITHUB_SHA.out"
kubectl apply -k k8s/

- name: "Seed dataspace"
- name: "Wait for MVD to be ready"
run: |-
chmod +x seed-k8s.sh
./seed-k8s.sh
kubectl wait -A \
--selector=type=edc-job \
--for=condition=complete job --all \
--timeout=180s

- name: "Run E2E Test"
run: |-
./gradlew -DincludeTags="EndToEndTest" test -DverboseTest=true

- name: "Run Newman"
continue-on-error: true
working-directory: ./deployment/postman
run: |-
newman run "MVD.postman_collection.json" -e "MVD K8S.postman_environment.json" --folder "ControlPlane Management" --delay-request 5000 --verbose

- name: "Print log if test failed"
if: failure()
run: |-
kubectl logs deployment/provider-qna-controlplane -n mvd

- name: "Destroy the KinD cluster"
run: >-
kind delete cluster -n dcp-demo
Expand Down
10 changes: 0 additions & 10 deletions .github/workflows/verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,3 @@ jobs:
- uses: eclipse-edc/.github/.github/actions/setup-build@main
- name: Run Checkstyle
run: ./gradlew checkstyleMain checkstyleTest

validate-terraform:
runs-on: ubuntu-latest
steps:
- uses: hashicorp/setup-terraform@v4
- uses: actions/checkout@v6
- name: Check Terraform files are properly formatted (run "terraform fmt -recursive" to fix)
run: |
terraform fmt -recursive
git diff --exit-code
25 changes: 0 additions & 25 deletions .run/Connector Consumer Corp.run.xml

This file was deleted.

25 changes: 0 additions & 25 deletions .run/Connector _provider-manufacturing_.run.xml

This file was deleted.

24 changes: 0 additions & 24 deletions .run/Connector _provider-qna_.run.xml

This file was deleted.

25 changes: 0 additions & 25 deletions .run/IdentityHub Consumer Corp.run.xml

This file was deleted.

24 changes: 0 additions & 24 deletions .run/IdentityHub Provider Corp.run.xml

This file was deleted.

25 changes: 0 additions & 25 deletions .run/IssuerService.run.xml

This file was deleted.

25 changes: 0 additions & 25 deletions .run/Provider Catalog Server.run.xml

This file was deleted.

12 changes: 0 additions & 12 deletions .run/dataspace.run.xml

This file was deleted.

16 changes: 0 additions & 16 deletions .run/remote/Catalog Server PROVIDER.run.xml

This file was deleted.

16 changes: 0 additions & 16 deletions .run/remote/Connector .run.xml

This file was deleted.

15 changes: 0 additions & 15 deletions .run/remote/IdentityHub CONSUMER.run.xml

This file was deleted.

15 changes: 0 additions & 15 deletions .run/remote/IdentityHub PROVIDER.run.xml

This file was deleted.

Loading
Loading