bind9/bin/tests/system/rollover-dynamic2inline/tests_rollover_dynamic2inline.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
1.3 KiB
Python
Raw Normal View History

2025-06-06 05:38:33 -04: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
from rollover.common import (
2025-06-06 05:38:33 -04:00
pytestmark,
alg,
size,
CDSS,
DEFAULT_CONFIG,
)
def test_dynamic2inline(alg, size, ns6, templates):
2025-06-06 05:38:33 -04:00
config = DEFAULT_CONFIG
policy = "default"
zone = "dynamic2inline.kasp"
isctest.kasp.wait_keymgr_done(ns6, zone)
2025-06-06 05:38:33 -04:00
step = {
"zone": zone,
2025-06-06 05:38:33 -04:00
"cdss": CDSS,
"keyprops": [
f"csk unlimited {alg} {size} goal:omnipresent dnskey:rumoured krrsig:rumoured zrrsig:rumoured ds:hidden",
],
"nextev": None,
}
isctest.kasp.check_rollover_step(ns6, config, policy, step)
2025-06-06 05:38:33 -04:00
templates.render("ns6/named.conf", {"change_lifetime": True})
ns6.reconfigure()
isctest.kasp.wait_keymgr_done(ns6, zone, reconfig=True)
2025-06-06 05:38:33 -04:00
isctest.kasp.check_rollover_step(ns6, config, policy, step)