]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Update _check_dnskeys function
authorMatthijs Mekking <matthijs@isc.org>
Mon, 24 Feb 2025 10:35:37 +0000 (11:35 +0100)
committerMatthijs Mekking <matthijs@isc.org>
Thu, 10 Apr 2025 20:44:31 +0000 (15:44 -0500)
In the kasp system test there are cases that the SyncPublish is not
set, nor it is required to do so. Update the _check_dnskeys function
accordingly.

bin/tests/system/isctest/kasp.py

index 7c05206d0f2e82324eff08b168f3022cfde5b0a8..1b82baf4169f42e68260b421ac22687571f8c973 100644 (file)
@@ -856,9 +856,9 @@ def _check_dnskeys(dnskeys, keys, cdnskey=False):
         delete_md = f"Sync{delete_md}"
 
     for key in keys:
-        publish = key.get_timing(publish_md)
+        publish = key.get_timing(publish_md, must_exist=False)
         delete = key.get_timing(delete_md, must_exist=False)
-        published = now >= publish
+        published = publish is not None and now >= publish
         removed = delete is not None and delete <= now
 
         if not published or removed: