From: Matthijs Mekking Date: Mon, 24 Feb 2025 10:35:37 +0000 (+0100) Subject: Update _check_dnskeys function X-Git-Tag: v9.21.8~31^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a6cc42914964cd83fe4973456fc54f8bff90c30;p=thirdparty%2Fbind9.git Update _check_dnskeys function 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. --- diff --git a/bin/tests/system/isctest/kasp.py b/bin/tests/system/isctest/kasp.py index 7c05206d0f2..1b82baf4169 100644 --- a/bin/tests/system/isctest/kasp.py +++ b/bin/tests/system/isctest/kasp.py @@ -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: