mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 14:07:59 +00:00
Use rndc_dumpdb() in the "cookie" system test
This commit is contained in:
@@ -9,7 +9,8 @@
|
|||||||
|
|
||||||
rm -f ns*/named.conf
|
rm -f ns*/named.conf
|
||||||
rm -f dig.out.*
|
rm -f dig.out.*
|
||||||
rm -f ns1/named_dump.db
|
rm -f rndc.out.*
|
||||||
|
rm -f ns1/named_dump.db*
|
||||||
rm -f ns*/named.memstats
|
rm -f ns*/named.memstats
|
||||||
rm -f ns*/named.run
|
rm -f ns*/named.run
|
||||||
rm -f ns*/named.lock
|
rm -f ns*/named.lock
|
||||||
|
@@ -141,13 +141,8 @@ status=`expr $status + $ret`
|
|||||||
n=`expr $n + 1`
|
n=`expr $n + 1`
|
||||||
echo_i "checking for COOKIE value in adb ($n)"
|
echo_i "checking for COOKIE value in adb ($n)"
|
||||||
ret=0
|
ret=0
|
||||||
$RNDCCMD 10.53.0.1 dumpdb
|
rndc_dumpdb ns1
|
||||||
for i in 1 2 3 4 5 6 7 8 9 10
|
grep "10.53.0.2.*\[cookie=" ns1/named_dump.db.test$n > /dev/null || ret=1
|
||||||
do
|
|
||||||
sleep 1
|
|
||||||
grep "10.53.0.2.*\[cookie=" ns1/named_dump.db > /dev/null && break
|
|
||||||
done
|
|
||||||
grep "10.53.0.2.*\[cookie=" ns1/named_dump.db > /dev/null || ret=1
|
|
||||||
if [ $ret != 0 ]; then echo_i "failed"; fi
|
if [ $ret != 0 ]; then echo_i "failed"; fi
|
||||||
status=`expr $status + $ret`
|
status=`expr $status + $ret`
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user