]> granicus.if.org Git - pdns/commitdiff
add autoptr test
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Thu, 19 Jan 2017 13:41:13 +0000 (14:41 +0100)
committerPieter Lexis <pieter.lexis@powerdns.com>
Mon, 13 Nov 2017 15:23:32 +0000 (16:23 +0100)
(cherry picked from commit c1e583e5441045a06feae2b20103bf433a22be60)

regression-tests/tests/autoptr/command [new file with mode: 0755]
regression-tests/tests/autoptr/description [new file with mode: 0644]
regression-tests/tests/autoptr/expected_result [new file with mode: 0644]
regression-tests/tests/autoptr/expected_result.ldap-strict [new file with mode: 0644]

diff --git a/regression-tests/tests/autoptr/command b/regression-tests/tests/autoptr/command
new file mode 100755 (executable)
index 0000000..8d45f42
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/sh
+cleandig 1.2.0.192.in-addr.arpa. PTR
+
diff --git a/regression-tests/tests/autoptr/description b/regression-tests/tests/autoptr/description
new file mode 100644 (file)
index 0000000..078008f
--- /dev/null
@@ -0,0 +1 @@
+Test the auto PTR generation in the LDAP backend in strict mode.
diff --git a/regression-tests/tests/autoptr/expected_result b/regression-tests/tests/autoptr/expected_result
new file mode 100644 (file)
index 0000000..755fd05
--- /dev/null
@@ -0,0 +1,3 @@
+1      2.0.192.in-addr.arpa.   IN      SOA     120     ns1.example.com. ahu.example.com. 2000081501 28800 7200 604800 86400
+Rcode: 3 (Non-Existent domain), RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
+Reply to question for qname='1.2.0.192.in-addr.arpa.', qtype=PTR
diff --git a/regression-tests/tests/autoptr/expected_result.ldap-strict b/regression-tests/tests/autoptr/expected_result.ldap-strict
new file mode 100644 (file)
index 0000000..c0f16db
--- /dev/null
@@ -0,0 +1,3 @@
+0      1.2.0.192.in-addr.arpa. IN      PTR     120     host-for-auto-ptr.example.com.
+Rcode: 0 (No Error), RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
+Reply to question for qname='1.2.0.192.in-addr.arpa.', qtype=PTR