Skip to content

Commit 5a9cf7b

Browse files
authored
Merge pull request #900 from mboersma/quieter-e2e-tests
🌱 [e2e] silence output from curl commands
2 parents 47d1989 + 3e1f071 commit 5a9cf7b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/e2e/kubernetes/networkpolicy/networkpolicy.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ func EnsureOutboundInternetAccess(clientset *kubernetes.Clientset, config *restc
8181
func EnsureConnectivityResultBetweenPods(clientset *kubernetes.Clientset, config *restclient.Config, fromPods []v1.Pod, toPods []v1.Pod, shouldHaveConnection bool) {
8282
for _, fromPod := range fromPods {
8383
for _, toPod := range toPods {
84-
command := []string{"curl", toPod.Status.PodIP}
84+
command := []string{"curl", "-S", "-s", "-o", "/dev/null", toPod.Status.PodIP}
8585
err := e2e_pod.Exec(clientset, config, fromPod, command)
8686
if shouldHaveConnection {
8787
Expect(err).NotTo(HaveOccurred())
@@ -93,7 +93,7 @@ func EnsureConnectivityResultBetweenPods(clientset *kubernetes.Clientset, config
9393
}
9494

9595
func CheckOutboundConnection(clientset *kubernetes.Clientset, config *restclient.Config, pod v1.Pod) error {
96-
command := []string{"curl", "www.bing.com"}
96+
command := []string{"curl", "-S", "-s", "-o", "/dev/null", "www.bing.com"}
9797
return e2e_pod.Exec(clientset, config, pod, command)
9898
}
9999

0 commit comments

Comments
 (0)