]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Update unknown system test
authorMatthijs Mekking <matthijs@isc.org>
Thu, 29 Jun 2023 09:02:06 +0000 (11:02 +0200)
committerMatthijs Mekking <matthijs@isc.org>
Thu, 20 Jul 2023 09:04:23 +0000 (11:04 +0200)
Change test configuration to make use of 'dnssec-policy' instead of
'auto-dnssec'.

There is no need to sign the zone in advance.

bin/tests/system/unknown/ns3/named.conf.in
bin/tests/system/unknown/ns3/sign.sh [deleted file]
bin/tests/system/unknown/setup.sh

index ae20a688e4624f09431e4be86c286ac126e662f6..9b2abaaccedf815c248022efb4d286926b2643ed 100644 (file)
@@ -24,12 +24,19 @@ options {
        notify no;
 };
 
+dnssec-policy unknown {
+       keys {
+               ksk key-directory lifetime unlimited algorithm @DEFAULT_ALGORITHM@;
+               zsk key-directory lifetime unlimited algorithm @DEFAULT_ALGORITHM@;
+       };
+};
+
 view "in" {
        zone "example." {
                type secondary;
                primaries { 10.53.0.1; };
                inline-signing yes;
-               auto-dnssec maintain;
+               dnssec-policy unknown;
                file "example-in.bk";
        };
 };
diff --git a/bin/tests/system/unknown/ns3/sign.sh b/bin/tests/system/unknown/ns3/sign.sh
deleted file mode 100644 (file)
index 7a8b097..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/bin/sh -e
-
-# 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.
-
-. ../../conf.sh
-
-zone=example
-rm -f K${zone}.+*+*.key
-rm -f K${zone}.+*+*.private
-keyname=$($KEYGEN -q -a ${DEFAULT_ALGORITHM} -n zone $zone)
-keyname=$($KEYGEN -q -a ${DEFAULT_ALGORITHM} -n zone -f KSK $zone)
index 0c043bf2a6d9206c1c69ec08718140b2701589f8..7ffda5583c449b68a3c36141c5568fbb71feaab2 100644 (file)
@@ -16,5 +16,3 @@
 copy_setports ns1/named.conf.in ns1/named.conf
 copy_setports ns2/named.conf.in ns2/named.conf
 copy_setports ns3/named.conf.in ns3/named.conf
-
-(cd ns3; $SHELL -e sign.sh)