]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
check that we have non-cachable answers to test against
authorMark Andrews <marka@isc.org>
Mon, 28 Jun 2010 01:37:20 +0000 (01:37 +0000)
committerMark Andrews <marka@isc.org>
Mon, 28 Jun 2010 01:37:20 +0000 (01:37 +0000)
match the dig.out.ns#.$n to the nameserver

bin/tests/system/dnssec/tests.sh

index 30a5dfe5c4fa314d57fe154c740c7f5b62712b0a..fa77685a4f8c231024fe58cbef8c8bbf7587b6d2 100644 (file)
@@ -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.55.32.9 2010/06/25 23:52:08 marka Exp $
+# $Id: tests.sh,v 1.55.32.10 2010/06/28 01:37:20 marka Exp $
 
 SYSTEMTESTTOP=..
 . $SYSTEMTESTTOP/conf.sh
@@ -874,7 +874,8 @@ status=`expr $status + $ret`
 echo "I:checking a non-cachable NODATA works ($n)"
 ret=0
 $DIG $DIGOPTS +noauth a.nosoa.secure.example. txt @10.53.0.7 \
-       > dig.out.ns2.test$n || ret=1
+       > dig.out.ns7.test$n || ret=1
+grep "AUTHORITY: 0" dig.out.ns7.test$n > /dev/null || ret=1
 $DIG $DIGOPTS +noauth a.nosoa.secure.example. txt @10.53.0.4 \
        > dig.out.ns4.test$n || ret=1
 grep "status: NOERROR" dig.out.ns4.test$n > /dev/null || ret=1
@@ -885,7 +886,8 @@ status=`expr $status + $ret`
 echo "I:checking a non-cachable NXDOMAIN works ($n)"
 ret=0
 $DIG $DIGOPTS +noauth b.nosoa.secure.example. txt @10.53.0.7 \
-       > dig.out.ns2.test$n || ret=1
+       > dig.out.ns7.test$n || ret=1
+grep "AUTHORITY: 0" dig.out.ns7.test$n > /dev/null || ret=1
 $DIG $DIGOPTS +noauth b.nosoa.secure.example. txt @10.53.0.4 \
        > dig.out.ns4.test$n || ret=1
 grep "status: NXDOMAIN" dig.out.ns4.test$n > /dev/null || ret=1