The DNS transport and Web test projects start their servers on port 0 and read the bound port #413
No reviewers
Labels
No labels
agent
api-regen
agent
architect
agent
coder
agent
console-coder
agent
docs-writer
agent
mechanic
agent
protocol-coder
agent
storage-coder
area/api
area/ci
area/console
area/dhcp
area/dns
area/docs
area/packaging
area/process
area/storage
area/windows
kind
bug
kind
chore
kind
docs
kind
epic
kind
feature
kind
performance
kind
security
kind
test
priority
high
priority
low
priority
medium
resolution
duplicate
resolution
not-a-bug
resolution
wontfix
status
blocked
status
in-progress
status
needs-decision
status
needs-design
status
ready
theme
ad-samba-dns
theme
alternatives-benchmark
theme
console-toolchain
theme
later
theme
parity-devices
theme
parity-query
theme
post-release-fixes
theme
tracker-setup
theme
valkey
theme
windows-installer
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lantea-one/ninlil!413
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/362-port-zero-dns-tests"
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?
The DNS transport and Web test projects start their servers on port 0 and read the bound port, or retry a bounded number of times where one port number must be shared. This is the second half of #362 (the DHCP test projects are pull request #411) and finishes the dedicated pass of #233.
DnsOverHttpsHostedService.BoundPortreports the port the standalone DNS-over-HTTPS service bound, and 0 when it is not running. Its "listening on port" log line prints that port. DoT, DoQ and DNSCrypt already had the member.BoundPort; the three reserve-and-release helpers are deleted.TransportSettingsHotReloadTestsuses a test-owned silent socket and port 0.DhcpServiceControlControllerTestsstarts DHCPv6 on port 0 and readsDhcpv6UdpListener.BoundPort.StartupRefusalProcessTestsandNinlilDnsWebApplicationFactorykeep their environment-variable ports, because the host or child process reads them before it starts.PlainListenAddressTests,ListenSocketSetTests,DnsCryptProviderNameTests.Verified
Ninlil.Web.Tests2353 of 2353; build 0 warnings, 0 errors; csharpier clean.Closes #362
Closes #233
🤖 Generated with Claude Code
https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK