From 640ed04effa1e74b991412b56d2982491f21c603 Mon Sep 17 00:00:00 2001 From: Tom Zaspel <40226087+tzabbi@users.noreply.github.com> Date: Fri, 2 Aug 2024 05:17:08 +0000 Subject: [PATCH] set port forward and dex test login in one step Signed-off-by: Tom Zaspel <40226087+tzabbi@users.noreply.github.com> --- .github/workflows/dex_test.yaml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/dex_test.yaml b/.github/workflows/dex_test.yaml index f06bd0e7a4..253829a76d 100644 --- a/.github/workflows/dex_test.yaml +++ b/.github/workflows/dex_test.yaml @@ -34,13 +34,10 @@ jobs: kustomize build overlays/istio | kubectl apply -f - kubectl wait --for=condition=Ready pods --all --all-namespaces --timeout 180s - - name: port forward + - name: test dex login run: | ingress_gateway_service=$(kubectl get svc --namespace istio-system --selector="app=istio-ingressgateway" --output jsonpath='{.items[0].metadata.name}') nohup kubectl port-forward --namespace istio-system svc/${ingress_gateway_service} 8080:80 & while ! curl localhost:8080; do echo waiting for port-forwarding; sleep 1; done; echo port-forwarding ready - - - name: test dex login - run: | pip3 install requests ./tests/gh-actions/test_dex_login.py