bind9/bin/tests/system/resolver/tests_sh_resolver.py
Colin Vidal 714693742e test that cache is preserved on reconfing failure
A named bug scrap the cache on a second reload after an initial reload
failure. Adds a test checking that the cache is preserved between server
reconfiguration/reloads even if it fails at some point (after attempting
to re-use the cache) and the server is re-loaded later.
2025-09-17 16:45:51 +02:00

45 lines
1.2 KiB
Python

# 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.
import pytest
pytestmark = pytest.mark.extra_artifacts(
[
".digrc",
"dig*.out*",
"dig.*.foo.*",
"dig.*.bar.*",
"dig.*.prime.*",
"nextpart.out.*",
"ans*/ans.run",
"ans*/query.log",
"ns1/named.stats*",
"ns4/tld.db",
"ns5/trusted.conf",
"ns6/K*",
"ns6/ds.example.net.db",
"ns6/ds.example.net.db.signed",
"ns6/dsset-ds.example.net.",
"ns6/dsset-example.net.",
"ns6/example.net.db",
"ns6/example.net.db.signed",
"ns6/example.net.db.signed.jnl",
"ns6/to-be-removed.tld.db",
"ns6/to-be-removed.tld.db.jnl",
"ns7/server.db",
"ns7/server.db.jnl",
]
)
def test_resolver(run_tests_sh):
run_tests_sh()