Smoke test for stale DNS entries
This commit is contained in:
1 parent
38a79b7f59
commit
c2cf825cdf
1 file changed
+31
Executable
+31
@@ -0,0 +1,31 @@
|
|||||||
|
#! /bin/bash
|
||||||
|
|
||||||
|
. ./config.sh
|
||||||
|
|
||||||
|
start_suite "Check propagation of DNS entries when gossip is delayed"
|
||||||
|
|
||||||
|
weave_on $HOST1 launch-router --no-discovery
|
||||||
|
weave_on $HOST2 launch-router --no-discovery $HOST1
|
||||||
|
weave_on $HOST3 launch-router --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-router
|
||||||
|
docker_on $HOST1 rm -f c1
|
||||||
|
|
||||||
|
weave_on $HOST1 launch-router --no-discovery $HOST3
|
||||||
|
|
||||||
|
# Now re-enable gossip
|
||||||
|
run_on $HOST3 "sudo iptables -D INPUT -s $HOST2 -j DROP"
|
||||||
|
|
||||||
|
# Currently failing due to Mesh #28
|
||||||
|
# assert_no_dns_record $HOST3 c3 c1.weave.local
|
||||||
|
|
||||||
|
end_suite
|
||||||
Reference in new issue
Block a user