mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 11:15:54 +03:00
[PR #3434] [MERGED] More ergonomic compatibility tests #3841
Labels
No labels
blocked
breaking-change
bug
bug:critical
bug:tests
cleanup
compliance
compliance
compliance
crate:all
crate:client
crate:native-tls
crate:proto
crate:recursor
crate:resolver
crate:resolver
crate:rustls
crate:server
crate:util
dependencies
docs
duplicate
easy
easy
enhance
enhance
enhance
feature:dns-over-https
feature:dns-over-quic
feature:dns-over-tls
feature:dnsssec
feature:global_lb
feature:mdns
feature:tsig
features:edns
has workaround
ops
perf
platform:WASM
platform:android
platform:fuchsia
platform:linux
platform:macos
platform:windows
pull-request
question
test
tools
tools
trust
unclear
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hickory-dns#3841
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hickory-dns/hickory-dns/pull/3434
Author: @cpu
Created: 1/8/2026
Status: ✅ Merged
Merged: 1/14/2026
Merged by: @cpu
Base:
main← Head:cpu-tsig-test-update_dev📝 Commits (9)
f557d3adns-test: change BIND startup check substringbfd5e10dns-test: model zone transfer/update configuration1d05a35compatibility-tests: top-down ordering for tsig_testsc2f134emove compatibility tests to conformance workspacef397642compatibility-tests: rewrite tsig_tests w/ dns-testbfa92efcompatibility-tests: rewrite zone_transfer.rs w/ dns-test99959a2compatibility-tests: rewrite zone_transfer assert_serialebcf2e4compatibility-tests: remove SIG0 tests, legacy bitsb65fea8justfile: simplify compatibility-tests, rm init-bind📊 Changes
29 files changed (+833 additions, -2737 deletions)
View changed files
📝
Cargo.lock(+0 -15)📝
Cargo.toml(+0 -1)📝
conformance/Cargo.lock(+358 -4)📝
conformance/Cargo.toml(+1 -1)➕
conformance/compatibility-tests/Cargo.toml(+21 -0)📝
conformance/compatibility-tests/src/lib.rs(+0 -1)➕
conformance/compatibility-tests/src/tsig_tests.rs(+210 -0)📝
conformance/compatibility-tests/src/zone_transfer.rs(+67 -19)📝
conformance/dns-test/src/container.rs(+1 -1)📝
conformance/dns-test/src/implementation.rs(+11 -2)📝
conformance/dns-test/src/lib.rs(+1 -0)📝
conformance/dns-test/src/name_server.rs(+84 -5)📝
conformance/dns-test/src/templates/named.name-server.conf.jinja(+16 -3)➕
conformance/dns-test/src/tsig.rs(+49 -0)📝
justfile(+14 -61)➖
tests/compatibility-tests/Cargo.toml(+0 -40)➖
tests/compatibility-tests/src/lib.rs(+0 -173)➖
tests/compatibility-tests/tests/conf/Kupdate.example.com.+008+56935.key(+0 -1)➖
tests/compatibility-tests/tests/conf/Kupdate.example.com.+008+56935.pem(+0 -27)➖
tests/compatibility-tests/tests/conf/Kupdate.example.com.+008+56935.pk8(+0 -0)...and 9 more files
📄 Description
An initial step towards addressing https://github.com/hickory-dns/hickory-dns/issues/1981 & helping direct https://github.com/hickory-dns/hickory-dns/pull/3427.
There's some pre-existing TSIG authenticated update and zone transfer tests in the
tests/compatibility-testscrate, but there are some downsides:namedon the host.namedconfiguration hadanyin the allow-update and allow-transfer config for the zone under test, meaning authentication wasn't really being tested.The
dns-testframework from theconformanceworkspace addresses the first two problems by offering the ability to run different auth. name server implementations (e.g.hickory-dns,named,pdns, andnsd) and does so in isolated Docker containers that are easy to reproduce and configure from tests.This branch moves the
compatibility-testsinto a new crate in theconformanceworkspace and rewrites the tests to rely ondns-testinstead of a localnamed. The SIG(0) authenticated update tests are removed, as BIND has removed support upstream.Next steps will involve extending the TSIG tests to cover more scenarios (notably, using incorrect auth), and testing against more implementations (pdns, etc).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.