]> git.ipfire.org Git - thirdparty/bind9.git/commit
Use bootstrap() in pytest where applicable
authorNicki Křížek <nicki@isc.org>
Thu, 25 Sep 2025 15:30:12 +0000 (17:30 +0200)
committerNicki Křížek <nicki@isc.org>
Tue, 21 Oct 2025 13:07:49 +0000 (15:07 +0200)
commitfb4345afd43263f8c4c842e731f9262a75d4f61b
tree4151b995718d15ec1da5f8004854f3098e23e292
parent7474d3829513d90370e6792dc9ceb68a6738328c
Use bootstrap() in pytest where applicable

Replace the autouse fixtures which were only used to change the initial
server configuration into proper bootstrap() functions. This gets rid of
an extraneous reconfigure.

In the tests_validation_many_anchors.py, split the fixture into a proper
bootstrap() and a separate test for checking the expected log lines for
the ignored keys. Previously, the test was broken - it should check for
all the messages being present in the log, and some of the keys are
actually initial-key rather than static-key. This has been fixed in the
parametrized test.
bin/tests/system/dnssec/tests_badkey_broken.py
bin/tests/system/dnssec/tests_badkey_revoked.py
bin/tests/system/dnssec/tests_validation_accept_expired.py
bin/tests/system/dnssec/tests_validation_managed_keys.py
bin/tests/system/dnssec/tests_validation_many_anchors.py
bin/tests/system/dnssec/tests_validation_multiview.py
bin/tests/system/filters/common.py
bin/tests/system/filters/tests_filter_a_v4.py
bin/tests/system/filters/tests_filter_a_v6.py
bin/tests/system/filters/tests_filter_aaaa_v4.py
bin/tests/system/filters/tests_filter_aaaa_v6.py