diff --git a/test/205_dns_disabled.sh b/test/205_dns_disabled.sh new file mode 100755 index 00000000..8799acbd --- /dev/null +++ b/test/205_dns_disabled.sh @@ -0,0 +1,24 @@ +#! /bin/bash + +. ./config.sh + +C1=10.2.0.87 + +start_suite "Standard behaviour when weaveDNS is disabled" + +weave_on $HOST1 launch --no-dns + +assert "weave_on $HOST1 dns-args" "" + +C=$(start_container_with_dns $HOST1 $C1/24 --name=c1) + +# hostname is left untouched; equals short container id +assert "exec_on $HOST1 c1 hostname" $(echo $C | cut -c1-12) + +# domainname is left empty +assert "exec_on $HOST1 c1 dnsdomainname" "" + +# external name resolution works +assert_raises "exec_on $HOST1 c1 getent hosts www.weave.works" + +end_suite