From: Otto Moerbeek Date: Tue, 10 Feb 2026 13:34:07 +0000 (+0100) Subject: rec: check if auths are running X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64e7b68c774d3b091eb6818d840799fa3ad9e1f7;p=thirdparty%2Fpdns.git rec: check if auths are running Signed-off-by: Otto Moerbeek --- diff --git a/regression-tests.recursor-dnssec/recursortests.py b/regression-tests.recursor-dnssec/recursortests.py index 4fa524d00e..e5ca5da392 100644 --- a/regression-tests.recursor-dnssec/recursortests.py +++ b/regression-tests.recursor-dnssec/recursortests.py @@ -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