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 from rollover.common import CDSS, DEFAULT_CONFIG, ROLLOVER_MARK 13 14 import isctest 15 16 pytestmark = ROLLOVER_MARK 17 18 19 def bootstrap(): 20 data = { 21 "testconf": "dynamic2inline", 22 "trust_anchors": [], 23 } 24 25 return data 26 27 28 def test_dynamic2inline(ns3, default_algorithm, templates): 29 config = DEFAULT_CONFIG 30 policy = "default" 31 zone = "dynamic2inline.kasp" 32 33 isctest.kasp.wait_keymgr_done(ns3, zone) 34 35 step = { 36 "zone": zone, 37 "cdss": CDSS, 38 "keyprops": [ 39 f"csk unlimited {default_algorithm.number} {default_algorithm.bits} goal:omnipresent dnskey:rumoured krrsig:rumoured zrrsig:rumoured ds:hidden", 40 ], 41 "nextev": None, 42 } 43 44 isctest.kasp.check_rollover_step(ns3, config, policy, step) 45 46 templates.render("ns3/named-dynamic2inline.conf", {"change_lifetime": True}) 47 ns3.reconfigure() 48 isctest.kasp.wait_keymgr_done(ns3, zone, reconfig=True) 49 50 isctest.kasp.check_rollover_step(ns3, config, policy, step) 51