Files
weave/test/260_dns_removal_test.sh
Bryan Boreham 98e6571059 Remove 'weave run', 'start' and 'restart'
Replace with informative message.
Also fix up tests which were calling these commands.
2017-04-12 12:15:37 +01:00

30 lines
535 B
Bash
Executable File

#! /bin/bash
. "$(dirname "$0")/config.sh"
C1=10.2.0.67
C2=10.2.0.43
NAME=seetwo.weave.local
DOPTS="--name=c2 -h $NAME"
check() {
assert_dns_record $HOST1 c1 $NAME $C2
rm_containers $HOST1 c2
assert_no_dns_record $HOST1 c1 $NAME
}
start_suite "Automatic DNS record removal on container death"
weave_on $HOST1 launch
start_container_with_dns $HOST1 $C1/24 --name=c1
start_container $HOST1 $C2/24 $DOPTS
check
docker_on $HOST1 run $DOPTS -dt $SMALL_IMAGE /bin/sh
weave_on $HOST1 attach $C2/24 c2
check
end_suite