You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/tests.bats
+3-6Lines changed: 3 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -82,14 +82,13 @@
82
82
foriin {1..10}
83
83
do
84
84
# Fetch the IP address assigned by the load balancer to the Gateway
85
-
IP=$(kubectl get gateway my-gateway --output jsonpath='{.status.addresses[0].value}'2>/dev/null)# Assuming Gateway name is 'my-gateway' and uses .status.addresses
85
+
IP=$(kubectl get gateway prod-web --output jsonpath='{.status.addresses[0].value}'2>/dev/null)
86
86
# Check if IP is not empty and break the loop if found
87
-
[[ !-z"$IP" ]] &&break|| sleep 5
87
+
[[ !-z"$IP" ]] &&break|| sleep 1
88
88
done
89
89
# Fail the test if IP is still empty after retries
90
90
if [[ -z"$IP" ]];then
91
91
echo"Failed to get Gateway IP address"
92
-
kubectl logs -n kube-system -l control-plane=controller-manager # Example log command, adjust as needed
93
92
return 1
94
93
fi
95
94
echo"Gateway IP: $IP"
@@ -104,7 +103,7 @@
104
103
# Curl the /hostname endpoint via the Gateway IP, ignore failures temporarily
0 commit comments