Files
weave/test/205_dns_disabled_test.sh
T

25 lines
525 B
Bash
Executable File

#! /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