Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
Use sudo to connect to proxy in last test
Browse files Browse the repository at this point in the history
 - proxy copies permissions from $DOCKER_HOST socket if available,
   so in this case it is not accessible by non-root user
  • Loading branch information
bboreham authored and paulbellamy committed Dec 15, 2015
1 parent fd87375 commit b6c420b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/650_proxy_env_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ check
# Check we can use weave env/config with unix -Hs specified
weave_on $HOST1 stop
weave_on $HOST1 launch-proxy -H unix:///var/run/weave/weave.sock
assert_raises "run_on $HOST1 'eval \$(weave env) ; docker $CMD'"
assert_raises "run_on $HOST1 'docker \$(weave config) $CMD'"
assert_raises "run_on $HOST1 'eval \$(weave env) ; sudo -E docker $CMD'"
assert_raises "run_on $HOST1 'sudo docker \$(weave config) $CMD'"

end_suite

0 comments on commit b6c420b

Please sign in to comment.