From 74d73557e8d530c8f9a40ebcee9f95832a2f5900 Mon Sep 17 00:00:00 2001 From: Kees Monshouwer Date: Tue, 29 Mar 2016 10:22:42 +0200 Subject: [PATCH] add AXFR to root zone tests --- regression-tests.rootzone/tests/axfr/command | 2 ++ .../tests/axfr/description | 1 + .../tests/axfr/expected_result | 10 ++++++++ .../tests/axfr/expected_result.dnssec | 21 +++++++++++++++++ .../tests/axfr/expected_result.nsec3 | 23 +++++++++++++++++++ .../tests/axfr/expected_result.nsec3-optout | 21 +++++++++++++++++ .../tests/axfr/skip.narrow | 0 .../tests/axfr/skip.noaxfr | 0 8 files changed, 78 insertions(+) create mode 100755 regression-tests.rootzone/tests/axfr/command create mode 100644 regression-tests.rootzone/tests/axfr/description create mode 100644 regression-tests.rootzone/tests/axfr/expected_result create mode 100644 regression-tests.rootzone/tests/axfr/expected_result.dnssec create mode 100644 regression-tests.rootzone/tests/axfr/expected_result.nsec3 create mode 100644 regression-tests.rootzone/tests/axfr/expected_result.nsec3-optout create mode 100644 regression-tests.rootzone/tests/axfr/skip.narrow create mode 100644 regression-tests.rootzone/tests/axfr/skip.noaxfr diff --git a/regression-tests.rootzone/tests/axfr/command b/regression-tests.rootzone/tests/axfr/command new file mode 100755 index 000000000..40b62f784 --- /dev/null +++ b/regression-tests.rootzone/tests/axfr/command @@ -0,0 +1,2 @@ +#!/bin/sh +cleandig . AXFR showflags unhash diff --git a/regression-tests.rootzone/tests/axfr/description b/regression-tests.rootzone/tests/axfr/description new file mode 100644 index 000000000..5490a4619 --- /dev/null +++ b/regression-tests.rootzone/tests/axfr/description @@ -0,0 +1 @@ +Are all records present in the AXFR output (with the correct type map) diff --git a/regression-tests.rootzone/tests/axfr/expected_result b/regression-tests.rootzone/tests/axfr/expected_result new file mode 100644 index 000000000..0b76cb425 --- /dev/null +++ b/regression-tests.rootzone/tests/axfr/expected_result @@ -0,0 +1,10 @@ +. 518400 IN NS a.root-servers.net. +. 86400 IN SOA a.root-servers.net. nstld.verisign-grs.com. 2016021600 1800 900 604800 86400 +. 86400 IN SOA a.root-servers.net. nstld.verisign-grs.com. 2016021600 1800 900 604800 86400 +a.gtld-servers.net. 172800 IN A 192.5.6.30 +a.gtld-servers.net. 172800 IN AAAA 2001:503:a83e::2:30 +a.root-servers.net. 518400 IN A 198.41.0.4 +a.root-servers.net. 518400 IN AAAA 2001:503:ba3e::2:30 +net. 172800 IN NS a.gtld-servers.net. +net. 86400 IN DS 35886 8 2 7862b27f5f516ebe19680444d4ce5e762981931842c465f00236401d8bd973ee +org. 172800 IN NS a.gtld-servers.net. diff --git a/regression-tests.rootzone/tests/axfr/expected_result.dnssec b/regression-tests.rootzone/tests/axfr/expected_result.dnssec new file mode 100644 index 000000000..f89385cf3 --- /dev/null +++ b/regression-tests.rootzone/tests/axfr/expected_result.dnssec @@ -0,0 +1,21 @@ +. 518400 IN NS a.root-servers.net. +. 518400 IN RRSIG NS 13 0 518400 [expiry] [inception] [keytag] . ... +. 86400 IN DNSKEY 257 3 13 ... +. 86400 IN NSEC net. NS SOA RRSIG NSEC DNSKEY +. 86400 IN RRSIG DNSKEY 13 0 86400 [expiry] [inception] [keytag] . ... +. 86400 IN RRSIG NSEC 13 0 86400 [expiry] [inception] [keytag] . ... +. 86400 IN RRSIG SOA 13 0 86400 [expiry] [inception] [keytag] . ... +. 86400 IN SOA a.root-servers.net. nstld.verisign-grs.com. 2016021600 1800 900 604800 86400 +. 86400 IN SOA a.root-servers.net. nstld.verisign-grs.com. 2016021600 1800 900 604800 86400 +a.gtld-servers.net. 172800 IN A 192.5.6.30 +a.gtld-servers.net. 172800 IN AAAA 2001:503:a83e::2:30 +a.root-servers.net. 518400 IN A 198.41.0.4 +a.root-servers.net. 518400 IN AAAA 2001:503:ba3e::2:30 +net. 172800 IN NS a.gtld-servers.net. +net. 86400 IN DS 35886 8 2 7862b27f5f516ebe19680444d4ce5e762981931842c465f00236401d8bd973ee +net. 86400 IN NSEC org. NS DS RRSIG NSEC +net. 86400 IN RRSIG DS 13 1 86400 [expiry] [inception] [keytag] . ... +net. 86400 IN RRSIG NSEC 13 1 86400 [expiry] [inception] [keytag] . ... +org. 172800 IN NS a.gtld-servers.net. +org. 86400 IN NSEC . NS RRSIG NSEC +org. 86400 IN RRSIG NSEC 13 1 86400 [expiry] [inception] [keytag] . ... diff --git a/regression-tests.rootzone/tests/axfr/expected_result.nsec3 b/regression-tests.rootzone/tests/axfr/expected_result.nsec3 new file mode 100644 index 000000000..aa6d56d3c --- /dev/null +++ b/regression-tests.rootzone/tests/axfr/expected_result.nsec3 @@ -0,0 +1,23 @@ +. 518400 IN NS a.root-servers.net. +. 518400 IN RRSIG NS 13 0 518400 [expiry] [inception] [keytag] . ... +. 86400 IN DNSKEY 257 3 13 ... +. 86400 IN NSEC3 1 0 1 abcd [next owner] NS SOA RRSIG DNSKEY NSEC3PARAM +. 86400 IN NSEC3PARAM 1 0 1 abcd +. 86400 IN RRSIG DNSKEY 13 0 86400 [expiry] [inception] [keytag] . ... +. 86400 IN RRSIG NSEC3 13 1 86400 [expiry] [inception] [keytag] . ... +. 86400 IN RRSIG NSEC3PARAM 13 0 86400 [expiry] [inception] [keytag] . ... +. 86400 IN RRSIG SOA 13 0 86400 [expiry] [inception] [keytag] . ... +. 86400 IN SOA a.root-servers.net. nstld.verisign-grs.com. 2016021600 1800 900 604800 86400 +. 86400 IN SOA a.root-servers.net. nstld.verisign-grs.com. 2016021600 1800 900 604800 86400 +a.gtld-servers.net. 172800 IN A 192.5.6.30 +a.gtld-servers.net. 172800 IN AAAA 2001:503:a83e::2:30 +a.root-servers.net. 518400 IN A 198.41.0.4 +a.root-servers.net. 518400 IN AAAA 2001:503:ba3e::2:30 +net. 172800 IN NS a.gtld-servers.net. +net. 86400 IN DS 35886 8 2 7862b27f5f516ebe19680444d4ce5e762981931842c465f00236401d8bd973ee +net. 86400 IN NSEC3 1 0 1 abcd [next owner] NS DS RRSIG +net. 86400 IN RRSIG DS 13 1 86400 [expiry] [inception] [keytag] . ... +net. 86400 IN RRSIG NSEC3 13 1 86400 [expiry] [inception] [keytag] . ... +org. 172800 IN NS a.gtld-servers.net. +org. 86400 IN NSEC3 1 0 1 abcd [next owner] NS +org. 86400 IN RRSIG NSEC3 13 1 86400 [expiry] [inception] [keytag] . ... diff --git a/regression-tests.rootzone/tests/axfr/expected_result.nsec3-optout b/regression-tests.rootzone/tests/axfr/expected_result.nsec3-optout new file mode 100644 index 000000000..ed8d610f2 --- /dev/null +++ b/regression-tests.rootzone/tests/axfr/expected_result.nsec3-optout @@ -0,0 +1,21 @@ +. 518400 IN NS a.root-servers.net. +. 518400 IN RRSIG NS 13 0 518400 [expiry] [inception] [keytag] . ... +. 86400 IN DNSKEY 257 3 13 ... +. 86400 IN NSEC3 1 1 1 abcd [next owner] NS SOA RRSIG DNSKEY NSEC3PARAM +. 86400 IN NSEC3PARAM 1 0 1 abcd +. 86400 IN RRSIG DNSKEY 13 0 86400 [expiry] [inception] [keytag] . ... +. 86400 IN RRSIG NSEC3 13 1 86400 [expiry] [inception] [keytag] . ... +. 86400 IN RRSIG NSEC3PARAM 13 0 86400 [expiry] [inception] [keytag] . ... +. 86400 IN RRSIG SOA 13 0 86400 [expiry] [inception] [keytag] . ... +. 86400 IN SOA a.root-servers.net. nstld.verisign-grs.com. 2016021600 1800 900 604800 86400 +. 86400 IN SOA a.root-servers.net. nstld.verisign-grs.com. 2016021600 1800 900 604800 86400 +a.gtld-servers.net. 172800 IN A 192.5.6.30 +a.gtld-servers.net. 172800 IN AAAA 2001:503:a83e::2:30 +a.root-servers.net. 518400 IN A 198.41.0.4 +a.root-servers.net. 518400 IN AAAA 2001:503:ba3e::2:30 +net. 172800 IN NS a.gtld-servers.net. +net. 86400 IN DS 35886 8 2 7862b27f5f516ebe19680444d4ce5e762981931842c465f00236401d8bd973ee +net. 86400 IN NSEC3 1 1 1 abcd [next owner] NS DS RRSIG +net. 86400 IN RRSIG DS 13 1 86400 [expiry] [inception] [keytag] . ... +net. 86400 IN RRSIG NSEC3 13 1 86400 [expiry] [inception] [keytag] . ... +org. 172800 IN NS a.gtld-servers.net. diff --git a/regression-tests.rootzone/tests/axfr/skip.narrow b/regression-tests.rootzone/tests/axfr/skip.narrow new file mode 100644 index 000000000..e69de29bb diff --git a/regression-tests.rootzone/tests/axfr/skip.noaxfr b/regression-tests.rootzone/tests/axfr/skip.noaxfr new file mode 100644 index 000000000..e69de29bb -- 2.40.0