From 732f8190aa1afc7521234e3a304539debbc18251 Mon Sep 17 00:00:00 2001 From: Till Faelligen <2353100+S7evinK@users.noreply.github.com> Date: Fri, 6 Jan 2023 09:14:56 +0100 Subject: [PATCH] Test create-account in CI --- .github/workflows/k8s.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/k8s.yml b/.github/workflows/k8s.yml index 8b505bf02..67b5ee4d2 100644 --- a/.github/workflows/k8s.yml +++ b/.github/workflows/k8s.yml @@ -72,3 +72,18 @@ jobs: kubectl taint --all=true nodes node.cloudprovider.kubernetes.io/uninitialized- || true - name: Run chart-testing (install) run: ct install --config helm/ct.yaml + + # Install the chart using helm directly and test with create-account + - name: Install chart + run: | + helm install --values helm/dendrite/ci/ct-postgres-sharedsecret-values.yaml dendrite helm/dendrite + - name: Wait for Dendrite to be up + run: | + kubectl wait --for=condition=ready --timeout=90s pod -l app.kubernetes.io/name=dendrite + kubectl get pods -A + kubectl get services + kubectl get ingress + - name: Run create account + run: | + podName=$(kubectl get pods -l app.kubernetes.io/name=dendrite -o name) + kubectl exec "${podName}" -- /usr/bin/create-account -username alice -password somerandompassword \ No newline at end of file