3067. [bug] ixfr-from-differences {master|slave}; failed to
select the master/slave zones. [RT #23580]
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||
# PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
# $Id: tests.sh,v 1.33 2011/03/05 23:52:30 tbox Exp $
|
||||
# $Id: tests.sh,v 1.34 2011/03/11 00:43:53 marka Exp $
|
||||
|
||||
SYSTEMTESTTOP=..
|
||||
. $SYSTEMTESTTOP/conf.sh
|
||||
@@ -74,7 +74,24 @@ grep ";" dig.out.ns3
|
||||
|
||||
$PERL ../digcomp.pl dig.out.ns2 dig.out.ns3 || status=1
|
||||
|
||||
echo "I:testing ixfr-from-differences"
|
||||
echo "I:reload servers for in preparation for ixfr-from-differences tests"
|
||||
|
||||
$RNDC -c ../common/rndc.conf -s 10.53.0.1 -p 9953 reload 2>&1 | sed 's/^/I:ns1 /'
|
||||
$RNDC -c ../common/rndc.conf -s 10.53.0.2 -p 9953 reload 2>&1 | sed 's/^/I:ns2 /'
|
||||
$RNDC -c ../common/rndc.conf -s 10.53.0.3 -p 9953 reload 2>&1 | sed 's/^/I:ns3 /'
|
||||
$RNDC -c ../common/rndc.conf -s 10.53.0.6 -p 9953 reload 2>&1 | sed 's/^/I:ns6 /'
|
||||
$RNDC -c ../common/rndc.conf -s 10.53.0.7 -p 9953 reload 2>&1 | sed 's/^/I:ns7 /'
|
||||
|
||||
sleep 2
|
||||
|
||||
echo "I:updating master zones for ixfr-from-differences tests"
|
||||
|
||||
$PERL -i -p -e '
|
||||
s/0\.0\.0\.0/0.0.0.1/;
|
||||
s/1397051952/1397051953/
|
||||
' ns1/slave.db
|
||||
|
||||
$RNDC -c ../common/rndc.conf -s 10.53.0.1 -p 9953 reload 2>&1 | sed 's/^/I:ns1 /'
|
||||
|
||||
$PERL -i -p -e '
|
||||
s/0\.0\.0\.0/0.0.0.1/;
|
||||
@@ -83,20 +100,106 @@ $PERL -i -p -e '
|
||||
|
||||
$RNDC -c ../common/rndc.conf -s 10.53.0.2 -p 9953 reload 2>&1 | sed 's/^/I:ns2 /'
|
||||
|
||||
sleep 5
|
||||
$PERL -i -p -e '
|
||||
s/0\.0\.0\.0/0.0.0.1/;
|
||||
s/1397051952/1397051953/
|
||||
' ns6/master.db
|
||||
|
||||
$RNDC -c ../common/rndc.conf -s 10.53.0.3 -p 9953 reload 2>&1 | sed 's/^/I:ns3 /'
|
||||
$RNDC -c ../common/rndc.conf -s 10.53.0.6 -p 9953 reload 2>&1 | sed 's/^/I:ns6 /'
|
||||
|
||||
sleep 5
|
||||
$PERL -i -p -e '
|
||||
s/0\.0\.0\.0/0.0.0.1/;
|
||||
s/1397051952/1397051953/
|
||||
' ns7/master2.db
|
||||
|
||||
$RNDC -c ../common/rndc.conf -s 10.53.0.7 -p 9953 reload 2>&1 | sed 's/^/I:ns7 /'
|
||||
|
||||
sleep 3
|
||||
|
||||
echo "I:testing ixfr-from-differences yes;"
|
||||
tmp=0
|
||||
|
||||
$DIG $DIGOPTS example. \
|
||||
@10.53.0.3 axfr -p 5300 > dig.out.ns3 || status=1
|
||||
@10.53.0.3 axfr -p 5300 > dig.out.ns3 || tmp=1
|
||||
grep ";" dig.out.ns3
|
||||
|
||||
$PERL ../digcomp.pl dig2.good dig.out.ns3 || status=1
|
||||
$PERL ../digcomp.pl dig2.good dig.out.ns3 || tmp=1
|
||||
|
||||
# ns3 has a journal iff it received an IXFR.
|
||||
test -f ns3/example.bk.jnl || status=1
|
||||
test -f ns3/example.bk || tmp=1
|
||||
test -f ns3/example.bk.jnl || tmp=1
|
||||
|
||||
if test $tmp != 0 ; then echo "I:failed"; fi
|
||||
status=`expr $status + $tmp`
|
||||
|
||||
echo "I:testing ixfr-from-differences master; (master zone)"
|
||||
tmp=0
|
||||
|
||||
$DIG $DIGOPTS master. \
|
||||
@10.53.0.6 axfr -p 5300 > dig.out.ns6 || tmp=1
|
||||
grep ";" dig.out.ns6
|
||||
|
||||
$DIG $DIGOPTS master. \
|
||||
@10.53.0.3 axfr -p 5300 > dig.out.ns3 || tmp=1
|
||||
grep ";" dig.out.ns3 && cat dig.out.ns3
|
||||
|
||||
$PERL ../digcomp.pl dig.out.ns6 dig.out.ns3 || tmp=1
|
||||
|
||||
# ns3 has a journal iff it received an IXFR.
|
||||
test -f ns3/master.bk || tmp=1
|
||||
test -f ns3/master.bk.jnl || tmp=1
|
||||
|
||||
if test $tmp != 0 ; then echo "I:failed"; fi
|
||||
status=`expr $status + $tmp`
|
||||
|
||||
echo "I:testing ixfr-from-differences master; (slave zone)"
|
||||
tmp=0
|
||||
|
||||
$DIG $DIGOPTS slave. \
|
||||
@10.53.0.6 axfr -p 5300 > dig.out.ns6 || tmp=1
|
||||
grep ";" dig.out.ns6
|
||||
|
||||
$DIG $DIGOPTS slave. \
|
||||
@10.53.0.1 axfr -p 5300 > dig.out.ns1 || tmp=1
|
||||
grep ";" dig.out.ns1
|
||||
|
||||
$PERL ../digcomp.pl dig.out.ns6 dig.out.ns1 || tmp=1
|
||||
|
||||
# ns6 has a journal iff it received an IXFR.
|
||||
test -f ns6/slave.bk || tmp=1
|
||||
test -f ns6/slave.bk.jnl && tmp=1
|
||||
|
||||
if test $tmp != 0 ; then echo "I:failed"; fi
|
||||
status=`expr $status + $tmp`
|
||||
|
||||
echo "I:testing ixfr-from-differences slave; (master zone)"
|
||||
tmp=0
|
||||
|
||||
# ns7 has a journal iff it generates an IXFR.
|
||||
test -f ns7/master2.db || tmp=1
|
||||
test -f ns7/master2.db.jnl && tmp=1
|
||||
|
||||
if test $tmp != 0 ; then echo "I:failed"; fi
|
||||
status=`expr $status + $tmp`
|
||||
echo "I:testing ixfr-from-differences slave; (slave zone)"
|
||||
tmp=0
|
||||
|
||||
$DIG $DIGOPTS slave. \
|
||||
@10.53.0.1 axfr -p 5300 > dig.out.ns1 || tmp=1
|
||||
grep ";" dig.out.ns1
|
||||
|
||||
$DIG $DIGOPTS slave. \
|
||||
@10.53.0.7 axfr -p 5300 > dig.out.ns7 || tmp=1
|
||||
grep ";" dig.out.ns1
|
||||
|
||||
$PERL ../digcomp.pl dig.out.ns7 dig.out.ns1 || tmp=1
|
||||
|
||||
# ns7 has a journal iff it generates an IXFR.
|
||||
test -f ns7/slave.bk || tmp=1
|
||||
test -f ns7/slave.bk.jnl || tmp=1
|
||||
|
||||
if test $tmp != 0 ; then echo "I:failed"; fi
|
||||
status=`expr $status + $tmp`
|
||||
|
||||
# now we test transfers with assorted TSIG glitches
|
||||
DIGCMD="$DIG $DIGOPTS @10.53.0.4 -p 5300"
|
||||
|
||||
Reference in New Issue
Block a user