There is now just one mention of the gliderlabs/alpine image outside config.sh.
21 lines
441 B
Bash
Executable File
21 lines
441 B
Bash
Executable File
#! /bin/bash
|
|
|
|
. ./config.sh
|
|
|
|
C1=10.2.0.78
|
|
C2=10.2.0.34
|
|
NAME=seetwo.weave.local
|
|
|
|
start_suite "Resolve names on a single host"
|
|
|
|
weave_on $HOST1 launch-dns 10.2.254.1/24
|
|
|
|
start_container $HOST1 $C2/24 --name=c2 -h $NAME
|
|
weave_on $HOST1 run --with-dns $C1/24 -t --name=c1 aanand/docker-dnsutils /bin/sh
|
|
|
|
assert_dns_record $HOST1 c1 $NAME $C2
|
|
|
|
assert_raises "exec_on $HOST1 c1 dig MX seetwo.weave.local | grep -q \"status: NXDOMAIN\""
|
|
|
|
end_suite
|