Skip to content

Fix hostname verification tests #546

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

Merged
merged 1 commit into from
Aug 10, 2025
Merged

Conversation

rschmitt
Copy link
Contributor

@rschmitt rschmitt commented Aug 8, 2025

I noticed after a macOS upgrade that these tests were failing, evidently due to some sort of firewall behavior. Looking at the problem, it seems like these tests actually intend to call getLoopbackAddress, rather than getLocalHost, which returns the IP address and hostname of the local host on the network, rather than on the loopback.

I noticed after a macOS upgrade that these tests were failing, evidently
due to some sort of firewall behavior. Looking at the problem, it seems
like these tests actually intend to call `getLoopbackAddress`, rather
than `getLocalHost`, which returns the IP address and hostname of the
local host _on the network_, rather than on the loopback.
@rschmitt
Copy link
Contributor Author

rschmitt commented Aug 8, 2025

I think these tests are breaking due to an issue with my router, which is apparently returning a stale IP address when my hostname is queried over DNS. Nevertheless, I still think that getLoopbackAddress() makes more sense in these integration tests than getLocalHost(), since the target hostname is localhost and not the host's name on the actual network.

@rschmitt rschmitt merged commit 1253c7f into apache:master Aug 10, 2025
10 checks passed
@rschmitt rschmitt deleted the loopback branch August 10, 2025 01:26
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.

2 participants