bind9/bin/tests/system/checkds
Michał Kępień c56b8136a0 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.

(cherry picked from commit aa31a872d0)
2024-01-13 11:31:51 +01:00
..
ns1 Reformat shell scripts with shfmt 2023-10-26 13:05:00 +02:00
ns2 Reformat shell scripts with shfmt 2023-10-26 13:05:00 +02:00
ns3 Rename system test directory with common files to _common 2023-09-19 14:56:12 +02:00
ns4 explicitly set dnssec-validation in system tests 2023-06-26 15:03:06 -07:00
ns5 Reformat shell scripts with shfmt 2023-10-26 13:05:00 +02:00
ns6 Rename system test directory with common files to _common 2023-09-19 14:56:12 +02:00
ns7 Rename system test directory with common files to _common 2023-09-19 14:56:12 +02:00
ns8 Add checkds test case with resolver parental-agent 2023-01-19 16:56:22 +01:00
ns9 Reformat shell scripts with shfmt 2023-10-26 13:05:00 +02:00
ns10 Add checkds test case with resolver parental-agent 2023-01-19 16:56:22 +01:00
clean.sh Add checkds test case with resolver parental-agent 2023-01-19 16:56:22 +01:00
README Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
setup.sh Reformat shell scripts with shfmt 2023-10-26 13:05:00 +02:00
tests_checkds.py Clean up the "checkds" system test 2024-01-13 11:31:51 +01:00

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.

The test setup for the checkds tests.

These servers are parent servers:
- ns2 is a primary authoritative server that serves the parent zone for zones
  configured in ns9.
- ns4 is the secondary server for ns2.
- ns5 is a primary authoritative server that serves the parent zone for zones
  configured in ns9, but this one does not publish DS records (to test cases
  where the DS is missing).
- ns6 is an authoritative server for a different zone, to test badly configured
  parental agents.
- ns7 is the secondary server for ns5.

Finally, ns9 is the authoritative server for the various DNSSEC enabled test
domains.