]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
add auth-zone-delegation test
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Tue, 7 Jun 2016 11:12:15 +0000 (04:12 -0700)
committerbert hubert <bert.hubert@powerdns.com>
Tue, 7 Jun 2016 11:31:52 +0000 (13:31 +0200)
regression-tests.recursor/auth-zone-delegation/command [new file with mode: 0755]
regression-tests.recursor/auth-zone-delegation/description [new file with mode: 0644]
regression-tests.recursor/auth-zone-delegation/expected_result [new file with mode: 0644]

diff --git a/regression-tests.recursor/auth-zone-delegation/command b/regression-tests.recursor/auth-zone-delegation/command
new file mode 100755 (executable)
index 0000000..96c443e
--- /dev/null
@@ -0,0 +1,2 @@
+cleandig www.france.auth-zone.example.net. A | sed 's/\(.*\tIN\t[A-Z0-9]\+\t\)\([0-9]\+\)/\13600/'
+cleandig france.auth-zone.example.net. A | sed 's/\(.*\tIN\t[A-Z0-9]\+\t\)\([0-9]\+\)/\13600/'
diff --git a/regression-tests.recursor/auth-zone-delegation/description b/regression-tests.recursor/auth-zone-delegation/description
new file mode 100644 (file)
index 0000000..658360d
--- /dev/null
@@ -0,0 +1,3 @@
+Test:
+(1) lookup of a record below a delegation in an auth zone
+(2) lookup of a record AT a delegation in an auth zone
diff --git a/regression-tests.recursor/auth-zone-delegation/expected_result b/regression-tests.recursor/auth-zone-delegation/expected_result
new file mode 100644 (file)
index 0000000..2388e91
--- /dev/null
@@ -0,0 +1,6 @@
+0      www.france.auth-zone.example.net.       IN      A       3600    192.0.2.23
+Rcode: 0 (No Error), RD: 1, QR: 1, TC: 0, AA: 0, opcode: 0
+Reply to question for qname='www.france.auth-zone.example.net.', qtype=A
+0      france.auth-zone.example.net.   IN      A       3600    192.0.2.223
+Rcode: 0 (No Error), RD: 1, QR: 1, TC: 0, AA: 0, opcode: 0
+Reply to question for qname='france.auth-zone.example.net.', qtype=A