From 2c4e68807ca5bbe5487a2f71befcaeed9b36106c Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Tue, 2 Oct 2018 13:46:10 +0200 Subject: [PATCH] rec: Set allow-from-file in the configuration file in the tests We can't override it via the API when it's set on the command line. --- regression-tests.api/runtests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/regression-tests.api/runtests.py b/regression-tests.api/runtests.py index 6278815e6a..45145a6181 100755 --- a/regression-tests.api/runtests.py +++ b/regression-tests.api/runtests.py @@ -55,6 +55,7 @@ REC_CONF_TPL = """ auth-zones= forward-zones= forward-zones-recurse= +allow-from-file=acl.list api-config-dir=%(conf_dir)s include-dir=%(conf_dir)s """ @@ -148,7 +149,7 @@ else: with open(conf_dir+'/example.com..conf', 'w') as conf_file: conf_file.write(REC_EXAMPLE_COM_CONF_TPL) - servercmd = [pdns_recursor] + common_args + ["--allow-from-file=acl.list"] + servercmd = [pdns_recursor] + common_args # Now run pdns and the tests. -- 2.47.2