From: Nicki Křížek Date: Fri, 5 Dec 2025 16:05:15 +0000 (+0100) Subject: Use jinja2 templates in tsig test X-Git-Tag: v9.21.17~46^2~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8db37ac31ce4f0e613061dff165bd05c2dd0bb03;p=thirdparty%2Fbind9.git Use jinja2 templates in tsig test - Rename ns1/named-fips.conf.in to ns1/named.conf.j2. - Move MD5-specific stuff into ns1/named-md5.conf.j2 and include it conditionally. --- diff --git a/bin/tests/system/tsig/ns1/named.conf.in b/bin/tests/system/tsig/ns1/named-md5.conf.j2 similarity index 96% rename from bin/tests/system/tsig/ns1/named.conf.in rename to bin/tests/system/tsig/ns1/named-md5.conf.j2 index cae7d592f96..78d4dfe0f68 100644 --- a/bin/tests/system/tsig/ns1/named.conf.in +++ b/bin/tests/system/tsig/ns1/named-md5.conf.j2 @@ -11,8 +11,6 @@ * information regarding copyright ownership. */ -include "named-fips.conf"; - key "md5" { secret "97rnFx24Tfna4mHPfgnerA=="; algorithm hmac-md5; diff --git a/bin/tests/system/tsig/ns1/named-fips.conf.in b/bin/tests/system/tsig/ns1/named.conf.j2 similarity index 97% rename from bin/tests/system/tsig/ns1/named-fips.conf.in rename to bin/tests/system/tsig/ns1/named.conf.j2 index 6925f0f9c51..60c6a922372 100644 --- a/bin/tests/system/tsig/ns1/named-fips.conf.in +++ b/bin/tests/system/tsig/ns1/named.conf.j2 @@ -24,6 +24,10 @@ options { notify no; }; +{% if FEATURE_MD5 == "1" %} +include "named-md5.conf"; +{% endif %} + key "sha1" { secret "FrSt77yPTFx6hTs4i2tKLB9LmE0="; algorithm hmac-sha1; diff --git a/bin/tests/system/tsig/setup.sh b/bin/tests/system/tsig/setup.sh deleted file mode 100644 index 37eb617128b..00000000000 --- a/bin/tests/system/tsig/setup.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/sh - -# 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 - -if $FEATURETEST --md5; then - copy_setports ns1/named-fips.conf.in ns1/named-fips.conf - # includes named-fips.conf - cp ns1/named.conf.in ns1/named.conf -else - copy_setports ns1/named-fips.conf.in ns1/named.conf -fi