Try to fix failing test 840

This commit is contained in:
Bryan Boreham committed 2018-07-30 10:19:28 +00:00
1 parent 1a8794e90f
commit 44e0c6add7
1 file changed
+6
+6
View File
@@ -214,11 +214,17 @@ spec:
access: deny
EOF
# Allow some time for the policy change to take effect
sleep 1
assert_raises "$SSH $HOST1 $KUBECTL exec $denyPodName -- curl -s -S -f -m 2 http://$DOMAIN:8080/status >/dev/null"
# remove the access for nettest-deny
run_on $HOST1 "$KUBECTL delete netpol allow-nettest-deny"
# Allow some time for the policy change to take effect
sleep 1
# nettest-deny should still not be able to reach nettest pods
assert_raises "! $SSH $HOST1 $KUBECTL exec $denyPodName -- curl -s -S -f -m 2 http://$DOMAIN:8080/status >/dev/null"