From 5dc8571315b57d642ae4ee5e868424bc2e9ef779 Mon Sep 17 00:00:00 2001 From: kubealex Date: Wed, 3 Jan 2024 09:17:15 +0100 Subject: [PATCH] fix workflow --- .github/workflows/integration-tests.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 920a713..e885c7c 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -74,19 +74,14 @@ jobs: run: | kubectl create ns mediaserver kubectl apply -f tests/k8s-mediaserver.yml -n mediaserver - sleep 75 - kubectl get pod -n mediaserver $(kubectl get pod -n mediaserver | awk 'NR>1{ print $1 }' | grep jacket) -o yaml - kubectl get deployment -n mediaserver jackett -o yaml - # for pod in $(kubectl get pods -n mediaserver | awk 'NR>1{ print $1 }'); do while [[ $(kubectl get pods $pod -n mediaserver -o 'jsonpath={..status.conditions[?(@.type=="Ready")].status}') != "True" ]]; do echo "Waiting for mediaserver pods to be ready" && sleep 10; done ; done - # sleep 15 + sleep 15 + for pod in $(kubectl get pods -n mediaserver | awk 'NR>1{ print $1 }'); do while [[ $(kubectl get pods $pod -n mediaserver -o 'jsonpath={..status.conditions[?(@.type=="Ready")].status}') != "True" ]]; do echo "Waiting for mediaserver pods to be ready" && sleep 10; done ; done - name: Edit hosts file and test apps run: | sudo echo "127.0.0.1 ${{ env.plex_ingress_host }} ${{ env.ingress_host }}" | sudo tee -a /etc/hosts - sudo echo "127.0.0.1 ${{ env.jellyfin_ingress_host }} ${{ env.ingress_host }}" | sudo tee -a /etc/hosts wget ${{ env.ingress_host }}/jackett wget ${{ env.ingress_host }}/sonarr wget ${{ env.ingress_host }}/radarr wget ${{ env.ingress_host }}/sabnzbd wget ${{ env.ingress_host }}/prowlarr curl ${{ env.plex_ingress_host }} - curl ${{ env.jellyfin_ingress_host }}