This repository was archived by the owner on Mar 23, 2026. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
DNS: Move tests to integration tests, reenable skipped test #13510
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,6 +20,14 @@ | |
|
|
||
|
|
||
| class TestDNSServer: | ||
| """ | ||
| End to end tests of our DNS server implementation. | ||
| These tests use the `example.org` and `example.com` domains for testing, and also tests the fallback to the public DNS | ||
| Changes in the upstream name resolution of those domains might lead to test failures. | ||
|
|
||
| TODO we should investigate creating our own test domain with a fixed behavior to avoid potential test failures | ||
| """ | ||
|
|
||
| @pytest.fixture | ||
| def dns_server(self): | ||
| dns_port = get_free_udp_port() | ||
|
|
@@ -176,12 +184,11 @@ def test_dns_server_soa_record_suffix_matching(self, dns_server, query_dns): | |
| assert "something.org." in answer.to_text() | ||
| assert "noc.something.org." in answer.to_text() | ||
|
|
||
| @pytest.mark.skip(reason="failing as of 2025-12-11") | ||
| def test_dns_server_subdomain_of_route(self, dns_server, query_dns): | ||
| """Test querying a subdomain of a record entry without a wildcard""" | ||
| # add ipv4 host | ||
| dns_server.add_host("example.org", TargetRecord("127.0.0.1", RecordType.A)) | ||
| answer = query_dns("nonexistent.example.org", "A") | ||
| dns_server.add_host("example.com", TargetRecord("127.0.0.1", RecordType.A)) | ||
| answer = query_dns("nonexistent.example.com", "A") | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This actually doesn't work for me. It's because |
||
| assert not answer.answer | ||
| # should still have authority section | ||
| # TODO uncomment once it is clear why in CI the authority section is missing | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is
localstack.cloudsomething we could use? Unfortunately, creating an additional test domain would cost money, and the associated yearly management of keeping the domain alive.