bind9/bin/tests/system/rpz
Evan Hunt 0b09ee8cdc explicitly set dnssec-validation in system tests
the default value of dnssec-validation is 'auto', which causes
a server to send a key refresh query to the root zone when starting
up. this is undesirable behavior in system tests, so this commit
sets dnssec-validation to either 'yes' or 'no' in all tests where
it had not previously been set.

this change had the mostly-harmless side effect of changing the cached
trust level of unvalidated answer data from 'answer' to 'authanswer',
which caused a few test cases in which dumped cache data was examined in
the serve-stale system test to fail. those test cases have now been
updated to expect 'authanswer'.
2023-06-26 13:41:56 -07:00
..
ns1 explicitly set dnssec-validation in system tests 2023-06-26 13:41:56 -07:00
ns2 add a test with CD=1 query for pending data 2022-10-19 11:36:11 -07:00
ns3 Add an "rpz" system test check for a failed reconfiguration 2023-02-21 08:23:13 +00:00
ns4 Use DEFAULT_HMAC for rndc 2022-07-07 10:11:42 +10:00
ns5 update the rpz tests to use the dummyrpz library 2023-03-28 18:41:17 -07:00
ns6 update the rpz tests to use the dummyrpz library 2023-03-28 18:41:17 -07:00
ns7 update the rpz tests to use the dummyrpz library 2023-03-28 18:41:17 -07:00
ns8 Use DEFAULT_HMAC for rndc 2022-07-07 10:11:42 +10:00
ns9 update the rpz tests to use the dummyrpz library 2023-03-28 18:41:17 -07:00
ns10 Use DEFAULT_HMAC for rndc 2022-07-07 10:11:42 +10:00
testlib Atomically increase rrn in add_other_data 2023-04-11 10:44:36 +10:00
.gitignore update the rpz tests to use the dummyrpz library 2023-03-28 18:41:17 -07:00
clean.sh update the rpz tests to use the dummyrpz library 2023-03-28 18:41:17 -07:00
dnsrps.c update the rpz tests to use the dummyrpz library 2023-03-28 18:41:17 -07:00
dnsrps.zones.in update the rpz tests to use the dummyrpz library 2023-03-28 18:41:17 -07:00
qperf.sh Add shell interpreter line where missing 2022-11-14 19:54:42 +00:00
README Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
setup.sh update the rpz tests to use the dummyrpz library 2023-03-28 18:41:17 -07:00
test1 Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
test2 Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
test3 Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
test4 Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
test4a Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
test5 Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
test6 Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
tests.sh Replace egrep with grep -E in rpz tests 2023-04-12 13:32:46 +02:00
tests_sh_rpz.py Add pytest functions for shell system tests 2023-05-22 14:11:39 +02: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.