]> git.ipfire.org Git - thirdparty/bind9.git/commit
Use isctest.asyncserver in the "forward" test
authorMichał Kępień <michal@isc.org>
Fri, 11 Apr 2025 14:18:50 +0000 (09:18 -0500)
committerMichał Kępień <michal@isc.org>
Fri, 11 Apr 2025 14:18:50 +0000 (09:18 -0500)
commit23bc8430d9fb02a8e977bc2569dbf972765e1a9c
tree331147973ce382d2b6c96ee17f4f1228bcd3d508
parentb47be755db5fa954bd3c99d3134a2d34ea904cc9
Use isctest.asyncserver in the "forward" test

Replace the custom DNS servers used in the "forward" system test with
new code based on the isctest.asyncserver module.

For ans6, instead of configuring the responses to send at runtime, set
them up when the server is started.  Make sure the server supports
toggling response sending at runtime to enable simulating forwarder
timeouts as required by one of the checks.

For ans11, put most of the responses to be provided by that server into
a zone file, only retaining code modifying zone-based answers in the
form of a response handler, to improve code readability.  Use explicit
domain names instead of variables as that server only handles a single
domain and fixed strings improve readability in this case.  Make sure
the server supports toggling response sending at runtime to enable
simulating forwarder timeouts as required by one of the checks.

Migrate sendcmd() and its uses to the new way of sending control queries
to custom servers used in system tests.
bin/tests/system/forward/ans11/ans.py
bin/tests/system/forward/ans11/attackSecureDomain.net3.db [new file with mode: 0644]
bin/tests/system/forward/ans6/ans.pl [deleted file]
bin/tests/system/forward/ans6/ans.py [new file with mode: 0644]
bin/tests/system/forward/tests.sh
bin/tests/system/forward/tests_sh_forward.py