]> granicus.if.org Git - pdns/commitdiff
rec: Set allow-from-file in the configuration file in the tests
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 2 Oct 2018 11:46:10 +0000 (13:46 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 2 Oct 2018 11:46:10 +0000 (13:46 +0200)
We can't override it via the API when it's set on the command line.

regression-tests.api/runtests.py

index 6278815e6a593c42da96de4d3aec504ea7204525..45145a6181fbbd6f37d8446574ae14d9df6146fb 100755 (executable)
@@ -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.