bind9/bin/tests/system/rpz
Michal Nowak bb4afd1332 Retry the SOA serial check in the rpz test
While a response-policy zone is being (re)loaded it can briefly answer
with no SOA (SERVFAIL/REFUSED), which `dig +short` renders as empty
output.  get_sn() aborted the whole tests.sh on the first such miss,
defeating the retry_quiet() loop in ck_soa() that is meant to wait for
the reload to settle.  Return failure instead so the check is retried.

Assisted-by: Claude:claude-opus-4-8
2026-06-10 19:15:09 +00:00
..
ns1 Remove license headers from test zone files 2026-03-31 17:57:58 +02:00
ns2 Remove license headers from test zone files 2026-03-31 17:57:58 +02:00
ns3 Remove license headers from test zone files 2026-03-31 17:57:58 +02:00
ns4 Remove license headers from test zone files 2026-03-31 17:57:58 +02:00
ns5 Remove license headers from test zone files 2026-03-31 17:57:58 +02:00
ns6 Remove license headers from test zone files 2026-03-31 17:57:58 +02:00
ns7 Remove license headers from named.conf test files 2026-03-31 17:57:58 +02:00
ns8 Remove license headers from test zone files 2026-03-31 17:57:58 +02:00
ns9 Remove license headers from test zone files 2026-03-31 17:57:58 +02:00
ns10 Remove license headers from test zone files 2026-03-31 17:57:58 +02:00
README Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
setup.sh Add a new check in the RPZ system test 2026-01-27 11:31:15 +00:00
test1.j2 Use jinja2 templates in rpz test 2025-12-09 14:23:17 +01:00
test2.j2 Use jinja2 templates in rpz test 2025-12-09 14:23:17 +01:00
test3.j2 Use jinja2 templates in rpz test 2025-12-09 14:23:17 +01:00
test4.j2 Use jinja2 templates in rpz test 2025-12-09 14:23:17 +01:00
test4a.j2 Use jinja2 templates in rpz test 2025-12-09 14:23:17 +01:00
test5.j2 Use jinja2 templates in rpz test 2025-12-09 14:23:17 +01:00
test6.j2 Use jinja2 templates in rpz test 2025-12-09 14:23:17 +01:00
tests.sh Retry the SOA serial check in the rpz test 2026-06-10 19:15:09 +00:00
tests_sh_rpz.py Add a new check in the RPZ system test 2026-01-27 11:31:15 +00: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 RPZ tests prepares a query perf tool and sets up
policy zones.

Name servers
------------

ns1 is the root server.

ns2 and ns4 are authoritative servers for the various test domains.

ns3 is the main rewriting resolver.

ns5 and ns7 are additional rewriting resolvers.

ns6 is a forwarding server.


Updating the response policy zones
----------------------------------

test1, test2, test3, test4, test5, and test6 are dynamic update files.  These
updates are made against ns3.  The script function "start_group" is called to
start an new batch of tests that may depend on certain server updates.  The
function takes an optional file name and if provided the server updates are
performed before executing the test batch.