From 508b4242348efbbf52bbfccc2855e4628ce0306b Mon Sep 17 00:00:00 2001 From: Bryan Boreham Date: Thu, 18 May 2017 14:57:48 +0000 Subject: [PATCH] Add test for outward traffic from weave-kube --- test/840_weave_kube_3_test.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/840_weave_kube_3_test.sh b/test/840_weave_kube_3_test.sh index 4e4fef80..0dc4162f 100755 --- a/test/840_weave_kube_3_test.sh +++ b/test/840_weave_kube_3_test.sh @@ -101,6 +101,10 @@ check_all_pods_communicate() { assert_raises 'wait_for_x check_all_pods_communicate pods' +# Check that a pod can contact the outside world +podName=$($SSH $HOST1 "$KUBECTL get pods -l run=nettest -o go-template='{{(index .items 0).metadata.name}}'") +assert_raises "$SSH $HOST1 $KUBECTL exec $podName -- $PING 8.8.8.8" + tear_down_kubeadm # Destroy our test ipset, and implicitly check it is still there