]> git.ipfire.org Git - thirdparty/bind9.git/commit
new: test: Add AnsInstance as the ans counterpart of NamedInstance
authorNicki Křížek <nicki@isc.org>
Tue, 16 Jun 2026 08:28:36 +0000 (10:28 +0200)
committerNicki Křížek <nicki@isc.org>
Tue, 16 Jun 2026 08:28:36 +0000 (10:28 +0200)
commit139b0fc48efa79e0b8a9182ca64ea4c3ddb9416d
tree2dabbd69e50d0f4030d9079f370eb2045dfa2fc0
parent72ac4bbdb21b4bb44d1ca1f71e35f8676dc44f9d
parent630247e845f133e1fa09e796bf1ecb715b6446f3
new: test: Add AnsInstance as the ans counterpart of NamedInstance

Tests interacting with mock ans servers had to hardcode their IP
addresses and open ans.run directly, while named instances already
had the NamedInstance abstraction with `.ip`, `.log` and the
watch_log_*() helpers.  Factor the parts of NamedInstance that are
not named-specific into a ServerInstance base class and add an
AnsInstance subclass for ans servers, exposed through the `servers`
fixture and new ans1-ans11 convenience fixtures.

Assisted-by: Claude:claude-fable-5
Merge branch 'nicki/pytest-ans-instance' into 'main'

See merge request isc-projects/bind9!12241