From: Peter van Dijk Date: Mon, 14 Dec 2015 11:01:15 +0000 (+0100) Subject: add rhs @ expansion test X-Git-Tag: dnsdist-1.0.0-alpha1~52^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=469b309c2c3de70704d44a0104d3bcc4e67fd513;p=thirdparty%2Fpdns.git add rhs @ expansion test --- diff --git a/regression-tests/tests/cname-to-apex/command b/regression-tests/tests/cname-to-apex/command new file mode 100755 index 0000000000..b945f95781 --- /dev/null +++ b/regression-tests/tests/cname-to-apex/command @@ -0,0 +1,2 @@ +#!/bin/sh +cleandig rhs-at-expansion.example.com CNAME \ No newline at end of file diff --git a/regression-tests/tests/cname-to-apex/description b/regression-tests/tests/cname-to-apex/description new file mode 100644 index 0000000000..8ac6dcd87b --- /dev/null +++ b/regression-tests/tests/cname-to-apex/description @@ -0,0 +1 @@ +Use CNAME to validate '@' expansion in RR contents. \ No newline at end of file diff --git a/regression-tests/tests/cname-to-apex/expected_result b/regression-tests/tests/cname-to-apex/expected_result new file mode 100644 index 0000000000..0186b5c091 --- /dev/null +++ b/regression-tests/tests/cname-to-apex/expected_result @@ -0,0 +1,3 @@ +0 rhs-at-expansion.example.com. IN CNAME 120 example.com. +Rcode: 0 (No Error), RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0 +Reply to question for qname='rhs-at-expansion.example.com.', qtype=CNAME diff --git a/regression-tests/tests/nsec-wrong-type/expected_result b/regression-tests/tests/nsec-wrong-type/expected_result index e438e93344..75ba6d0396 100644 --- a/regression-tests/tests/nsec-wrong-type/expected_result +++ b/regression-tests/tests/nsec-wrong-type/expected_result @@ -1,6 +1,6 @@ 1 example.com. IN RRSIG 86400 SOA 8 2 100000 [expiry] [inception] [keytag] example.com. ... 1 example.com. IN SOA 86400 ns1.example.com. ahu.example.com. 2000081501 28800 7200 604800 86400 -1 outpost.example.com. IN NSEC 86400 semi-external.example.com. A RRSIG NSEC +1 outpost.example.com. IN NSEC 86400 rhs-at-expansion.example.com. A RRSIG NSEC 1 outpost.example.com. IN RRSIG 86400 NSEC 8 3 86400 [expiry] [inception] [keytag] example.com. ... 2 . IN OPT 32768 Rcode: 0 (No Error), RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0 diff --git a/regression-tests/tests/nxdomain-below-nonempty-terminal/expected_result b/regression-tests/tests/nxdomain-below-nonempty-terminal/expected_result index 440530b1f0..d53076e10b 100644 --- a/regression-tests/tests/nxdomain-below-nonempty-terminal/expected_result +++ b/regression-tests/tests/nxdomain-below-nonempty-terminal/expected_result @@ -1,6 +1,6 @@ 1 example.com. IN RRSIG 86400 SOA 8 2 100000 [expiry] [inception] [keytag] example.com. ... 1 example.com. IN SOA 86400 ns1.example.com. ahu.example.com. 2000081501 28800 7200 604800 86400 -1 outpost.example.com. IN NSEC 86400 semi-external.example.com. A RRSIG NSEC +1 outpost.example.com. IN NSEC 86400 rhs-at-expansion.example.com. A RRSIG NSEC 1 outpost.example.com. IN RRSIG 86400 NSEC 8 3 86400 [expiry] [inception] [keytag] example.com. ... 2 . IN OPT 32768 Rcode: 3 (Non-Existent domain), RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0 diff --git a/regression-tests/tests/second-level-nxdomain/expected_result b/regression-tests/tests/second-level-nxdomain/expected_result index 2c7814a6c9..2c7a35c4da 100644 --- a/regression-tests/tests/second-level-nxdomain/expected_result +++ b/regression-tests/tests/second-level-nxdomain/expected_result @@ -1,6 +1,6 @@ 1 example.com. IN RRSIG 86400 SOA 8 2 100000 [expiry] [inception] [keytag] example.com. ... 1 example.com. IN SOA 86400 ns1.example.com. ahu.example.com. 2000081501 28800 7200 604800 86400 -1 outpost.example.com. IN NSEC 86400 semi-external.example.com. A RRSIG NSEC +1 outpost.example.com. IN NSEC 86400 rhs-at-expansion.example.com. A RRSIG NSEC 1 outpost.example.com. IN RRSIG 86400 NSEC 8 3 86400 [expiry] [inception] [keytag] example.com. ... 2 . IN OPT 32768 Rcode: 3 (Non-Existent domain), RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0 diff --git a/regression-tests/zones/example.com b/regression-tests/zones/example.com index 4e18d38490..0600df3569 100644 --- a/regression-tests/zones/example.com +++ b/regression-tests/zones/example.com @@ -20185,3 +20185,5 @@ double IN A 192.168.5.1 host-0 IN EUI48 00-50-56-9b-00-e7 host-1 IN EUI64 00-50-56-9b-00-e7-7e-57 +; +rhs-at-expansion IN CNAME @ \ No newline at end of file