Skip to content

CSHARP-6246: Test that srvAllowedHostsSuffix accepts an underscore - #2169

Merged
adelinowona merged 1 commit into
mongodb:mainfrom
adelinowona:csharp6246
Oct 29, 2026
Merged

adelinowona merged 1 commit into
mongodb:mainfrom
adelinowona:csharp6246

Conversation

@adelinowona

@adelinowona adelinowona commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

No description provided.

@adelinowona adelinowona added the chore Non–user-facing code changes (tests, build scripts, etc.). label Oct 27, 2026
@adelinowona
adelinowona marked this pull request as ready for review October 27, 2026 14:47
@adelinowona
adelinowona requested a review from a team as a code owner October 27, 2026 14:47
@adelinowona
adelinowona requested review from papafe and a balanced review from Copilot October 27, 2026 14:47

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The focused test additions follow existing patterns, cover the intended behavior, and have no identified blocking issues.

No open issues 🎉

What changed in this PR

This test-only PR adds regression coverage confirming that the MongoDB C# driver's srvAllowedHostsSuffix accepts underscores.

Changes:

  • Adds a DNS seedlist discovery test that resolves a host matching an underscore-containing suffix.
  • Adds a normalization test case confirming that .my_domain.net is preserved.
File Description
tests/​MongoDB.Driver.Tests/​Specifications/​initial-dns-seedlist-discovery/​prose-tests/​SrvPartsTests.cs Tests SRV resolution with an underscore-containing allowed suffix.
tests/​MongoDB.Driver.Tests/​Core/​Configuration/​ConnectionStringTests.cs Tests normalization of an underscore-containing suffix.

Review effort: Balanced

@sanych-sun sanych-sun left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@adelinowona
adelinowona merged commit 79c1088 into mongodb:main Oct 29, 2026
33 of 35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Non–user-facing code changes (tests, build scripts, etc.).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants