]> git.ipfire.org Git - thirdparty/bind9.git/commit
Clean up the "checkds" system test
authorMichał Kępień <michal@isc.org>
Tue, 25 Jul 2023 12:37:05 +0000 (14:37 +0200)
committerŠtěpán Balážik <stepan@isc.org>
Thu, 21 Dec 2023 18:10:15 +0000 (18:10 +0000)
commitaa31a872d0139cc277a4e15e359fc5b1a9e2c547
tree2d256ef3342926c5209764c7e08cba1d870aba39
parentcf338a7ca378cf7a7b82b1142fb9340d86be9fa3
Clean up the "checkds" system test

The "checkds" system test contains a lot of duplicated code despite
carrying out the same set of actions for every tested scenario
(zone_check() → wait for logs to appear → keystate_check()).  Extract
the parts of the code shared between all tests into a new function,
test_checkds(), and use pytest's test parametrization capabilities to
pass distinct sets of test parameters to this new function, in an
attempt to cleanly separate the fixed parts of this system test from the
variable ones.  Replace format() calls with f-strings.
bin/tests/system/checkds/tests_checkds.py