Skip to content

[Extensions] Fix ASP.NET Core integration testing #48426

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 9 commits into from
Feb 27, 2025

Conversation

jsquire
Copy link
Member

@jsquire jsquire commented Feb 25, 2025

Summary

The focus of these changes is to fix an assumption in the logic when creating clients from configuration. Currently, if the configuration section has a non-null value, it is assumed to be a connection string.
This is not the case for ASP.NET Core test integration due to a bug in the test host which causes the Value property to return an empty string rather than the null returned by the actual configuration system.

References and related

The focus of these changes is to fix an assumption
in the logic when creating clients from configuration.
Currently, if the configuration section has a non-null
value, it is assumed to be a connection string.
This is not the case for ASP.NET Core test integration
due to a bug in the test host which causes the Value
property to return an empty string rather than the
null returned by the actual configuration system.
@jsquire jsquire added Client This issue points to a problem in the data-plane of the library. Extensions ASP.NET Core extensions labels Feb 25, 2025
@jsquire jsquire added this to the 2025-03 milestone Feb 25, 2025
@jsquire jsquire self-assigned this Feb 25, 2025
@azure-sdk
Copy link
Collaborator

API change check

API changes are not detected in this pull request.

Copy link
Member

@m-redding m-redding left a comment

Choose a reason for hiding this comment

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

LGTM!

@jsquire jsquire merged commit 6fcabfc into Azure:main Feb 27, 2025
31 checks passed
@jsquire jsquire deleted the extensions/aspnet-test branch February 27, 2025 01:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Client This issue points to a problem in the data-plane of the library. Extensions ASP.NET Core extensions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants