From 95ddbb44ce371a1e2b85d1c18446eb41b0efaecf Mon Sep 17 00:00:00 2001 From: Laurent Luce Date: Tue, 10 Sep 2024 11:50:02 -0400 Subject: [PATCH] Add CI test --- .github/workflows/ci-e2e-tests.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/ci-e2e-tests.yml b/.github/workflows/ci-e2e-tests.yml index 7cd8c13..312c9f0 100644 --- a/.github/workflows/ci-e2e-tests.yml +++ b/.github/workflows/ci-e2e-tests.yml @@ -112,3 +112,11 @@ jobs: - name: Delete template run: | KARDINAL_CLI_DEV_MODE=TRUE kardinal template delete extra-item-shared + + - name: Delete base topology and dev flows + run: | + KARDINAL_CLI_DEV_MODE=TRUE kardinal flow delete prod + if KARDINAL_CLI_DEV_MODE=TRUE kardinal flow ls | grep prod; then echo "Topologies not deleted"; exit 1; fi + tenant_id=${{ steps.tenant.outputs.id }} + deployments=$(curl http://localhost:8080/tenant/${tenant_id}/cluster-resources | jq -r '.deployments[].metadata.name' | tr " " "\n" | sort -g | tr "\n" " " | xargs) + if [ "${deployments}" != "" ]; then echo "Deployments list not empty"; exit 1; fi