Files
weave/test/215_stale_dns_3_test.sh
T
Marc CARRE 43249a8d39 Change all launch-*/stop-* commands to launch/stop.
Given `proxy` & `router` processes have been merged, `launch-proxy`,
`launch-router`, `stop-proxy`, `stop-router` do not make sense any more, and
should just be `launch` and `stop` with the appropriate flags.
2017-05-10 10:25:36 +00:00

33 lines
786 B
Bash
Executable File

#! /bin/bash
. "$(dirname "$0")/config.sh"
start_suite "Check propagation of DNS entries when gossip is delayed"
weave_on $HOST1 launch --no-discovery
weave_on $HOST2 launch --no-discovery $HOST1
weave_on $HOST3 launch --no-discovery $HOST2
start_container $HOST1 --name=c1
C1=$(container_ip $HOST1 c1)
start_container_with_dns $HOST3 --name=c3
assert_dns_record $HOST3 c3 c1.weave.local $C1
# Stall the propagation of gossip, stop weave and kill the container
run_on $HOST3 "sudo iptables -A INPUT -s $HOST2 -j DROP"
weave_on $HOST1 stop
docker_on $HOST1 rm -f c1
weave_on $HOST1 launch --no-discovery $HOST3
# Now re-enable gossip from host2 to host3
run_on $HOST3 "sudo iptables -D INPUT -s $HOST2 -j DROP"
sleep 1
assert_no_dns_record $HOST3 c3 c1.weave.local
end_suite