Fix WithGlobalConnectionString silent failure with invalid connection strings#2157
Conversation
Co-authored-by: jzabroski <[email protected]>
Co-authored-by: jzabroski <[email protected]>
WithGlobalConnectionString with invalid connection string silently fails without error or warning|
Simply opening the connection would validate the connection string no ? Is there an advantage to also open an empty transaction ? |
|
@copilot Update this PR to trigger an updated GitHub Action for the PR. |
Co-authored-by: jzabroski <[email protected]>
Test Results 1 files 1 suites 37s ⏱️ Results for commit e5d2a3b. ♻️ This comment has been updated with latest results. |
|
@copilot Please address the failing unit test. The following unit test for this PR fails when running on our AzureDevOps release build; the result is it throws System.ArgumentException : Invalid connection string : Below is the stack trace: at Moq.Behaviors.ThrowException.Execute(Invocation invocation) in //src/Moq/Behaviors/ThrowException.cs:line 22 |
Co-authored-by: jzabroski <[email protected]>
Fixed in commit 4b5348d. The issue was that the mock setup for Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
@copilot Please make a trivial change to trigger a new GitHub action workflow on this PR. |
Co-authored-by: jzabroski <[email protected]>
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.