Merge pull request #1560 from weaveworks/1542-proxy-bug-weave-not-running

LGTM. Fixes #1542
This commit is contained in:
Bryan Boreham committed 2015-10-22 10:19:32 +01:00
commit acdc70f72a
3 files changed
+32 -21

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
#! /bin/bash
. ./config.sh
start_suite "Proxy failure modes"
# docker run should fail when weave router is not running
weave_on $HOST1 launch-proxy
assert_raises "proxy docker_on $HOST1 run --rm $SMALL_IMAGE true" 1
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