Commit 1df3a7fb12 for bind

commit 1df3a7fb12e4ea8e47774b8acde21a798b5385b3
Author: Matthijs Mekking <matthijs@isc.org>
Date:   Thu Aug 27 08:41:36 2026 +0200

    ksr system test: Check logs error reading keyfiles

    With offline-ksk enabled we should not spam the logs that the private
    key file cannot be found.

diff --git a/bin/tests/system/ksr/tests_ksr.py b/bin/tests/system/ksr/tests_ksr.py
index 38f17aa642..e419263e22 100644
--- a/bin/tests/system/ksr/tests_ksr.py
+++ b/bin/tests/system/ksr/tests_ksr.py
@@ -873,6 +873,9 @@ def test_ksr_common(ns1):
     # - check subdomain
     isctest.kasp.check_subdomain(ns1, zone, ksks, overlapping_zsks, offline_ksk=True)

+    # suppress "error reading private key file" logs with offline-ksk
+    assert "dns_zone_findkeys: error reading" not in ns1.log
+

 def test_ksr_adt(ns1):
     # test with ADT bit set
@@ -1023,6 +1026,9 @@ def test_ksr_lastbundle(ns1):
     warning = "last bundle in skr, please import new skr file"
     assert f"zone {zone}/IN (signed): zone_rekey: {warning}" in ns1.log

+    # suppress "error reading private key file" logs with offline-ksk
+    assert "dns_zone_findkeys: error reading" not in ns1.log
+

 def test_ksr_inthemiddle(ns1):
     zone = "in-the-middle.test"
@@ -1101,6 +1107,9 @@ def test_ksr_inthemiddle(ns1):
     warning = "last bundle in skr, please import new skr file"
     assert f"zone {zone}/IN (signed): zone_rekey: {warning}" not in ns1.log

+    # suppress "error reading private key file" logs with offline-ksk
+    assert "dns_zone_findkeys: error reading" not in ns1.log
+

 def check_ksr_rekey_logs_error(server, zone, policy, offset, end):
     n = 1
@@ -1291,6 +1300,9 @@ def test_ksr_unlimited(ns1):
     # - check subdomain
     isctest.kasp.check_subdomain(ns1, zone, ksks, zsks, offline_ksk=True)

+    # suppress "error reading private key file" logs with offline-ksk
+    assert "dns_zone_findkeys: error reading" not in ns1.log
+

 def test_ksr_twotone(ns1):
     zone = "two-tone.test"
@@ -1407,6 +1419,9 @@ def test_ksr_twotone(ns1):
     # - check subdomain
     isctest.kasp.check_subdomain(ns1, zone, ksks, zsks, offline_ksk=True)

+    # suppress "error reading private key file" logs with offline-ksk
+    assert "dns_zone_findkeys: error reading" not in ns1.log
+

 def test_ksr_kskroll(ns1):
     zone = "ksk-roll.test"
@@ -1479,6 +1494,9 @@ def test_ksr_kskroll(ns1):
     # - check subdomain
     isctest.kasp.check_subdomain(ns1, zone, ksks, zsks, offline_ksk=True)

+    # suppress "error reading private key file" logs with offline-ksk
+    assert "dns_zone_findkeys: error reading" not in ns1.log
+

 def test_ksr_fast(ns1):
     zone = "fast.test"
@@ -1560,6 +1578,9 @@ def test_ksr_fast(ns1):
     # - check subdomain
     isctest.kasp.check_subdomain(ns1, zone, ksks, zsks, offline_ksk=True)

+    # suppress "error reading private key file" logs with offline-ksk
+    assert "dns_zone_findkeys: error reading" not in ns1.log
+

 def test_ksr_keytag_collision(ns1):
     # The offline KSK and the ZSK are generated by different parties, so