tests.sh revision 247bf378605811d695e968dbe930a7fc45c0038e
#
*
*
# $Id: tests.sh,v 1.4.154.1 2012/01/04 20:05:03 smann Exp $
DIGOPTS="+tcp +noadd +nosea +nostat +noquest +nocomm +nocmd"
status=0
echo "I:preparing"
ret=0
server 10.53.0.2
zone nil.
update add text1.nil. 600 IN TXT "addition 1"
send
zone other.
update add text1.other. 600 IN TXT "addition 1"
send
END
echo "I:rndc freeze"
echo "I:checking zone was dumped"
ret=0
echo "I:checking journal file is still present"
ret=0
echo "I:checking zone not writable"
ret=0
server 10.53.0.2
zone nil.
update add text2.nil. 600 IN TXT "addition 2"
send
END
echo "I:rndc thaw"
echo "I:checking zone now writable"
ret=0
server 10.53.0.2
zone nil.
update add text3.nil. 600 IN TXT "addition 3"
send
END
echo "I:rndc sync"
ret=0
echo "I:checking zone was dumped"
ret=0
echo "I:checking journal file is still present"
ret=0
echo "I:checking zone is still writable"
ret=0
server 10.53.0.2
zone nil.
update add text4.nil. 600 IN TXT "addition 4"
send
END
echo "I:rndc sync -clean"
ret=0
echo "I:checking zone was dumped"
ret=0
echo "I:checking journal file is deleted"
ret=0
echo "I:checking zone is still writable"
ret=0
server 10.53.0.2
zone nil.
update add text5.nil. 600 IN TXT "addition 5"
send
END
echo "I:checking other journal files not removed"
ret=0
echo "I:cleaning all zones"
echo "I:checking all journals removed"
ret=0
echo "I:checking that freezing static zones is not allowed"
ret=0
echo "I:checking that journal is removed when serial is changed before thaw"
ret=0
sleep 1
server 10.53.0.2
zone other.
update add text6.other. 600 IN TXT "addition 6"
send
END
sleep 1
server 10.53.0.2
zone other.
update add text7.other. 600 IN TXT "addition 7"
send
END
echo "I:checking that journal is kept when ixfr-from-differences is in use"
ret=0
server 10.53.0.2
zone nil.
update add text6.nil. 600 IN TXT "addition 6"
send
END
sleep 1
server 10.53.0.2
zone nil.
update add text7.nil. 600 IN TXT "addition 7"
send
END
# temp test
echo "I:dumping stats"
echo "I: verifying adb records in named.stats"
echo "I:test using second key"
ret=0
echo "I:exit status: $status"
exit $status