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 import pytest 13 14 from isctest.mark import live_internet_test 15 16 pytestmark = pytest.mark.extra_artifacts( 17 [ 18 "ns1/managed-keys.bind.jnl", 19 ] 20 ) 21 22 23 @live_internet_test 24 def test_rfc5011_rootdnskeyrefresh(ns1): 25 with ns1.watch_log_from_start() as watcher: 26 watcher.wait_for_line( 27 "managed-keys-zone: Initializing automatic trust anchor management for zone '.'; DNSKEY ID 20326 is now trusted, waiving the normal 30-day waiting period" 28 ) 29 30 with ns1.watch_log_from_start() as watcher: 31 watcher.wait_for_line( 32 "managed-keys-zone: Initializing automatic trust anchor management for zone '.'; DNSKEY ID 38696 is now trusted, waiving the normal 30-day waiting period" 33 ) 34