]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Portions of two dnssec-malformed-dnskey tests need querytrace
authorMichal Nowak <mnowak@isc.org>
Wed, 14 Jan 2026 18:27:47 +0000 (19:27 +0100)
committerMichal Nowak <mnowak@isc.org>
Thu, 15 Jan 2026 12:03:19 +0000 (13:03 +0100)
Without querytrace set, test_malformed_ecdsa and test_multiple_rrsigs
fail on the log_validation_failed string.

bin/tests/system/dnssec-malformed-dnskey/tests_malformed_dnskey.py

index 57d8479dc3910cd1a5c96e5083edd2f943fbae0c..b83edf18739a5499c258f8dde7a82dbed2940144 100644 (file)
@@ -12,6 +12,7 @@
 import base64
 from re import compile as Re
 
+import os
 import pytest
 
 pytest.importorskip("cryptography")
@@ -117,7 +118,11 @@ def test_malformed_ecdsa(ns3):
     msg = isctest.query.create("malformed-dnskey.example", "A")
 
     openssl_vers = ns3.log.grep(log_openssl_version)
-    if openssl_vers and int(openssl_vers[0].group(1)) >= 3:
+    if (
+        openssl_vers
+        and int(openssl_vers[0].group(1)) >= 3
+        and os.getenv("FEATURE_QUERYTRACE") == "1"
+    ):
         # extra check for OpenSSL 3.0.0+
         with ns3.watch_log_from_here() as watcher:
             res = isctest.query.tcp(msg, "10.53.0.3")
@@ -162,7 +167,11 @@ def test_multiple_rrsigs(ns3):
         pytest.skip("valid RRSIG listed first in response, re-run test")
 
     openssl_vers = ns3.log.grep(log_openssl_version)
-    if openssl_vers and int(openssl_vers[0].group(1)) >= 3:
+    if (
+        openssl_vers
+        and int(openssl_vers[0].group(1)) >= 3
+        and os.getenv("FEATURE_QUERYTRACE") == "1"
+    ):
         # extra check for OpenSSL 3.0.0+
         with ns3.watch_log_from_here() as watcher:
             res = isctest.query.tcp(msg, "10.53.0.3")