]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
add test for axfr dedup fix in r2856
authorPeter van Dijk <peter.van.dijk@netherlabs.nl>
Thu, 8 Nov 2012 08:29:41 +0000 (08:29 +0000)
committerPeter van Dijk <peter.van.dijk@netherlabs.nl>
Thu, 8 Nov 2012 08:29:41 +0000 (08:29 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@2861 d19b8d6e-7fed-0310-83ef-9ca221ded41b

14 files changed:
regression-tests/any-nxdomain/expected_result.dnssec
regression-tests/cname-to-nxdomain/expected_result.dnssec
regression-tests/double/command [new file with mode: 0755]
regression-tests/double/description [new file with mode: 0644]
regression-tests/double/expected_result [new file with mode: 0644]
regression-tests/double/expected_result.dnssec [new file with mode: 0644]
regression-tests/example.com
regression-tests/nsec-glue/expected_result
regression-tests/nsec-middle/expected_result
regression-tests/nsec-wraparound/expected_result
regression-tests/nsec-wrong-type-at-apex/expected_result
regression-tests/nxdomain-below-nonempty-terminal/expected_result
regression-tests/second-level-nxdomain/expected_result
regression-tests/two-level-nxdomain/expected_result

index 4d714e5dbb5992a72c1fec2b950b5aae276d0962..724e90f99204ad6aa965587c593a1fbed6813804 100644 (file)
@@ -1,4 +1,4 @@
-1      example.com.    IN      NSEC    86400   dsdelegation.example.com. NS SOA MX RRSIG NSEC DNSKEY
+1      example.com.    IN      NSEC    86400   double.example.com. NS SOA MX RRSIG NSEC DNSKEY
 1      example.com.    IN      RRSIG   86400   NSEC 8 2 86400 [expiry] [inception] [keytag] example.com. ...
 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
index 1978b08e77e2987e0085e19498793a3b75284eb4..d94ceb7bb7aa33571427f6386750b0cdf88e36f7 100644 (file)
@@ -1,6 +1,6 @@
 0      nxd.example.com.        IN      CNAME   120     nxdomain.example.com.
 0      nxd.example.com.        IN      RRSIG   120     CNAME 8 3 120 [expiry] [inception] [keytag] example.com. ...
-1      example.com.    IN      NSEC    86400   dsdelegation.example.com. NS SOA MX RRSIG NSEC DNSKEY
+1      example.com.    IN      NSEC    86400   double.example.com. NS SOA MX RRSIG NSEC DNSKEY
 1      example.com.    IN      RRSIG   86400   NSEC 8 2 86400 [expiry] [inception] [keytag] example.com. ...
 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
diff --git a/regression-tests/double/command b/regression-tests/double/command
new file mode 100755 (executable)
index 0000000..d4746cf
--- /dev/null
@@ -0,0 +1,2 @@
+#!/bin/sh
+cleandig double.example.com A dnssec
diff --git a/regression-tests/double/description b/regression-tests/double/description
new file mode 100644 (file)
index 0000000..de127e3
--- /dev/null
@@ -0,0 +1 @@
+Verify that we deduplicate records correctly for RRSIG generation.
diff --git a/regression-tests/double/expected_result b/regression-tests/double/expected_result
new file mode 100644 (file)
index 0000000..18cc4c1
--- /dev/null
@@ -0,0 +1,4 @@
+0      double.example.com.     IN      A       120     192.168.5.1
+2      .       IN      OPT     32768   
+Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
+Reply to question for qname='double.example.com.', qtype=A
diff --git a/regression-tests/double/expected_result.dnssec b/regression-tests/double/expected_result.dnssec
new file mode 100644 (file)
index 0000000..5e027ce
--- /dev/null
@@ -0,0 +1,5 @@
+0      double.example.com.     IN      A       120     192.168.5.1
+0      double.example.com.     IN      RRSIG   120     A 8 3 120 [expiry] [inception] [keytag] example.com. ...
+2      .       IN      OPT     32768   
+Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
+Reply to question for qname='double.example.com.', qtype=A
index f45edd2f213c57cae302892bf07e654692f864ed..32cfed936daa0d1f2222b7a6dd106fcd757db992 100644 (file)
@@ -17,6 +17,8 @@ $ORIGIN example.com.
 ns1                    IN      A       192.168.1.1
 ns2                    IN      A       192.168.1.2
 ;
+double                 IN      A       192.168.5.1
+;
 hightype               IN      A       192.168.1.5
 hightype               IN      TYPE65534 \# 5 07ED260001
 ;
@@ -20172,3 +20174,5 @@ host-19996      IN      A       192.168.1.28
 host-19997     IN      A       192.168.1.29
 host-19998     IN      A       192.168.1.30
 host-19999     IN      A       192.168.1.31
+;
+double                 IN      A       192.168.5.1
index 002855b56feaf77e12335b5c551b0b7aa9127abd..e110ae3fcd881bffee97d41f7ddddb257b8b9ff9 100644 (file)
@@ -1,4 +1,4 @@
-1      example.com.    IN      NSEC    86400   dsdelegation.example.com. NS SOA MX RRSIG NSEC DNSKEY
+1      example.com.    IN      NSEC    86400   double.example.com. NS SOA MX RRSIG NSEC DNSKEY
 1      example.com.    IN      RRSIG   86400   NSEC 8 2 86400 [expiry] [inception] [keytag] example.com. ...
 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
index 06a61d8a8681a635e8a1b68999e508d267fab0ec..449989d9e1687bbbbfed51edbc3638da0a07c359 100644 (file)
@@ -1,4 +1,4 @@
-1      example.com.    IN      NSEC    86400   dsdelegation.example.com. NS SOA MX RRSIG NSEC DNSKEY
+1      example.com.    IN      NSEC    86400   double.example.com. NS SOA MX RRSIG NSEC DNSKEY
 1      example.com.    IN      RRSIG   86400   NSEC 8 2 86400 [expiry] [inception] [keytag] example.com. ...
 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
index 0ff7e42e85aa5711dac868da9f86df8a6ea3f2d7..a06211ba053c03344d8fd832a43e2a1437df26df 100644 (file)
@@ -1,4 +1,4 @@
-1      example.com.    IN      NSEC    86400   dsdelegation.example.com. NS SOA MX RRSIG NSEC DNSKEY
+1      example.com.    IN      NSEC    86400   double.example.com. NS SOA MX RRSIG NSEC DNSKEY
 1      example.com.    IN      RRSIG   86400   NSEC 8 2 86400 [expiry] [inception] [keytag] example.com. ...
 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
index 38f236e6b832fa2c70287004840afa07f74e6406..fe377c5d9815610f6d03b7f03903471f5dd754d0 100644 (file)
@@ -1,4 +1,4 @@
-1      example.com.    IN      NSEC    86400   dsdelegation.example.com. NS SOA MX RRSIG NSEC DNSKEY
+1      example.com.    IN      NSEC    86400   double.example.com. NS SOA MX RRSIG NSEC DNSKEY
 1      example.com.    IN      RRSIG   86400   NSEC 8 2 86400 [expiry] [inception] [keytag] example.com. ...
 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
index 2cd6b8ecaa27bce7e1961c88b1a7abd1873121fe..5943dc0950f6a7454272f07ad98b1c25dfa6523c 100644 (file)
@@ -1,4 +1,4 @@
-1      example.com.    IN      NSEC    86400   dsdelegation.example.com. NS SOA MX RRSIG NSEC DNSKEY
+1      example.com.    IN      NSEC    86400   double.example.com. NS SOA MX RRSIG NSEC DNSKEY
 1      example.com.    IN      RRSIG   86400   NSEC 8 2 86400 [expiry] [inception] [keytag] example.com. ...
 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
index cebdb0c6da3cd7b173583518c606a2bdcf5c20e9..3b761e31df59ec536dd9a24c97baffff80235eb3 100644 (file)
@@ -1,4 +1,4 @@
-1      example.com.    IN      NSEC    86400   dsdelegation.example.com. NS SOA MX RRSIG NSEC DNSKEY
+1      example.com.    IN      NSEC    86400   double.example.com. NS SOA MX RRSIG NSEC DNSKEY
 1      example.com.    IN      RRSIG   86400   NSEC 8 2 86400 [expiry] [inception] [keytag] example.com. ...
 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
index dd82e70dd1ccafb25a2bbff8f42e62619f8b8bce..06f281cdd63da81ee7c4d9b14dc7f2e5e91af899 100644 (file)
@@ -1,4 +1,4 @@
-1      example.com.    IN      NSEC    86400   dsdelegation.example.com. NS SOA MX RRSIG NSEC DNSKEY
+1      example.com.    IN      NSEC    86400   double.example.com. NS SOA MX RRSIG NSEC DNSKEY
 1      example.com.    IN      RRSIG   86400   NSEC 8 2 86400 [expiry] [inception] [keytag] example.com. ...
 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