Commit 04493375 authored by Mark Andrews's avatar Mark Andrews
Browse files

NSEC3PARAM support was added to Net::DNS in 1.00_06

Require 1.01 or later to when adding a NSEC3PARAM records.
parent 7b62af4e
Pipeline #70259 failed with stages
in 18 minutes and 50 seconds
...@@ -310,7 +310,10 @@ then ...@@ -310,7 +310,10 @@ then
{ {
$PERL update_test.pl -s 10.53.0.1 -p ${PORT} update.nil. || ret=1 $PERL update_test.pl -s 10.53.0.1 -p ${PORT} update.nil. || ret=1
} | cat_i } | cat_i
grep "updating zone 'update.nil/IN': too many NSEC3 iterations (151)" ns1/named.run > /dev/null || ret=1 if $PERL -e 'use Net::DNS; die "Net::DNS too old ($Net::DNS::VERSION < 1.01)" if ($Net::DNS::VERSION < 1.01)' > /dev/null
then
grep "updating zone 'update.nil/IN': too many NSEC3 iterations (151)" ns1/named.run > /dev/null || ret=1
fi
[ $ret -eq 1 ] && { echo_i "failed"; status=1; } [ $ret -eq 1 ] && { echo_i "failed"; status=1; }
else else
echo_i "The second part of this test requires the Net::DNS library." >&2 echo_i "The second part of this test requires the Net::DNS library." >&2
......
...@@ -410,9 +410,13 @@ test("NOERROR", ["update", rr_add("u.$zone 300 NS ns.u.$zone")]); ...@@ -410,9 +410,13 @@ test("NOERROR", ["update", rr_add("u.$zone 300 NS ns.u.$zone")]);
test("NOERROR", ["update", rr_del("u.$zone NS ns.u.$zone")]); test("NOERROR", ["update", rr_del("u.$zone NS ns.u.$zone")]);
section("Excessive NSEC3PARAM iterations"); if ($Net::DNS::VERSION < 1.01) {
test("REFUSED", ["update", rr_add("$zone 300 NSEC3PARAM 1 0 151 -")]); print "skipped Excessive NSEC3PARAM iterations; Net::DNS too old.\n";
test("NOERROR", ["update", rr_add("$zone 300 NSEC3PARAM 1 0 150 -")]); } else {
section("Excessive NSEC3PARAM iterations");
test("REFUSED", ["update", rr_add("$zone 300 NSEC3PARAM 1 0 151 -")]);
test("NOERROR", ["update", rr_add("$zone 300 NSEC3PARAM 1 0 150 -")]);
}
if ($failures) { if ($failures) {
print "$failures tests failed.\n"; print "$failures tests failed.\n";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment