Fix smoke tests

This commit is contained in:
Adam Harrison committed 2015-06-26 11:10:08 +01:00
1 parent a9e3320e7c
commit d4c1766532
8 files changed
+13 -13

No files matched your search

+4 -4
View File
@@ -15,8 +15,8 @@ assert_peers() {
start_suite "Connecting and forgetting routers after launch" start_suite "Connecting and forgetting routers after launch"
weave_on $HOST1 launch weave_on $HOST1 launch-router
weave_on $HOST2 launch weave_on $HOST2 launch-router
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
@@ -33,8 +33,8 @@ assert_raises "exec_on $HOST1 c1 $PING $C2"
# Forget everyone and disonnect # Forget everyone and disonnect
assert_raises "weave_on $HOST2 forget $HOST1 $HOST2" assert_raises "weave_on $HOST2 forget $HOST1 $HOST2"
assert_raises "weave_on $HOST1 stop" assert_raises "weave_on $HOST1 stop-router"
assert_raises "weave_on $HOST1 launch" assert_raises "weave_on $HOST1 launch-router"
assert_peers $HOST2 "" assert_peers $HOST2 ""
assert_raises "exec_on $HOST1 c1 sh -c '! $PING $C2'" assert_raises "exec_on $HOST1 c1 sh -c '! $PING $C2'"
+2 -2
View File
@@ -29,8 +29,8 @@ check() {
start_suite "Resolve names across hosts (with and without IPAM), and repopulate on restart" start_suite "Resolve names across hosts (with and without IPAM), and repopulate on restart"
weave_on $HOST1 launch -iprange $UNIVERSE weave_on $HOST1 launch-router -iprange $UNIVERSE
weave_on $HOST2 launch -iprange $UNIVERSE $HOST1 weave_on $HOST2 launch-router -iprange $UNIVERSE $HOST1
start_container $HOST2 $C2/24 --name=c2 -h $NAME2 start_container $HOST2 $C2/24 --name=c2 -h $NAME2
start_container_with_dns $HOST1 $C1/24 --name=c1 start_container_with_dns $HOST1 $C1/24 --name=c1
+1 -1
View File
@@ -20,7 +20,7 @@ assert_resolution() {
start_suite "With or without DNS test" start_suite "With or without DNS test"
weave_on $HOST1 launch weave_on $HOST1 launch-router
DNS_IP=$(weave_on $HOST1 docker-bridge-ip) DNS_IP=$(weave_on $HOST1 docker-bridge-ip)
+1 -1
View File
@@ -73,7 +73,7 @@ start_suite "Weave run/start/attach/detach/expose/hide with multiple cidr argume
# specific address, i.e. we are assuming that IPAM always returns the # specific address, i.e. we are assuming that IPAM always returns the
# lowest available address in the subnet # lowest available address in the subnet
weave_on $HOST1 launch -debug -iprange 10.2.3.0/24 weave_on $HOST1 launch-router -debug -iprange 10.2.3.0/24
launch_dns_on $HOST1 10.254.254.254/24 launch_dns_on $HOST1 10.254.254.254/24
# Run container with three cidrs # Run container with three cidrs
+1 -1
View File
@@ -26,7 +26,7 @@ run_container "grep ^1$ /sys/class/net/ethwe/carrier"
build_image false '["/bin/false"]' '' build_image false '["/bin/false"]' ''
run_container "--entrypoint='grep' false ^1$ /sys/class/net/ethwe/carrier" run_container "--entrypoint='grep' false ^1$ /sys/class/net/ethwe/carrier"
weave_on $HOST1 launch -iprange 10.2.2.0/24 weave_on $HOST1 launch-router -iprange 10.2.2.0/24
docker_on $HOST1 kill weaveproxy docker_on $HOST1 kill weaveproxy
weave_on $HOST1 launch-proxy weave_on $HOST1 launch-proxy
+1 -1
View File
@@ -13,6 +13,6 @@ assert_raises "docker $(weave_on $HOST1 proxy-config) $CMD"
# Check we can use the weave script through the proxy # Check we can use the weave script through the proxy
assert_raises "eval '$(weave_on $HOST1 proxy-env)' ; $WEAVE version" assert_raises "eval '$(weave_on $HOST1 proxy-env)' ; $WEAVE version"
assert_raises "eval '$(weave_on $HOST1 proxy-env)' ; $WEAVE ps" assert_raises "eval '$(weave_on $HOST1 proxy-env)' ; $WEAVE ps"
assert_raises "eval '$(weave_on $HOST1 proxy-env)' ; $WEAVE launch" assert_raises "eval '$(weave_on $HOST1 proxy-env)' ; $WEAVE launch-router"
end_suite end_suite
+2 -2
View File
@@ -17,8 +17,8 @@ assert_no_ethwe() {
start_suite "Ping proxied containers over cross-host weave network (with IPAM)" start_suite "Ping proxied containers over cross-host weave network (with IPAM)"
weave_on $HOST1 launch -iprange $UNIVERSE weave_on $HOST1 launch-router -iprange $UNIVERSE
weave_on $HOST2 launch -iprange $UNIVERSE $HOST1 weave_on $HOST2 launch-router -iprange $UNIVERSE $HOST1
weave_on $HOST1 launch-proxy weave_on $HOST1 launch-proxy
weave_on $HOST2 launch-proxy --no-default-ipam weave_on $HOST2 launch-proxy --no-default-ipam
+1 -1
View File
@@ -6,7 +6,7 @@ start_suite "Boot the proxy with TLS-enabled Docker support"
PWD=$($SSH $HOST1 pwd) PWD=$($SSH $HOST1 pwd)
weave_on $HOST1 launch weave_on $HOST1 launch-router
weave_on $HOST1 launch-proxy \ weave_on $HOST1 launch-proxy \
--tlsverify \ --tlsverify \
--tlscacert $PWD/tls/ca.pem \ --tlscacert $PWD/tls/ca.pem \