From: Mark Andrews Date: Thu, 24 Oct 2019 03:13:39 +0000 (+1100) Subject: add named-checkconf tests for dnskey-sig-validity at range limits X-Git-Tag: v9.15.6~52^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=918f020f9f5d3ca41cd230e489326654cf14c588;p=thirdparty%2Fbind9.git add named-checkconf tests for dnskey-sig-validity at range limits --- diff --git a/CHANGES b/CHANGES index 6abd05682c0..6d89938cbd2 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +5304. [bug] "dnskey-sig-validity 0;" was not being accepted. + [GL #876] + 5303. [placeholder] 5302. [bug] Fix checking that "dnstap-output" is defined when diff --git a/bin/tests/system/checkconf/good-dnskey-validity-3660.conf b/bin/tests/system/checkconf/good-dnskey-validity-3660.conf new file mode 100644 index 00000000000..2a69951faad --- /dev/null +++ b/bin/tests/system/checkconf/good-dnskey-validity-3660.conf @@ -0,0 +1,14 @@ +/* + * Copyright (C) Internet Systems Consortium, Inc. ("ISC") + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * See the COPYRIGHT file distributed with this work for additional + * information regarding copyright ownership. + */ + +options { + dnskey-sig-validity 3660; /* maximum value 10 years */ +}; diff --git a/bin/tests/system/checkconf/good-dnskey-validity-zero.conf b/bin/tests/system/checkconf/good-dnskey-validity-zero.conf new file mode 100644 index 00000000000..3f8967044ba --- /dev/null +++ b/bin/tests/system/checkconf/good-dnskey-validity-zero.conf @@ -0,0 +1,14 @@ +/* + * Copyright (C) Internet Systems Consortium, Inc. ("ISC") + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * See the COPYRIGHT file distributed with this work for additional + * information regarding copyright ownership. + */ + +options { + dnskey-sig-validity 0; /* 0 is disabled */ +};