]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
[master] improve dlzexternal test
authorEvan Hunt <each@isc.org>
Wed, 1 Oct 2014 00:08:12 +0000 (17:08 -0700)
committerEvan Hunt <each@isc.org>
Wed, 1 Oct 2014 00:08:12 +0000 (17:08 -0700)
3963. [test] Added NXRRSET test cases to the "dlzexternal"
system test. [RT #37344]

CHANGES
bin/tests/system/dlzexternal/tests.sh

diff --git a/CHANGES b/CHANGES
index a02a16a515eb3b9c97467cb9908e99d578c7d6e9..b2be41e234d6d648cc65580ff3466e4d129408bb 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,6 @@
+3963.  [test]          Added NXRRSET test cases to the "dlzexternal"
+                       system test. [RT #37344]
+
 3962.  [bug]           'dig +topdown +trace +sigchase' address unhandled error
                        conditions. [RT #34663]
 
index d97139c2fce79a8b8ebdc14342636318df96ae4b..0f672214de40ed436de973c2c5fd5a4d08bd926d 100644 (file)
@@ -72,6 +72,12 @@ status=`expr $status + $ret`
 test_update deny.example.nil. TXT "86400 TXT helloworld" "helloworld" should_fail && ret=1
 status=`expr $status + $ret`
 
+newtest "I:testing nxrrset"
+$DIG $DIGOPTS testdc1.example.nil AAAA > dig.out.$n
+grep "status: NOERROR" dig.out.$n > /dev/null || ret=1
+grep "ANSWER: 0" dig.out.$n > /dev/null || ret=1
+status=`expr $status + $ret`
+
 newtest "I:testing prerequisites are checked correctly"
 cat > ns1/update.txt << EOF
 server 10.53.0.1 5300
@@ -181,6 +187,13 @@ grep "flags:[^;]* aa[ ;]" dig.out.ns1.test$n > /dev/null || ret=1
 if [ $ret != 0 ]; then echo "I:failed"; fi
 status=`expr $status + $ret`
 
+newtest "I:checking no redirected lookup for nonexistent type"
+$DIG $DIGOPTS @10.53.0.1 exists aaaa > dig.out.ns1.test$n || ret=1
+grep "status: NOERROR" dig.out.ns1.test$n > /dev/null || ret=1
+grep "ANSWER: 0" dig.out.ns1.test$n > /dev/null || ret=1
+if [ $ret != 0 ]; then echo "I:failed"; fi
+status=`expr $status + $ret`
+
 newtest "I:checking redirected lookup for a long nonexistent name"
 $DIG $DIGOPTS @10.53.0.1 long.name.is.not.there a > dig.out.ns1.test$n || ret=1
 grep "status: NOERROR" dig.out.ns1.test$n > /dev/null || ret=1