cosmetic: helper functions come first
This commit is contained in:
1 parent
352e31c88b
commit
bb8a745431
1 file changed
+5
-5
@@ -2,11 +2,6 @@
|
|||||||
|
|
||||||
. ./config.sh
|
. ./config.sh
|
||||||
|
|
||||||
start_suite "Weave run/start/attach/detach with multiple cidr arguments"
|
|
||||||
|
|
||||||
weave_on $HOST1 launch
|
|
||||||
weave_on $HOST1 launch-dns 10.254.254.254/24
|
|
||||||
|
|
||||||
# assert_container_cidrs <host> <cid> <cidr> [<cidr> ...]
|
# assert_container_cidrs <host> <cid> <cidr> [<cidr> ...]
|
||||||
assert_container_cidrs() {
|
assert_container_cidrs() {
|
||||||
HOST=$1; shift
|
HOST=$1; shift
|
||||||
@@ -43,6 +38,11 @@ assert_bridge_cidrs() {
|
|||||||
assert "echo $BRIDGE_CIDRS" "$CIDRS"
|
assert "echo $BRIDGE_CIDRS" "$CIDRS"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
start_suite "Weave run/start/attach/detach with multiple cidr arguments"
|
||||||
|
|
||||||
|
weave_on $HOST1 launch
|
||||||
|
weave_on $HOST1 launch-dns 10.254.254.254/24
|
||||||
|
|
||||||
# Run container with three cidrs
|
# Run container with three cidrs
|
||||||
CID=$(weave_on $HOST1 run 10.2.1.1/24 10.2.2.1/24 10.2.3.1/24 -t --name multicidr -h multicidr.weave.local gliderlabs/alpine /bin/sh | cut -b 1-12)
|
CID=$(weave_on $HOST1 run 10.2.1.1/24 10.2.2.1/24 10.2.3.1/24 -t --name multicidr -h multicidr.weave.local gliderlabs/alpine /bin/sh | cut -b 1-12)
|
||||||
assert_container_cidrs $HOST1 $CID 10.2.1.1/24 10.2.2.1/24 10.2.3.1/24
|
assert_container_cidrs $HOST1 $CID 10.2.1.1/24 10.2.2.1/24 10.2.3.1/24
|
||||||
|
|||||||
Reference in new issue
Block a user