-
Notifications
You must be signed in to change notification settings - Fork 317
Refactor Test TDS Servers. Expand functional testing of connection pooling and transient failures. #3488
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
mdaigle
merged 51 commits into
dotnet:main
from
mdaigle:dev/mdaigle/failover-tds-server
Sep 25, 2025
Merged
Refactor Test TDS Servers. Expand functional testing of connection pooling and transient failures. #3488
Changes from all commits
Commits
Show all changes
51 commits
Select commit
Hold shift + click to select a range
8afcbc7
Add failover config options
mdaigle 0007a10
Test failovers
mdaigle 03b8e49
Merge branch 'main' of github.com:dotnet/SqlClient into dev/mdaigle/f…
mdaigle 2adf97c
Test routing through a transient error.
mdaigle 5113fa7
Move startup to GenericTDSServer.
mdaigle 522abba
Remove duplicate server start code from ManualTests
mdaigle c41d0dc
Refactor failover param ownership. Fix pool invalidation test.
mdaigle 922b3ef
Cleanup. Rename GenericTDSServer to differentiate from the generic cl…
mdaigle 6ef83d7
Rename classes to match style. Make GenericTdsServer<T> abstract.
mdaigle 47cbb48
Fix connection string to use optional encryption.
mdaigle 905bc5d
Fix connection string to use optional encryption.
mdaigle 47aa3a3
Add transient timeout server. Add regression test for transient timeo…
mdaigle fe9e7e4
Clean up tests. Add new retry/failover tests.
mdaigle 93ebf98
Add new retry/failover tests.
mdaigle 04a4329
Added tests. Moved tests to UnitTests project. Removed failover repro.
mdaigle ee9d157
Restructure tests for readability.
mdaigle 11d90db
Update tests to remove unneeded routing. Check that connections end u…
mdaigle 846a493
Review changes
mdaigle f08447a
Add TDS projects to compile set for UnitTests.
mdaigle 7780cdd
fix tds projects inclusion
mdaigle ed2285c
Fix test server disposal.
mdaigle 47b7bc2
Remove tests for unsupported scenarios.
mdaigle 7532181
Add comments for confusing behavior.
mdaigle 57aeb4d
Rename files to match class names.
mdaigle 12cbb82
Remove proj change.
mdaigle 038a0cd
Skip failing unit tests.
mdaigle 206216a
Rename test folder.
mdaigle 487fc26
Review changes
mdaigle aeb0c29
Merge branch 'main' of github.com:dotnet/SqlClient into dev/mdaigle/f…
mdaigle 767e99c
Adjust tests based on multisubnetfailover setting.
mdaigle 4bda823
Improve test reliability.
mdaigle a92dc51
Make failover test more reliable.
mdaigle 2638eca
Rename to fix missing file.
mdaigle 1492ead
Update tests to work on linux/mac
mdaigle d237176
Add test for default TNIR setting in connection string.
mdaigle 0c03ddc
Remove active issues and adapt tests to set multisubnetfailover and T…
mdaigle f379cba
Enable setting localhost as an azure endpoint.
mdaigle d1bb855
Rename files and test cases for clarity. Rework some failover connect…
mdaigle e515abe
Add azure routing tests.
mdaigle 7d57e12
Serialize tests. Remove connection killing.
mdaigle 2fe29ed
Add additional assertions.
mdaigle 5eee939
Add common test project to unit test restore targets.
mdaigle c020ddf
Mark tests as flaky and skip in the pipeline for now.
mdaigle 32b9a10
Merge branch 'main' of github.com:dotnet/SqlClient into dev/mdaigle/f…
mdaigle 71a0228
Fix formatting.
mdaigle d8b1053
Merge main
mdaigle fe78207
Comply with new compiler error settings.
mdaigle c195cbf
Review changes.
mdaigle 5415ea4
oops
mdaigle d218cde
Update namespace.
mdaigle 9ef9949
Review changes.
mdaigle 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
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
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
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
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
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
140 changes: 0 additions & 140 deletions
140
src/Microsoft.Data.SqlClient/tests/FunctionalTests/SqlConnectionReadOnlyRoutingTests.cs
This file was deleted.
Oops, something went wrong.
64 changes: 0 additions & 64 deletions
64
src/Microsoft.Data.SqlClient/tests/FunctionalTests/TestRoutingTdsServer.cs
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.