Given `proxy` & `router` processes have been merged, `launch-proxy`, `launch-router`, `stop-proxy`, `stop-router` do not make sense any more, and should just be `launch` and `stop` with the appropriate flags.
13 lines
414 B
Bash
Executable File
13 lines
414 B
Bash
Executable File
#! /bin/bash
|
|
|
|
. "$(dirname "$0")/config.sh"
|
|
|
|
start_suite "Proxy failure modes"
|
|
|
|
# docker run should fail when weave router is not running
|
|
weave_on $HOST1 launch
|
|
assert_raises "! proxy docker_on $HOST1 run --rm $SMALL_IMAGE true"
|
|
assert_raises "proxy docker_on $HOST1 run --rm $SMALL_IMAGE true 2>&1 1>/dev/null | grep 'Error response from daemon: weave container is not present. Have you launched it?'"
|
|
|
|
end_suite
|