mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 13:38:26 +00:00
wait longer for dynamic zone to be transfered
This commit is contained in:
parent
6adcd739ca
commit
7b0ba6eb10
@ -14,6 +14,12 @@ SYSTEMTESTTOP=..
|
|||||||
|
|
||||||
DIGOPTS="+tcp +nosea +nostat +noquest +nocomm +nocmd -p ${PORT}"
|
DIGOPTS="+tcp +nosea +nostat +noquest +nocomm +nocmd -p ${PORT}"
|
||||||
|
|
||||||
|
wait_for_serial() (
|
||||||
|
$DIG $DIGOPTS "@$1" "$2" SOA > "$4"
|
||||||
|
serial=$(awk '$4 == "SOA" { print $7 }' "$4")
|
||||||
|
[ "$3" -eq "${serial:--1}" ]
|
||||||
|
)
|
||||||
|
|
||||||
status=0
|
status=0
|
||||||
n=0
|
n=0
|
||||||
|
|
||||||
@ -91,11 +97,13 @@ digcomp dig.ns1.test$n postupdate.good || ret=1
|
|||||||
test $ret -eq 0 || echo_i "failed"
|
test $ret -eq 0 || echo_i "failed"
|
||||||
status=`expr $status + $ret`
|
status=`expr $status + $ret`
|
||||||
|
|
||||||
for i in 1 2 3 4 5 6 7 8 9
|
n=`expr $n + 1`
|
||||||
do
|
ret=0
|
||||||
$DIG $DIGOPTS soa dynamic @10.53.0.2 | grep 2000042408 > /dev/null && break
|
echo_i "wait for zone to transfer ($n)"
|
||||||
sleep 1
|
retry_quiet 20 wait_for_serial 10.53.0.2 dynamic 2000042408 dig.ns2.test$n || ret=1
|
||||||
done
|
|
||||||
|
test $ret -eq 0 || echo_i "failed"
|
||||||
|
status=`expr $status + $ret`
|
||||||
|
|
||||||
n=`expr $n + 1`
|
n=`expr $n + 1`
|
||||||
echo_i "check SOA owner case is transfered to slave ($n)"
|
echo_i "check SOA owner case is transfered to slave ($n)"
|
||||||
@ -121,11 +129,13 @@ digcomp dig.ns1.test$n postns1.good || ret=1
|
|||||||
test $ret -eq 0 || echo_i "failed"
|
test $ret -eq 0 || echo_i "failed"
|
||||||
status=`expr $status + $ret`
|
status=`expr $status + $ret`
|
||||||
|
|
||||||
for i in 1 2 3 4 5 6 7 8 9
|
n=`expr $n + 1`
|
||||||
do
|
ret=0
|
||||||
$DIG $DIGOPTS soa dynamic @10.53.0.2 | grep 2000042409 > /dev/null && break
|
echo_i "wait for zone to transfer ($n)"
|
||||||
sleep 1
|
retry_quiet 20 wait_for_serial 10.53.0.2 dynamic 2000042409 dig.ns2.test$n || ret=1
|
||||||
done
|
|
||||||
|
test $ret -eq 0 || echo_i "failed"
|
||||||
|
status=`expr $status + $ret`
|
||||||
|
|
||||||
n=`expr $n + 1`
|
n=`expr $n + 1`
|
||||||
echo_i "check A owner case is transfered to slave ($n)"
|
echo_i "check A owner case is transfered to slave ($n)"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user