]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Remove auto-dnssec checkconf tests
authorMatthijs Mekking <matthijs@isc.org>
Wed, 14 Jun 2023 13:52:09 +0000 (15:52 +0200)
committerMatthijs Mekking <matthijs@isc.org>
Thu, 20 Jul 2023 09:04:23 +0000 (11:04 +0200)
Any checkconf tests related to auto-dnssec can be removed, as this
option will be removed too.

bin/tests/system/checkconf/bad-kasp2.conf [deleted file]
bin/tests/system/checkconf/bad-noddns.conf
bin/tests/system/checkconf/dnssec.1 [deleted file]
bin/tests/system/checkconf/dnssec.2 [deleted file]
bin/tests/system/checkconf/dnssec.3 [deleted file]
bin/tests/system/checkconf/inline-bad.conf
bin/tests/system/checkconf/inline-good.conf
bin/tests/system/checkconf/inline-no.conf
bin/tests/system/checkconf/kasp-and-other-dnssec-options.conf
bin/tests/system/checkconf/tests.sh

diff --git a/bin/tests/system/checkconf/bad-kasp2.conf b/bin/tests/system/checkconf/bad-kasp2.conf
deleted file mode 100644 (file)
index 2e88964..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
- * Copyright (C) Internet Systems Consortium, Inc. ("ISC")
- *
- * SPDX-License-Identifier: MPL-2.0
- *
- * 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 https://mozilla.org/MPL/2.0/.
- *
- * See the COPYRIGHT file distributed with this work for additional
- * information regarding copyright ownership.
- */
-
-include "good-kasp.conf";
-
-// Bad zone configuration because this has dnssec-policy and other DNSSEC sign
-// configuration options (auto-dnssec).
-zone "example.net" {
-       type primary;
-       file "example.db";
-       dnssec-policy "test";
-       auto-dnssec maintain;
-       allow-update { any; };
-};
index f7859d19372d081b054573fa1cd0ddfbf194107b..76435bc6e6cdd51d1f56271194d751893321b616 100644 (file)
@@ -14,6 +14,6 @@
 zone example {
        type primary;
        file "example.db";
-       auto-dnssec maintain;
+       dnssec-policy default;
        allow-update { none; };
 };
diff --git a/bin/tests/system/checkconf/dnssec.1 b/bin/tests/system/checkconf/dnssec.1
deleted file mode 100644 (file)
index a466ac4..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Copyright (C) Internet Systems Consortium, Inc. ("ISC")
- *
- * SPDX-License-Identifier: MPL-2.0
- *
- * 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 https://mozilla.org/MPL/2.0/.
- *
- * See the COPYRIGHT file distributed with this work for additional
- * information regarding copyright ownership.
- */
-
-view view1 {
-       match-clients { any; };
-       dnssec-validation yes;
-};
-
-view view2 {
-       match-clients { none; };
-       dnssec-validation auto;
-};
-
-view view3 {
-       match-clients { none; };
-       auto-dnssec maintain;
-};
diff --git a/bin/tests/system/checkconf/dnssec.2 b/bin/tests/system/checkconf/dnssec.2
deleted file mode 100644 (file)
index 0f6a8af..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * Copyright (C) Internet Systems Consortium, Inc. ("ISC")
- *
- * SPDX-License-Identifier: MPL-2.0
- *
- * 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 https://mozilla.org/MPL/2.0/.
- *
- * See the COPYRIGHT file distributed with this work for additional
- * information regarding copyright ownership.
- */
-
-view view1 {
-       match-clients { any; };
-};
-
-view view2 {
-       match-clients { none; };
-};
-
-view view3 {
-       match-clients { none; };
-       dnssec-validation auto;
-};
-
-view view4 {
-       match-clients { none; };
-};
-
-view view5 {
-       match-clients { none; };
-       auto-dnssec off;
-};
diff --git a/bin/tests/system/checkconf/dnssec.3 b/bin/tests/system/checkconf/dnssec.3
deleted file mode 100644 (file)
index 53e5d91..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-/*
- * Copyright (C) Internet Systems Consortium, Inc. ("ISC")
- *
- * SPDX-License-Identifier: MPL-2.0
- *
- * 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 https://mozilla.org/MPL/2.0/.
- *
- * See the COPYRIGHT file distributed with this work for additional
- * information regarding copyright ownership.
- */
-
-zone "test" {
-       type primary;
-       file "test.db";
-       auto-dnssec maintain;
-};
index 17dcb6bdf33621c45639eae2afcdf52f30371895..4662e5a90013fc24b7642812e07be2aae2f2bc6a 100644 (file)
@@ -17,7 +17,7 @@ primaries "publicSecondaries" {127.0.0.1;};
 zone "example.net" {
        type secondary;
        key-directory "/var/lib/bind/example.net";
-       auto-dnssec maintain;
+       dnssec-policy default;
        inline-signing yes;
        primaries { stealthPrimaries; };
        notify explicit;
index f588bcdd81b23464e4c99ca3f87352cb25c4d785..88c403c2db43748c962be3a4b6867fb923e61845 100644 (file)
@@ -18,7 +18,7 @@ zone "example.net" {
        type secondary;
        file "/var/cache/bind/example.net.db";
        key-directory "/var/lib/bind/example.net";
-       auto-dnssec maintain;
+       dnssec-policy default;
        inline-signing yes;
        primaries { stealthPrimaries; };
        notify explicit;
index f6dbc5ac753210ba103216f132fe9e39eef2281e..af7c14130f8c96e30cfe24f856897465d460882b 100644 (file)
@@ -17,7 +17,7 @@ primaries "publicSecondaries" {127.0.0.1;};
 zone "example.net" {
        type secondary;
        key-directory "/var/lib/bind/example.net";
-       auto-dnssec maintain;
+       dnssec-policy default;
        inline-signing no;
        primaries { stealthPrimaries; };
        notify explicit;
index 57dd6adfe069abc1b92084b4710a79c08bd7a764..3b9ad8e51fc3e4edc867e1b992abf66da77bd9ae 100644 (file)
@@ -17,7 +17,6 @@ zone "nsec3.net" {
        type primary;
        file "nsec3.db";
        dnssec-policy "test";
-       auto-dnssec maintain;
        dnskey-sig-validity 3600;
        dnssec-dnskey-kskonly yes;
        dnssec-update-mode maintain;
index 12243b86efd7e6f2ec4cb66f4e0b7ab1664ddb8c..0b95d7bff1aa654b2be02ca7fe2db86a31709ed9 100644 (file)
@@ -142,23 +142,6 @@ warnings=$(grep "'notify' is disabled" < checkconf.out$n | wc -l)
 if [ $ret -ne 0 ]; then echo_i "failed"; fi
 status=$((status + ret))
 
-n=$((n + 1))
-echo_i "checking named-checkconf dnssec warnings ($n)"
-ret=0
-# dnssec.1: auto-dnssec warning
-$CHECKCONF dnssec.1 > checkconf.out$n.1 2>&1 && ret=1
-grep 'auto-dnssec may only be ' < checkconf.out$n.1 > /dev/null || ret=1
-# dnssec.2: should have no warnings (other than deprecation warning)
-$CHECKCONF dnssec.2 > checkconf.out$n.2 2>&1 || ret=1
-grep "option 'auto-dnssec' is deprecated" < checkconf.out$n.2 > /dev/null || ret=1
-lines=$(wc -l < "checkconf.out$n.2")
-if [ $lines != 1 ]; then ret=1; fi
-# dnssec.3: should have specific deprecation warning
-$CHECKCONF dnssec.3 > checkconf.out$n.3 2>&1 && ret=1
-grep "'auto-dnssec' option is deprecated and will be removed in BIND 9\.19" < checkconf.out$n.3 > /dev/null || ret=1
-if [ $ret != 0 ]; then echo_i "failed"; fi
-status=$((status + ret))
-
 n=$((n + 1))
 echo_i "checking named-checkconf deprecate warnings ($n)"
 ret=0
@@ -507,7 +490,6 @@ echo_i "checking named-checkconf kasp errors ($n)"
 ret=0
 $CHECKCONF kasp-and-other-dnssec-options.conf > checkconf.out$n 2>&1 && ret=1
 grep "'inline-signing yes;' must also be configured explicitly for zones using dnssec-policy without a configured 'allow-update' or 'update-policy'" < checkconf.out$n > /dev/null || ret=1
-grep "'auto-dnssec maintain;' cannot be configured if dnssec-policy is also set" < checkconf.out$n > /dev/null || ret=1
 grep "dnskey-sig-validity: cannot be configured if dnssec-policy is also set" < checkconf.out$n > /dev/null || ret=1
 grep "dnssec-dnskey-kskonly: cannot be configured if dnssec-policy is also set" < checkconf.out$n > /dev/null || ret=1
 grep "dnssec-update-mode: cannot be configured if dnssec-policy is also set" < checkconf.out$n > /dev/null || ret=1