diff --git a/bin/tests/system/dnssec_py/common.py b/bin/tests/system/dnssec_py/common.py new file mode 100644 index 0000000000..56a30f0c41 --- /dev/null +++ b/bin/tests/system/dnssec_py/common.py @@ -0,0 +1,19 @@ +# 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. + +import pytest + +DNSSEC_PY_MARK = pytest.mark.extra_artifacts( + [ + "ns*/dsset-*", + "ns*/trusted.conf", + ] +) diff --git a/bin/tests/system/dnssec_py/ns1/named.conf.j2 b/bin/tests/system/dnssec_py/ns1/named.conf.j2 new file mode 100644 index 0000000000..e33e2f5bdb --- /dev/null +++ b/bin/tests/system/dnssec_py/ns1/named.conf.j2 @@ -0,0 +1,24 @@ +// NS1 + +options { + query-source address @ns.ip@; + notify-source @ns.ip@; + transfer-source @ns.ip@; + port @PORT@; + pid-file "named.pid"; + listen-on { @ns.ip@; }; + listen-on-v6 { none; }; + + key-directory "keys"; + + minimal-any no; + minimal-responses no; + recursion no; + + dnssec-validation yes; +}; + +{% include "_common/controls.conf.j2" %} +{% include "_common/trusted.conf.j2" %} + +{% include "_common/zones.conf.j2" %} diff --git a/bin/tests/system/dnssec_py/ns2/named.conf.j2 b/bin/tests/system/dnssec_py/ns2/named.conf.j2 new file mode 100644 index 0000000000..ccc1b3a304 --- /dev/null +++ b/bin/tests/system/dnssec_py/ns2/named.conf.j2 @@ -0,0 +1,34 @@ +// NS2 + +options { + query-source address @ns.ip@; + notify-source @ns.ip@; + transfer-source @ns.ip@; + port @PORT@; + pid-file "named.pid"; + listen-on { @ns.ip@; }; + listen-on-v6 { none; }; + + key-directory "keys"; + + minimal-any no; + minimal-responses no; + recursion no; + + dnssec-validation yes; + +{% if rrset_order_none is defined %} + rrset-order { + /* Keep the RRset order static in responses for zones that depend on it. */ +{% for name in rrset_order_none %} + name "@name@." order none; +{% endfor %} + }; +{% endif %} +}; + +{% include "_common/controls.conf.j2" %} +{% include "_common/trusted.conf.j2" %} +{% include "_common/root.hint.conf" %} + +{% include "_common/zones.conf.j2" %} diff --git a/bin/tests/system/dnssec_py/ns3/named.conf.j2 b/bin/tests/system/dnssec_py/ns3/named.conf.j2 new file mode 100644 index 0000000000..df796cfd12 --- /dev/null +++ b/bin/tests/system/dnssec_py/ns3/named.conf.j2 @@ -0,0 +1,25 @@ +// NS3 + +options { + query-source address @ns.ip@; + notify-source @ns.ip@; + transfer-source @ns.ip@; + port @PORT@; + pid-file "named.pid"; + listen-on { @ns.ip@; }; + listen-on-v6 { none; }; + + key-directory "keys"; + + minimal-any no; + minimal-responses no; + recursion no; + + dnssec-validation yes; +}; + +{% include "_common/controls.conf.j2" %} +{% include "_common/trusted.conf.j2" %} +{% include "_common/root.hint.conf" %} + +{% include "_common/zones.conf.j2" %} diff --git a/bin/tests/system/dnssec_py/ns9/named.conf.j2 b/bin/tests/system/dnssec_py/ns9/named.conf.j2 new file mode 100644 index 0000000000..9e011bf6e5 --- /dev/null +++ b/bin/tests/system/dnssec_py/ns9/named.conf.j2 @@ -0,0 +1,25 @@ +// NS 9 + +{% set max_validations_per_fetch = max_validations_per_fetch | default(16) %} + +options { + query-source address @ns.ip@; + notify-source @ns.ip@; + transfer-source @ns.ip@; + port @PORT@; + pid-file "named.pid"; + listen-on { @ns.ip@; }; + listen-on-v6 { none; }; + + recursion yes; + + dnssec-validation yes; + + max-validations-per-fetch @max_validations_per_fetch@; +}; + +{% include "_common/controls.conf.j2" %} +{% include "_common/trusted.conf.j2" %} +{% include "_common/root.hint.conf" %} + +{% include "_common/zones.conf.j2" %}