2025-06-06 16:49:14 +02:00
|
|
|
# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: MPL-2.0
|
|
|
|
#
|
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, you can obtain one at https://mozilla.org/MPL/2.0/.
|
|
|
|
#
|
|
|
|
# See the COPYRIGHT file distributed with this work for additional
|
|
|
|
# information regarding copyright ownership.
|
|
|
|
|
|
|
|
# pylint: disable=redefined-outer-name,unused-import
|
|
|
|
|
|
|
|
import isctest
|
2025-08-04 16:30:41 +02:00
|
|
|
from rollover.common import (
|
2025-06-06 16:49:14 +02:00
|
|
|
pytestmark,
|
|
|
|
CDSS,
|
|
|
|
DURATION,
|
|
|
|
TIMEDELTA,
|
|
|
|
ALGOROLL_CONFIG,
|
|
|
|
)
|
|
|
|
|
|
|
|
|
2025-07-08 15:26:09 +02:00
|
|
|
def test_algoroll_csk_initial(ns6):
|
2025-06-06 16:49:14 +02:00
|
|
|
config = ALGOROLL_CONFIG
|
|
|
|
policy = "csk-algoroll"
|
2025-07-08 13:46:01 +02:00
|
|
|
zone = "step1.csk-algorithm-roll.kasp"
|
|
|
|
|
|
|
|
isctest.kasp.wait_keymgr_done(ns6, zone)
|
2025-06-06 16:49:14 +02:00
|
|
|
|
|
|
|
step = {
|
2025-07-08 13:46:01 +02:00
|
|
|
"zone": zone,
|
2025-06-06 16:49:14 +02:00
|
|
|
"cdss": CDSS,
|
|
|
|
"keyprops": [
|
|
|
|
f"csk 0 8 2048 goal:omnipresent dnskey:omnipresent krrsig:omnipresent zrrsig:omnipresent ds:omnipresent offset:{-DURATION['P7D']}",
|
|
|
|
],
|
|
|
|
"nextev": TIMEDELTA["PT1H"],
|
|
|
|
}
|
2025-07-08 15:26:09 +02:00
|
|
|
isctest.kasp.check_rollover_step(ns6, config, policy, step)
|