Update smoke tests that use IPAM with default subnet
This commit is contained in:
1 parent
551394a831
commit
d20d2e9142
1 file changed
+10
-3
@@ -4,12 +4,14 @@
|
|||||||
|
|
||||||
C1=10.2.1.4
|
C1=10.2.1.4
|
||||||
C2=10.2.1.7
|
C2=10.2.1.7
|
||||||
UNIVERSE=10.2.2.0/24
|
UNIVERSE=10.2.0.0/16
|
||||||
|
SUBNET_1=10.2.2.0/24
|
||||||
|
SUBNET_2=10.2.3.0/24
|
||||||
|
|
||||||
start_suite "Ping over cross-host weave network (with and without IPAM)"
|
start_suite "Ping over cross-host weave network (with and without IPAM)"
|
||||||
|
|
||||||
weave_on $HOST1 launch -iprange $UNIVERSE
|
weave_on $HOST1 launch -iprange $UNIVERSE -ipsubnet $SUBNET_1
|
||||||
weave_on $HOST2 launch -iprange $UNIVERSE $HOST1
|
weave_on $HOST2 launch -iprange $UNIVERSE -ipsubnet $SUBNET_1 $HOST1
|
||||||
|
|
||||||
start_container $HOST1 $C1/24 --name=c1
|
start_container $HOST1 $C1/24 --name=c1
|
||||||
start_container $HOST2 $C2/24 --name=c2
|
start_container $HOST2 $C2/24 --name=c2
|
||||||
@@ -20,4 +22,9 @@ start_container $HOST2 --name=c4
|
|||||||
C4=$(container_ip $HOST2 c4)
|
C4=$(container_ip $HOST2 c4)
|
||||||
assert_raises "exec_on $HOST1 c3 $PING $C4"
|
assert_raises "exec_on $HOST1 c3 $PING $C4"
|
||||||
|
|
||||||
|
start_container $HOST1 --subnet $SUBNET_2 --name=c5
|
||||||
|
start_container $HOST2 --subnet $SUBNET_2 --name=c6
|
||||||
|
C6=$(container_ip $HOST2 c6)
|
||||||
|
assert_raises "exec_on $HOST1 c5 $PING $C6"
|
||||||
|
|
||||||
end_suite
|
end_suite
|
||||||
Reference in new issue
Block a user