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 cae7d592f9..78d4dfe0f6 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 6925f0f9c5..60c6a92237 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 37eb617128..0000000000 --- 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