Regularise the ping tests across different subnets

This commit is contained in:
Bryan Boreham committed 2015-05-20 11:08:39 +01:00
1 parent 4ee32cc12d
commit 906be31483
1 file changed
+3 -2
+3 -2
View File
@@ -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"