mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 03:05:51 +03:00
[PR #2667] [MERGED] Add RFC 8906 conformance tests #3216
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#3216
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/2667
Author: @divergentdave
Created: 12/11/2024
Status: ✅ Merged
Merged: 12/13/2024
Merged by: @djc
Base:
main← Head:david/rfc8906-conformance📝 Commits (10+)
588fd16replace if-else with matcha6fccc1dns-test: add support for unknown query typesea014dcdns-test: add option to set EDNS version1324c2ddns-test: detect if OPT is present in dig outputc95e6bfdns-test: add Z flag option to dig settings5f61b9bdns-test: parse "MBZ" from dig output5758fafdns-test: add opcode and header-only dig options9078e19dns-test: add NOTIMP return code713514cdns-test: parse opcode from dig outputd20dddadns-test: add TCP option to dig settings📊 Changes
10 files changed (+1508 additions, -31 deletions)
View changed files
📝
conformance/packages/conformance-tests/src/name_server.rs(+1 -0)➕
conformance/packages/conformance-tests/src/name_server/rfc8906.rs(+18 -0)➕
conformance/packages/conformance-tests/src/name_server/rfc8906/basic.rs(+193 -0)➕
conformance/packages/conformance-tests/src/name_server/rfc8906/extended.rs(+255 -0)📝
conformance/packages/conformance-tests/src/resolver/dns.rs(+1 -0)➕
conformance/packages/conformance-tests/src/resolver/dns/rfc8906.rs(+23 -0)➕
conformance/packages/conformance-tests/src/resolver/dns/rfc8906/basic.rs(+211 -0)➕
conformance/packages/conformance-tests/src/resolver/dns/rfc8906/extended.rs(+279 -0)📝
conformance/packages/dns-test/src/client.rs(+505 -27)📝
conformance/packages/dns-test/src/record.rs(+22 -4)📄 Description
This adds a conformance test suite for RFC 8906. All the tests in section 8 are translated to the dns-test framework. I had to add a number of features to the wrapper around
dig, since the tests use a wide range of command-line flags, and the expected behavior includes fields of the output we weren't using previously. See #2572.Currently, Hickory is only failing the two tests regarding unknown opcodes, because it fails to respond, instead of responding with
NOTIMP. BIND passes all tests. Unbound is failing two tests regarding flags in specific error responses.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.