Files
weave/test/250_dns_ipam_test.sh
T
Matthias Radestock 4e7ddedf75 extract startup of container with dns
There is now just one mention of the aanand/docker-dnsutils image; in
config.sh.
2015-05-16 21:00:27 +01:00

23 lines
491 B
Bash
Executable File

#! /bin/bash
. ./config.sh
UNIVERSE=10.2.3.0/24
NAME=seetwo.weave.local
start_suite "Resolve names over cross-host weave network with IPAM"
weave_on $HOST1 launch -iprange $UNIVERSE
weave_on $HOST2 launch -iprange $UNIVERSE $HOST1
weave_on $HOST1 launch-dns 10.2.254.1/24
weave_on $HOST2 launch-dns 10.2.254.2/24
start_container $HOST2 --name=c2 -h $NAME
start_container_with_dns $HOST1 --name=c1
C2=$(container_ip $HOST2 c2)
assert_dns_record $HOST1 c1 $NAME $C2
end_suite