From 0a6cc42914964cd83fe4973456fc54f8bff90c30 Mon Sep 17 00:00:00 2001 From: Matthijs Mekking Date: Mon, 24 Feb 2025 11:35:37 +0100 Subject: [PATCH] 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. --- bin/tests/system/isctest/kasp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/tests/system/isctest/kasp.py b/bin/tests/system/isctest/kasp.py index 7c05206d0f..1b82baf416 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: