]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Modify ZTC regression test to use YAML config
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 27 Mar 2024 11:12:03 +0000 (12:12 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Thu, 25 Apr 2024 09:31:40 +0000 (11:31 +0200)
regression-tests.recursor-dnssec/test_ZTC.py

index abf9a51cccc3ec85f96ba139b697c834956aeba1..f880692364d4e85f83147c6f343049b73c5f681b 100644 (file)
@@ -9,10 +9,14 @@ class testZTC(RecursorTest):
 
     _confdir = 'ZTC'
     _config_template = """
-dnssec=validate
-"""
-    _lua_config_file = """
-zoneToCache(".", "axfr", "193.0.14.129") -- k-root
+dnssec:
+    validation: validate
+recordcache:
+    zonetocaches:
+    - zone: .
+      method: axfr
+      sources:
+      - 193.0.14.129
 """
 
     @classmethod
@@ -25,7 +29,7 @@ zoneToCache(".", "axfr", "193.0.14.129") -- k-root
         confdir = os.path.join('configs', cls._confdir)
         cls.createConfigDir(confdir)
 
-        cls.generateRecursorConfig(confdir)
+        cls.generateRecursorYamlConfig(confdir, False)
         cls.startRecursor(confdir, cls._recursorPort)
 
     @classmethod