From 57a954ffbdbd47462754f627d6fa0a665cf7edb7 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Wed, 23 Feb 2022 11:29:01 +0100 Subject: [PATCH] Create a rec specific example.com test zone as rec does not know ALIAS now --- regression-tests.api/runtests | 4 ++++ regression-tests.api/runtests.py | 2 +- regression-tests/zones/.gitignore | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/regression-tests.api/runtests b/regression-tests.api/runtests index f21ddc9b7b..46bddcbbf2 100755 --- a/regression-tests.api/runtests +++ b/regression-tests.api/runtests @@ -16,4 +16,8 @@ set -e if [ "${PDNS_DEBUG}" = "YES" ]; then set -x fi +if [ "$1" = "recursor" ]; then + # Create a rec-specific test zone, as rec does not know ALIAS + fgrep -v ALIAS ../regression-tests/zones/example.com > ../regression-tests/zones/example.com.rec +fi exec ./runtests.py "$@" diff --git a/regression-tests.api/runtests.py b/regression-tests.api/runtests.py index 92587bb513..645628fe94 100755 --- a/regression-tests.api/runtests.py +++ b/regression-tests.api/runtests.py @@ -97,7 +97,7 @@ ACL_NOTIFY_LIST_TPL = """ REC_EXAMPLE_COM_CONF_TPL = """ # Generated by runtests.py -auth-zones+=example.com=../regression-tests/zones/example.com +auth-zones+=example.com=../regression-tests/zones/example.com.rec """ REC_CONF_TPL = """ diff --git a/regression-tests/zones/.gitignore b/regression-tests/zones/.gitignore index a9b5df69cb..005d1fd805 100644 --- a/regression-tests/zones/.gitignore +++ b/regression-tests/zones/.gitignore @@ -12,3 +12,4 @@ /ixfr-slave.db /ixfr-slave.state /nsd-slave.db +/example.com.rec -- 2.47.2