Skip to content

Commit

Permalink
feat: add e2e setup workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ds-jhartmann committed Jun 27, 2024
1 parent 203f0fe commit 4fb15b3
Showing 1 changed file with 51 additions and 12 deletions.
63 changes: 51 additions & 12 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,19 +72,58 @@ jobs:
- name: Add .tx.test domain to /etc/hosts
run: |
echo "${{ env.INGRESS_IP }} example.tx.test" | sudo tee -a /etc/hosts
echo "${{ env.INGRESS_IP }} example.tx.test" | sudo tee -a /etc/hosts
cat <<EOF > /etc/resolver/e2e-test
domain tx.test
nameserver ${{ env.INGRESS_IP }}
search_order 1
timeout 5
EOF
- name: Checkout umbrella chart
uses: actions/checkout@v4
with:
repository: eclipse-tractusx/tractus-x-umbrella
ref: chore/edc-0.7.0-iam-mock

- name: Create Test Ingress Resource
# Pull and build Jena Fuseki DB for semantic-hub
- name: Pull Fuseki sources
run: |
kubectl apply -f https://kind.sigs.k8s.io/examples/ingress/usage.yaml
kubectl get pods -A
kubectl get ingresses -A
curl https://repo1.maven.org/maven2/org/apache/jena/jena-fuseki-docker/4.7.0/jena-fuseki-docker-4.7.0.zip > ./jena-fuseki.zip
unzip jena-fuseki.zip
- name: Ping ingress
if: always()
- name: Build and push Fuseki DB
uses: docker/build-push-action@4a13e500e55cf31b7a5d59a38ab2040ab0f42f56
with:
context: jena-fuseki-docker-4.7.0
push: true
tags: kind-registry:5000/jena-fuseki-docker:4.7.0
build-args: JENA_VERSION=4.7.0

- name: Build init container
uses: docker/build-push-action@4a13e500e55cf31b7a5d59a38ab2040ab0f42f56 # v5.1.0
with:
context: ./init-container/
push: true
tags: kind-registry:5000/init-container:testing

- name: Build iatp mock
uses: docker/build-push-action@4a13e500e55cf31b7a5d59a38ab2040ab0f42f56 # v5.1.0
with:
context: ./iatp-mock/
push: true
tags: kind-registry:5000/iatp-mock:testing

- name: Install umbrella chart
run: |
# should output "foo-app"
curl localhost/foo/hostname
# should output "bar-app"
curl localhost/bar/hostname
# ping example.tx.test
helm install umbrella charts/umbrella -f charts/values-test-data-exchange.yaml --timeout 10m \
--namespace e2e-testing --create-namespace --debug \
--set semantic-hub.graphdb.image=kind-registry:5000/jena-fuseki-docker:4.7.0 \
--set iatpmock.image.repository=kind-registry:5000/iatp-mock --set iatpmock.image.tag=testing
- name: Verify installation
run: |
kubectl get pods -n e2e-testing
kubectl get ingresses -n e2e-testing

0 comments on commit 4fb15b3

Please sign in to comment.