From: Peter van Dijk Date: Thu, 19 Jan 2017 13:41:13 +0000 (+0100) Subject: add autoptr test X-Git-Tag: auth-4.0.5~1^2~4^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=34fddb73625cc48ab855bc614cc173d62f5c2d0e;p=thirdparty%2Fpdns.git add autoptr test (cherry picked from commit c1e583e5441045a06feae2b20103bf433a22be60) --- diff --git a/regression-tests/tests/autoptr/command b/regression-tests/tests/autoptr/command new file mode 100755 index 0000000000..8d45f42c47 --- /dev/null +++ b/regression-tests/tests/autoptr/command @@ -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 index 0000000000..078008ff67 --- /dev/null +++ b/regression-tests/tests/autoptr/description @@ -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 index 0000000000..755fd05992 --- /dev/null +++ b/regression-tests/tests/autoptr/expected_result @@ -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 index 0000000000..c0f16dbdd6 --- /dev/null +++ b/regression-tests/tests/autoptr/expected_result.ldap-strict @@ -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