]> granicus.if.org Git - pdns/commitdiff
add test for correct return of NS at zone apex
authorBert Hubert <bert.hubert@netherlabs.nl>
Sat, 2 Apr 2011 09:43:04 +0000 (09:43 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Sat, 2 Apr 2011 09:43:04 +0000 (09:43 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@2115 d19b8d6e-7fed-0310-83ef-9ca221ded41b

regression-tests/apex-level-ns/command [new file with mode: 0755]
regression-tests/apex-level-ns/description [new file with mode: 0644]
regression-tests/apex-level-ns/expected_result [new file with mode: 0644]

diff --git a/regression-tests/apex-level-ns/command b/regression-tests/apex-level-ns/command
new file mode 100755 (executable)
index 0000000..f6d521b
--- /dev/null
@@ -0,0 +1,2 @@
+cleandig test.com NS
+
diff --git a/regression-tests/apex-level-ns/description b/regression-tests/apex-level-ns/description
new file mode 100644 (file)
index 0000000..f623de2
--- /dev/null
@@ -0,0 +1,3 @@
+Test for NS query for test.com IN NS blah.test.com at APEX level. Should
+return AA.
+
diff --git a/regression-tests/apex-level-ns/expected_result b/regression-tests/apex-level-ns/expected_result
new file mode 100644 (file)
index 0000000..5709ba9
--- /dev/null
@@ -0,0 +1,4 @@
+0      test.com.       IN      NS      3600    ns1.test.com.
+0      test.com.       IN      NS      3600    ns2.test.com.
+Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
+Reply to question for qname='test.com.', qtype=NS