From 906be31483a08d08a23272424ab1d5884ea3cad1 Mon Sep 17 00:00:00 2001 From: Bryan Boreham Date: Wed, 20 May 2015 11:08:39 +0100 Subject: [PATCH] Regularise the ping tests across different subnets --- test/130_expose_test.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/130_expose_test.sh b/test/130_expose_test.sh index 9bfc238a..9ea46c68 100755 --- a/test/130_expose_test.sh +++ b/test/130_expose_test.sh @@ -21,13 +21,14 @@ exec_on1() { assert_raises "exec_on $HOST1 $@" } +# Containers in the same subnet should be able to talk; different subnet not. check_container_connectivity() { exec_on1 "c1 $PING $C2" exec_on1 "c3 $PING $C4" exec_on1 "c5 $PING $C6" - exec_on1 "c3 sh -c \"! $PING $C1\"" + exec_on1 "c1 sh -c \"! $PING $C3\"" + exec_on1 "c3 sh -c \"! $PING $C5\"" exec_on1 "c5 sh -c \"! $PING $C1\"" - exec_on1 "c5 sh -c \"! $PING $C3\"" } start_suite "exposing weave network to host"