]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
rec: check if auths are running
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 10 Feb 2026 13:34:07 +0000 (14:34 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 10 Feb 2026 13:34:07 +0000 (14:34 +0100)
Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
regression-tests.recursor-dnssec/recursortests.py

index 4fa524d00e5c5c1e83e265dac9eb43d10d63fbb9..e5ca5da3925a7bd6a020908aa13e8ceb3fad257a 100644 (file)
@@ -611,13 +611,16 @@ distributor-threads={threads}
                                                      env=cls._auth_env)
 
         cls.waitForTCPSocket(ipaddress, 53)
+        cls.checkAuth(cls._auths[ipaddress], authcmd, logFile)
 
-        if cls._auths[ipaddress].poll() is not None:
+    @classmethod
+    def checkAuth(cls, auth, authcmd, logFile):
+        if auth.poll() is not None:
             print(f"\n*** startAuth log for {logFile} ***")
             with open(logFile, 'r') as fdLog:
                 print(fdLog.read())
             print(f"*** End startAuth log for {logFile} ***")
-            raise AssertionError('%s failed (%d)' % (authcmd, cls._auths[ipaddress].returncode))
+            raise AssertionError('%s failed (%d)' % (authcmd, auth.returncode))
 
     @classmethod
     def checkConfdir(cls, confdir):
@@ -767,6 +770,12 @@ distributor-threads={threads}
         cls.generateRecursorConfig(confdir)
         cls.startRecursor(confdir, cls._recursorPort)
 
+        for auth_suffix, _ in cls._auth_zones.items():
+            ip = cls._PREFIX + '.' + auth_suffix
+            auth = cls._auths[ip]
+            logFile = os.path.join(confdir, 'auth-'+ auth_suffix, 'pdns.log')
+            cls.checkAuth(auth, 'auth-' + ip, logFile)
+
         print("Launching tests..")
 
     @classmethod