bind9/bin/tests/system/mirror
Tom Krizek 172826bfa8
Simplify start/stop helper func in system tests
The system test should never attempt to start or stop any other server
than those that belong to that system test. Therefore, it is not
necessary to specify the system test name in function calls.

Additionally, this makes it possible to run the test inside a
differently named directory, as its name is automatically detected with
the $SYSTESTDIR variable. This enables running the system tests inside a
temporary directory.

Direct use of stop.pl was replaced with a more systematic approach to
use stop_servers helper function.

(cherry picked from commit c100308b7d)
2022-11-25 13:14:45 +01:00
..
ns1 mirror: use $DEFAULT_ALGORITHM 2022-10-03 13:19:33 +02:00
ns2 mirror: use $DEFAULT_ALGORITHM 2022-10-03 13:19:33 +02:00
ns3 Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
clean.sh Add shell interpreter line where missing 2022-11-14 21:09:42 +01:00
README Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
setup.sh Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
tests.sh Simplify start/stop helper func in system tests 2022-11-25 13:14:45 +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.
-->

This test checks whether zones configured with "type mirror;" behave as
expected.

ns1 is an authoritative-only server.  It only serves the root zone, which is
mirrored by ns3.

ns2 is an authoritative-only server.  It serves a number of zones, some of which
are delegated to it by ns1 and used in recursive resolution tests aimed at ns3
while others are only served so that ns3 has a primary server to mirror zones
from during various tests of the mirror zone implementation.

ns3 is a recursive resolver.  It has a number of mirror zones configured.  This
is the only server whose behavior is being examined by this system test.