3083. [bug] NOTIFY messages were not being sent when generating
a NSEC3 chain incrementally. [RT #23702]
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.82 2011/03/05 19:39:06 each Exp $
|
||||
# $Id: tests.sh,v 1.83 2011/03/21 01:02:39 marka Exp $
|
||||
|
||||
SYSTEMTESTTOP=..
|
||||
. $SYSTEMTESTTOP/conf.sh
|
||||
@@ -1252,5 +1252,35 @@ n=`expr $n + 1`
|
||||
if [ $ret != 0 ]; then echo "I:failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
|
||||
echo "I:check that NOTIFY is sent at the end of NSEC3 chain generation ($n)"
|
||||
ret=0
|
||||
(
|
||||
echo zone nsec3chain-test
|
||||
echo server 10.53.0.2 5300
|
||||
grep DNSKEY ns2/Knsec3chain-test.*.key |
|
||||
sed -e 's/.*://' -e 's/^/update add /' -e 's/IN/300 IN/'
|
||||
echo update add nsec3chain-test. 0 nsec3param 1 0 1 -
|
||||
echo send
|
||||
) | $NSUPDATE
|
||||
for i in 1 2 3 4 5 6 7 8 9
|
||||
do
|
||||
$DIG $DIGOPTS nsec3param nsec3chain-test @10.53.0.2 > dig.out.ns2.test$n || ret=1
|
||||
if grep "ANSWER: 2," dig.out.ns2.test$n >/dev/null
|
||||
then
|
||||
break;
|
||||
fi
|
||||
echo "I:sleeping ...."
|
||||
sleep 3
|
||||
done;
|
||||
grep "ANSWER: 2," dig.out.ns2.test$n > /dev/null || ret=1
|
||||
if [ $ret != 0 ]; then echo "I:nsec3 chain generation not complete"; fi
|
||||
sleep 3
|
||||
$DIG $DIGOPTS +noauth +nodnssec soa nsec3chain-test @10.53.0.2 > dig.out.ns2.test$n || ret=1
|
||||
$DIG $DIGOPTS +noauth +nodnssec soa nsec3chain-test @10.53.0.3 > dig.out.ns3.test$n || ret=1
|
||||
$PERL ../digcomp.pl dig.out.ns2.test$n dig.out.ns3.test$n || ret=1
|
||||
n=`expr $n + 1`
|
||||
if [ $ret != 0 ]; then echo "I:failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
|
||||
echo "I:exit status: $status"
|
||||
exit $status
|
||||
|
||||
Reference in New Issue
Block a user