@@ -176,12 +176,12 @@ var _ = Describe("Verify Services Traffic policies and firewall config", Ordered
176176
177177 var workingCmd , nonWorkingCmd string
178178 if serverNodeName == clientPod1Node {
179- workingCmd = fmt .Sprintf ("kubectl exec --kubeconfig=%s %s -- curl -m 5 -s -f http://nginx-loadbalancer-svc-int:83/ip" , tc .KubeconfigFile , clientPod1 )
180- nonWorkingCmd = fmt .Sprintf ("kubectl exec --kubeconfig=%s %s -- curl -m 5 -s -f http://nginx-loadbalancer-svc-int:83/ip" , tc .KubeconfigFile , clientPod2 )
179+ workingCmd = fmt .Sprintf ("kubectl exec --kubeconfig=%s %s -- wget -T 5 -q -O - http://nginx-loadbalancer-svc-int:83/ip" , tc .KubeconfigFile , clientPod1 )
180+ nonWorkingCmd = fmt .Sprintf ("kubectl exec --kubeconfig=%s %s -- wget -T 5 -q -O - http://nginx-loadbalancer-svc-int:83/ip" , tc .KubeconfigFile , clientPod2 )
181181 }
182182 if serverNodeName == clientPod2Node {
183- workingCmd = fmt .Sprintf ("kubectl exec --kubeconfig=%s %s -- curl -m 5 -s -f http://nginx-loadbalancer-svc-int:83/ip" , tc .KubeconfigFile , clientPod2 )
184- nonWorkingCmd = fmt .Sprintf ("kubectl exec --kubeconfig=%s %s -- curl -m 5 -s -f http://nginx-loadbalancer-svc-int:83/ip" , tc .KubeconfigFile , clientPod1 )
183+ workingCmd = fmt .Sprintf ("kubectl exec --kubeconfig=%s %s -- wget -T 5 -q -O - http://nginx-loadbalancer-svc-int:83/ip" , tc .KubeconfigFile , clientPod2 )
184+ nonWorkingCmd = fmt .Sprintf ("kubectl exec --kubeconfig=%s %s -- wget -T 5 -q -O - http://nginx-loadbalancer-svc-int:83/ip" , tc .KubeconfigFile , clientPod1 )
185185 }
186186
187187 Eventually (func () (string , error ) {
@@ -204,7 +204,7 @@ var _ = Describe("Verify Services Traffic policies and firewall config", Ordered
204204
205205 // curling a service with internal traffic policy=cluster. It should work on both pods
206206 for _ , pod := range []string {clientPod1 , clientPod2 } {
207- cmd := "kubectl exec " + "--kubeconfig=" + tc .KubeconfigFile + " " + pod + " -- curl -m 5 -s -f http://nginx-loadbalancer-svc:81/ip"
207+ cmd := "kubectl exec " + "--kubeconfig=" + tc .KubeconfigFile + " " + pod + " -- wget -T 5 -q -O - http://nginx-loadbalancer-svc:81/ip"
208208 Eventually (func () (string , error ) {
209209 return tests .RunCommand (cmd )
210210 }, "20s" , "5s" ).Should (SatisfyAny (
0 commit comments