mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 19:25:56 +03:00
[PR #2523] [MERGED] Conformance dnslib support #3108
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#3108
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/2523
Author: @marcus0x62
Created: 10/23/2024
Status: ✅ Merged
Merged: 10/24/2024
Merged by: @marcus0x62
Base:
main← Head:conformance_dnslib📝 Commits (2)
fc57a0eAdd Dnslib implementation to dns-testa756c9bAdd incorrect txid test to e2e test suite📊 Changes
8 files changed (+158 additions, -2 deletions)
View changed files
📝
conformance/packages/dns-test/src/container.rs(+18 -0)➕
conformance/packages/dns-test/src/docker/dnslib.Dockerfile(+6 -0)📝
conformance/packages/dns-test/src/implementation.rs(+23 -0)📝
conformance/packages/dns-test/src/name_server.rs(+26 -2)📝
tests/e2e-tests/src/recursor.rs(+1 -0)➕
tests/e2e-tests/src/recursor/security.rs(+1 -0)➕
tests/e2e-tests/src/recursor/security/bad_txid.py(+22 -0)➕
tests/e2e-tests/src/recursor/security/scenarios.rs(+61 -0)📄 Description
This PR adds support for a new implementation target for the conformance test suite: a container that is designed to run a Python script using dnslib. This purpose of this target is to easily support end to end tests that involve abnormal or incorrect DNS responses that could not easily be generated using regular DNS servers, but with more flexibility than a packet capture replay.
This also includes an example test that verifies Hickory is dropping messages with incorrect transaction IDs.
My rationale for using dnslib is:
cc: @bluejekyll and @djc
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.