1 # Copyright (C) Internet Systems Consortium, Inc. ("ISC") 2 # 3 # SPDX-License-Identifier: MPL-2.0 4 # 5 # This Source Code Form is subject to the terms of the Mozilla Public 6 # License, v. 2.0. If a copy of the MPL was not distributed with this 7 # file, you can obtain one at https://mozilla.org/MPL/2.0/. 8 # 9 # See the COPYRIGHT file distributed with this work for additional 10 # information regarding copyright ownership. 11 12 # pylint: disable=redefined-outer-name,unused-import 13 14 import isctest 15 from rollover.common import ( 16 pytestmark, 17 alg, 18 size, 19 CDSS, 20 DEFAULT_CONFIG, 21 ) 22 23 24 def test_dynamic2inline(alg, size, ns3, templates): 25 config = DEFAULT_CONFIG 26 policy = "default" 27 zone = "dynamic2inline.kasp" 28 29 isctest.kasp.wait_keymgr_done(ns3, zone) 30 31 step = { 32 "zone": zone, 33 "cdss": CDSS, 34 "keyprops": [ 35 f"csk unlimited {alg} {size} goal:omnipresent dnskey:rumoured krrsig:rumoured zrrsig:rumoured ds:hidden", 36 ], 37 "nextev": None, 38 } 39 40 isctest.kasp.check_rollover_step(ns3, config, policy, step) 41 42 templates.render("ns3/named.conf", {"change_lifetime": True}) 43 ns3.reconfigure() 44 isctest.kasp.wait_keymgr_done(ns3, zone, reconfig=True) 45 46 isctest.kasp.check_rollover_step(ns3, config, policy, step) 47