Skip to content

Commit

Permalink
set port forward and dex test login in one step
Browse files Browse the repository at this point in the history
Signed-off-by: Tom Zaspel <40226087+tzabbi@users.noreply.github.com>
  • Loading branch information
tzabbi committed Aug 2, 2024
1 parent 2b3103f commit 640ed04
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/dex_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 640ed04

Please sign in to comment.