4037. [bug] also-notify was ignoring the tsig key when checking

for duplicates resulting in some expected notify
                        messages not being sent. [RT #38369]
This commit is contained in:
Mark Andrews
2015-01-20 16:42:56 +11:00
parent 59c489552d
commit f8eb4e5bfd
6 changed files with 175 additions and 24 deletions

View File

@@ -170,5 +170,35 @@ grep "test string" dig.out.ns4.test$n > /dev/null || ret=1
[ $ret = 0 ] || echo "I:failed"
status=`expr $ret + $status`
n=`expr $n + 1`
echo "I:checking notify to multiple views using tsig"
ret=0
$NSUPDATE << EOF
server 10.53.0.5 5300
zone x21
key a aaaaaaaaaaaaaaaaaaaa
update add added.x21 0 in txt "test string"
send
EOF
for i in 1 2 3 4 5 6 7 8 9
do
$DIG +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd added.x21.\
-y b:bbbbbbbbbbbbbbbbbbbb @10.53.0.5 \
txt -p 5300 > dig.out.b.ns5.test$n || ret=1
$DIG +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd added.x21.\
-y c:cccccccccccccccccccc @10.53.0.5 \
txt -p 5300 > dig.out.c.ns5.test$n || ret=1
grep "test string" dig.out.b.ns5.test$n > /dev/null &&
grep "test string" dig.out.c.ns5.test$n > /dev/null &&
break
sleep 1
done
grep "test string" dig.out.b.ns5.test$n > /dev/null || ret=1
grep "test string" dig.out.c.ns5.test$n > /dev/null || ret=1
[ $ret = 0 ] || echo "I:failed"
status=`expr $ret + $status`
echo "I:exit status: $status"
exit $status