Parcourir la source

[1213] Corrected documentation of fourth IXFR-in test

Stephen Morris il y a 13 ans
Parent
commit
f5b0e46b8c

+ 1 - 1
tests/system/ixfr/db.example.n2.refresh.in

@@ -15,7 +15,7 @@
 $ORIGIN example.
 $TTL 3600
 
-@       IN	SOA	ns1.example. hostmaster.example. 98 3600 900 7200 300
+@       IN	SOA	ns1.example. hostmaster.example. 98 30 2 7200 300
 
         IN	NS	ns1.example.
         IN	NS	ns2.example.

+ 4 - 4
tests/system/ixfr/in-4/setup.sh.in

@@ -20,10 +20,10 @@
 
 sh clean.sh
 
-# Set up the initial version of the IXFR server - load the latest version of
-# the zone.
-cp $IXFR_TOP/named_noixfr.conf ns1/named.conf
-cp -f $IXFR_TOP/db.example.n0 ns1/db.example
+# Set up the initial version of the ixfr server - load the last-but-one version
+# of the zone.
+cp $IXFR_TOP/named_nonotify.conf ns1/named.conf
+cp -f $IXFR_TOP/db.example.n2.refresh ns1/db.example
 
 # Set up the IXFR client - load a previous version of the zone with a short
 # refresh time.

+ 10 - 3
tests/system/ixfr/in-4/tests.sh

@@ -17,19 +17,26 @@
 
 # \file
 # This script performs the fourth IXFR-IN test.  A BIND 9 nameserver (the
-# "server") contains a version of the zone (version N) and has IXFRs disabled.
+# "server") contains a version of the zone (version N) and has IXFRs enabled.
 # A BIND 10 nameserver (the "client") is loaded with version N-2 of the zone
 # and a small refresh time.  After this expires, the IXFR client should have
-# sent a request to the IXFR server.
+# sent an IXFR request to the IXFR server.
 
 . ../ixfr_init.sh
 status=$?
 
+# Ensure the server has the latest copy of the zone.  The implicit assumption
+# here is that starting the two systems and reloading the IXFR server takes
+# less time than the SOA refresh time set in the "db.example.n2.refresh" zone
+# file.
+cp $IXFR_TOP/db.example.n0 ns1/db.example
+do_rndc $SERVER_NAME $SERVER_IP reload
+
 # Store the SOA serial number of the BIND 10 client for later use.
 old_client_serial=`$DIG_SOA @$CLIENT_IP | $AWK '{print $3}'`
 echo "I:SOA serial of IXFR client $CLIENT_NAME is $old_client_serial"
 
-# Wait for the client to update itself. 20 seconds has been given as the
+# Wait for the client to update itself. 30 seconds has been given as the
 # refresh interface and 2 seconds as the retry interval.  The wait_for_update
 # function will check for up to a minute looking for the new serial.
 wait_for_update $CLIENT_NAME $CLIENT_IP $old_client_serial