Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the correct root domain name in the proxy plugin's TestHealthX tests #6395

Merged
merged 1 commit into from
Nov 8, 2023
Merged

Use the correct root domain name in the proxy plugin's TestHealthX tests #6395

merged 1 commit into from
Nov 8, 2023

Conversation

tmthrgd
Copy link
Contributor

@tmthrgd tmthrgd commented Nov 8, 2023

1. Why is this pull request needed and what does it do?

When packing the empty domain name, miekg/dns can end up creating corrupt DNS messages. With some planned unpacking changes, this now trips an error condition and causes these tests to fail. Correct this by using the root domain explicitly as this gets properly encoded on the wire.

2. Which issues (if any) are related?

miekg/dns#1507

3. Which documentation changes (if any) need to be made?

None.

4. Does this introduce a backward incompatible change or deprecation?

No.

When packing the empty domain name, miekg/dns can end up creating
corrupt DNS messages. With some planned unpacking changes, this now
trips an error condition and causes these tests to fail. Correct this
by using the root domain explicitly as this gets correctly encoded on
the wire.

Signed-off-by: Tom Thorogood <me+github@tomthorogood.net>
Copy link

codecov bot commented Nov 8, 2023

Codecov Report

Merging #6395 (0d562fc) into master (93c57b6) will increase coverage by 2.77%.
Report is 1072 commits behind head on master.
The diff coverage is 55.36%.

❗ Current head 0d562fc differs from pull request most recent head ef16bc5. Consider uploading reports for the commit ef16bc5 to get more accurate results

@@            Coverage Diff             @@
##           master    #6395      +/-   ##
==========================================
+ Coverage   55.70%   58.47%   +2.77%     
==========================================
  Files         224      252      +28     
  Lines       10016    16537    +6521     
==========================================
+ Hits         5579     9670    +4091     
- Misses       3978     6278    +2300     
- Partials      459      589     +130     
Files Coverage Δ
core/dnsserver/address.go 100.00% <100.00%> (ø)
core/dnsserver/config.go 0.00% <ø> (ø)
plugin/acl/setup.go 94.49% <100.00%> (+1.81%) ⬆️
plugin/auto/walk.go 76.05% <100.00%> (+2.72%) ⬆️
plugin/auto/zone.go 78.94% <ø> (+0.68%) ⬆️
plugin/autopath/autopath.go 73.61% <ø> (-1.39%) ⬇️
plugin/autopath/setup.go 54.34% <100.00%> (-3.55%) ⬇️
plugin/bufsize/bufsize.go 100.00% <100.00%> (ø)
plugin/bufsize/setup.go 60.60% <100.00%> (+4.08%) ⬆️
plugin/cache/dnssec.go 85.71% <100.00%> (+25.71%) ⬆️
... and 77 more

... and 170 files with indirect coverage changes

📣 Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today!

@yongtang yongtang merged commit b541b4e into coredns:master Nov 8, 2023
12 checks passed
@tmthrgd tmthrgd deleted the proxy_healthcheck_domain branch November 8, 2023 21:48
@SuperQ SuperQ mentioned this pull request Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants