]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
include_dir must be != api_dir for YAML mode
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Thu, 12 Oct 2023 13:07:07 +0000 (15:07 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Thu, 12 Oct 2023 13:07:07 +0000 (15:07 +0200)
regression-tests.api/runtests.py

index 51e603e4b351a9b3b257f6e4a953ed2be8d3d303..ea2b230b6eaab2a5dac5fc17a12f1177eb06bb33 100755 (executable)
@@ -110,7 +110,7 @@ incoming:
   allow_from_file: acl.list.yml
   allow_notify_from_file: acl-notify.list.yml
 webservice:
-  api_dir: %(conf_dir)s
+  api_dir: %(api_dir)s
 recursor:
   include_dir: %(conf_dir)s
   devonly_regression_test_mode: true
@@ -226,6 +226,8 @@ if daemon == 'authoritative':
 else:
     conf_dir = 'rec-conf.d'
     ensure_empty_dir(conf_dir)
+    api_dir = 'rec-api.d'
+    ensure_empty_dir(api_dir)
     with open('acl.list.yml', 'w') as acl_list:
         acl_list.write(ACL_LIST_TPL)
     with open('acl-notify.list.yml', 'w') as acl_notify_list: