Skip to content

Commit

Permalink
Restore test that was removed
Browse files Browse the repository at this point in the history
with improved behaviour re tmpdir
  • Loading branch information
bboreham committed Dec 15, 2015
1 parent 629fe22 commit 125e9ce
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/690_proxy_config_test.sh
Expand Up @@ -22,6 +22,12 @@ assert_raises "run_on $HOST1 sudo docker -H unix:///var/run/weave/weave.sock ps"
assert_raises "proxy docker_on $HOST1 ps"
weave_on $HOST1 stop-proxy

# Booting it with -H outside /var/run/weave, still works
socket="$($SSH $HOST1 mktemp -d)/weave.sock"
weave_on $HOST1 launch-proxy -H unix://$socket
assert_raises "run_on $HOST1 sudo docker -H unix:///$socket ps" 0
weave_on $HOST1 stop-proxy

# Booting it against non-standard docker unix sock
run_on $HOST1 "DOCKER_HOST=unix:///var/run/alt-docker.sock COVERAGE=$COVERAGE weave launch-proxy -H tcp://0.0.0.0:12375"
assert_raises "proxy docker_on $HOST1 ps"
Expand Down

0 comments on commit 125e9ce

Please sign in to comment.