remove all the weave_on hacks
that existed because it was echoing a message to stdout, which it no longer does. As a result there is now no mention of the docker tcp host/port outside config.sh.
This commit is contained in:
1 parent
a94d2ef277
commit
352e31c88b
4 files changed
+10
-29
No files matched your search
@@ -14,11 +14,9 @@ weave_on $HOST2 launch-dns 10.2.254.2/24
|
||||
|
||||
weave_on $HOST2 run -t --name=c2 -h seetwo.weave.local gliderlabs/alpine /bin/sh
|
||||
weave_on $HOST1 run --with-dns --name=c1 -t aanand/docker-dnsutils /bin/sh
|
||||
C2=$(weave_on $HOST2 ps c2 | grep -o -E '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}')
|
||||
|
||||
# Note can't use weave_on here because it echoes the command
|
||||
C2IP=$(DOCKER_HOST=tcp://$HOST2:2375 $WEAVE ps c2 | grep -o -E '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}')
|
||||
|
||||
assert "exec_on $HOST1 c1 dig +short seetwo.weave.local" "$C2IP"
|
||||
assert "exec_on $HOST1 c1 dig +short -x $C2IP" "seetwo.weave.local."
|
||||
assert "exec_on $HOST1 c1 dig +short seetwo.weave.local" "$C2"
|
||||
assert "exec_on $HOST1 c1 dig +short -x $C2" "seetwo.weave.local."
|
||||
|
||||
end_suite
|
||||
Reference in new issue
Block a user