Include testing non-weave reverse queries in DNS smoke tests

Pro-tip: Do not put weaveDNS on the same subnet as the fallback DNS
server.
This commit is contained in:
Michael Bridgen committed 2015-01-14 17:02:17 +00:00
1 parent db9bae4162
commit 5c3fe86be7
2 files changed
+9 -3

No files matched your search

+5 -2
View File
@@ -16,8 +16,8 @@ done
run_on $HOST1 sudo $WEAVE launch
run_on $HOST2 sudo $WEAVE launch $HOST1
run_on $HOST1 sudo $WEAVE launch-dns 10.0.0.2/8
run_on $HOST2 sudo $WEAVE launch-dns 10.0.0.3/8
run_on $HOST1 sudo $WEAVE launch-dns 10.3.3.2/24 -debug
run_on $HOST2 sudo $WEAVE launch-dns 10.3.3.3/24 -debug
run_on $HOST2 sudo $WEAVE run $C2/24 -t --name=c2 -h seetwo.weave.local ubuntu
run_on $HOST1 sudo $WEAVE run --with-dns $C1/24 --name=c1 -t aanand/docker-dnsutils /bin/sh
@@ -28,4 +28,7 @@ assert "echo $ok" "$C2"
ok=$(docker -H tcp://$HOST1:2375 exec -i c1 dig +short -x $C2)
assert "echo $ok" "seetwo.weave.local."
ok=$(docker -H tcp://$HOST1:2375 exec -i c1 dig +short -x 8.8.8.8)
assert "test -n \"$ok\" && echo pass" "pass"
end_suite