Files
weave/test/140_weave_local_test.sh
Bryan Boreham 98e6571059 Remove 'weave run', 'start' and 'restart'
Replace with informative message.
Also fix up tests which were calling these commands.
2017-04-12 12:15:37 +01:00

29 lines
625 B
Bash
Executable File

#!/bin/bash
. "$(dirname "$0")/config.sh"
weave_local_on() {
host=$1
shift 1
run_on $host sudo COVERAGE=$COVERAGE weave --local $@
}
start_suite "Run weave with --local"
weave_local_on $HOST1 reset
weave_local_on $HOST1 launch --ipalloc-range 10.2.5.0/24
assert_raises "docker_on $HOST1 ps | grep weave"
docker_on $HOST1 run -dti --name=c1 $SMALL_IMAGE /bin/sh
weave_local_on $HOST1 attach 10.2.6.5/24 c1
wait_for_attached $HOST1 c1
docker_on $HOST1 run -dti --name=c2 $SMALL_IMAGE /bin/sh
weave_local_on $HOST1 attach c2
wait_for_attached $HOST1 c2
assert "weave_local_on $HOST1 ps | wc -l" 3
end_suite