]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
4267. [test] Check sdlz error handling. [RT #41142]
authorMark Andrews <marka@isc.org>
Wed, 2 Dec 2015 02:00:42 +0000 (13:00 +1100)
committerMark Andrews <marka@isc.org>
Wed, 2 Dec 2015 02:00:42 +0000 (13:00 +1100)
CHANGES
bin/tests/system/dlz/ns1/dns-root/com/broken/dns.d/@/DNAME=10=example.net.= [new file with mode: 0644]
bin/tests/system/dlz/ns1/dns-root/com/broken/dns.d/@/NS=10=example.com.= [new file with mode: 0644]
bin/tests/system/dlz/ns1/dns-root/com/broken/dns.d/@/SOA=10=ns.example.com.=root.example.com.=None=None=None=None=None= [new file with mode: 0644]
bin/tests/system/dlz/tests.sh

diff --git a/CHANGES b/CHANGES
index e79966ad873244570b8f9b23a77880a740afe181..50dd850ca424bd18b9b4ed48a23ac3e0686fb137 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,7 @@
+4267.  [test]          Check sdlz error handling. [RT #41142]
+
+4266.  [placeholder]
+
 4265.  [bug]           Address unchecked isc_mem_get calls. [RT #41187]
 
 4264.  [bug]           Check const of strchr/strrchr assignments match
diff --git a/bin/tests/system/dlz/ns1/dns-root/com/broken/dns.d/@/DNAME=10=example.net.= b/bin/tests/system/dlz/ns1/dns-root/com/broken/dns.d/@/DNAME=10=example.net.=
new file mode 100644 (file)
index 0000000..953a89d
--- /dev/null
@@ -0,0 +1,5 @@
+Copyright (C) 2015  Internet Systems Consortium, Inc. ("ISC")
+See COPYRIGHT in the source root or http://isc.org/copyright.html for terms.
+
+The contents of this file is not read by the filesystem driver.
+This is the file for "DNAME 10 example.net.".
diff --git a/bin/tests/system/dlz/ns1/dns-root/com/broken/dns.d/@/NS=10=example.com.= b/bin/tests/system/dlz/ns1/dns-root/com/broken/dns.d/@/NS=10=example.com.=
new file mode 100644 (file)
index 0000000..89be0fb
--- /dev/null
@@ -0,0 +1,5 @@
+Copyright (C) 2015  Internet Systems Consortium, Inc. ("ISC")
+See COPYRIGHT in the source root or http://isc.org/copyright.html for terms.
+
+The contents of this file is not read by the filesystem driver.
+This is the file for "NS 10 example.com.".
diff --git a/bin/tests/system/dlz/ns1/dns-root/com/broken/dns.d/@/SOA=10=ns.example.com.=root.example.com.=None=None=None=None=None= b/bin/tests/system/dlz/ns1/dns-root/com/broken/dns.d/@/SOA=10=ns.example.com.=root.example.com.=None=None=None=None=None=
new file mode 100644 (file)
index 0000000..8b95397
--- /dev/null
@@ -0,0 +1,5 @@
+Copyright (C) 2015  Internet Systems Consortium, Inc. ("ISC")
+See COPYRIGHT in the source root or http://isc.org/copyright.html for terms.
+
+The contents of this file is not read by the filesystem driver.
+This is the file for "SOA 10 ns.example.com. root.example.com. 2010062900 None None None None" which is a malformed SOA record.
index ce0a36a6218658d0a676643aa241beb92f59b701..242bc52fd3cd9e5a351c8930d5ea57b3fb0c283f 100644 (file)
@@ -70,5 +70,13 @@ n=`expr $n + 1`
 if [ $ret != 0 ]; then echo "I:failed"; fi
 status=`expr $status + $ret`
 
+echo "I:checking DLZ with a malformed SOA record"
+ret=0
+$DIG $DIGOPTS broken.com type600 @10.53.0.1 > dig.out.ns1.test$n
+grep status: dig.out.ns1.test$n > /dev/null || 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