]> git.ipfire.org Git - thirdparty/bind9.git/commit
Refactor ControllableAsyncDnsServer setup
authorŠtěpán Balážik <stepan@isc.org>
Thu, 30 Oct 2025 12:41:23 +0000 (13:41 +0100)
committerŠtěpán Balážik (GitLab job 6645047) <stepan@isc.org>
Thu, 18 Dec 2025 12:50:57 +0000 (12:50 +0000)
commita2c444760d89cf58f3cf54e11809a32d6cf2a30c
tree3471d4c0295db9ed9a5553603ba5b6ca50c4cf24
parent5c897cca32ce308b1c77b24bd8b11b6fc881718d
Refactor ControllableAsyncDnsServer setup

When this class was introduced, the constructor of its base class had no
parameters. This was changed in the meantime and these parameters were
not accessible by users of the subclass.

Don't override the constructor.
Move command setup to methods.
Move subclass-specific storage to cached properties.
Take instances of Command instead of the classes themselves for
symmetry with install_response_handler.

(cherry picked from commit a0970f3d0410afd35799306c24f8ed43955ad027)
bin/tests/system/chain/ans4/ans.py
bin/tests/system/fetchlimit/ans4/ans.py
bin/tests/system/forward/ans11/ans.py
bin/tests/system/forward/ans6/ans.py
bin/tests/system/isctest/asyncserver.py
bin/tests/system/xfer/ans9/ans.py