]> git.ipfire.org Git - thirdparty/bind9.git/commit
Use isctest.asyncserver in the "chain" test
authorMichał Kępień <michal@isc.org>
Fri, 30 May 2025 16:23:21 +0000 (18:23 +0200)
committerMichał Kępień <michal@isc.org>
Fri, 30 May 2025 18:43:33 +0000 (20:43 +0200)
commitdb8b22433b6a345ed1187f8ada0f771c5fd85c99
tree17cd98767c5853d58f2fc20db36cc2800a288893
parentf93d783ec63c836bd7b918d3c321e2d78554acfe
Use isctest.asyncserver in the "chain" test

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

For ans3, replace the sequence of logical conditions present in Perl
code with zone files and a limited amount of custom logic applied on top
of them where necessary.

For ans4, replace the ctl_channel() and create_response() functions with
a custom control command handler coupled with a dynamically instantiated
response handler, making the code more robust and readable.

Migrate sendcmd() and its uses to the new way of sending control queries
to custom servers used in system tests.

(cherry picked from commit c3d3c9955d61489bc38a5c137d318c7333b2be9e)
bin/tests/system/chain/ans3/ans.pl [deleted file]
bin/tests/system/chain/ans3/ans.py [new file with mode: 0755]
bin/tests/system/chain/ans3/example.broken.db [new file with mode: 0644]
bin/tests/system/chain/ans3/example.dname.db [new file with mode: 0644]
bin/tests/system/chain/ans3/jeff.dname.db [new file with mode: 0644]
bin/tests/system/chain/ans4/.gitignore [deleted file]
bin/tests/system/chain/ans4/README.anspy [deleted file]
bin/tests/system/chain/ans4/ans.py
bin/tests/system/chain/ns7/named.conf.in
bin/tests/system/chain/tests.sh