Skip to content

Fix HttpClientHandler_ServerCertificates_Test#49130

Merged
antonfirsov merged 1 commit into
dotnet:mainfrom
antonfirsov:http/fix-test-49028
Mar 4, 2021
Merged

Fix HttpClientHandler_ServerCertificates_Test#49130
antonfirsov merged 1 commit into
dotnet:mainfrom
antonfirsov:http/fix-test-49028

Conversation

@antonfirsov

@antonfirsov antonfirsov commented Mar 4, 2021

Copy link
Copy Markdown
Contributor

Fixes #49028, which is a regression caused by an overlook in #48817. HttpClientHandler_ServerCertificates_Test should also have a custom overload for CreateHttpClient() not only CreateHttpClientHandler(), otherwise ServerCertificateCustomValidationCallback won't be configured correctly in member test cases using CreateHttpClient().

@ghost ghost added the area-System.Net.Http label Mar 4, 2021
@ghost

ghost commented Mar 4, 2021

Copy link
Copy Markdown

Tagging subscribers to this area: @dotnet/ncl
See info in area-owners.md if you want to be subscribed.

Issue Details

Fixes #49028, which is a regression caused by an overlook in #48817. HttpClientHandler_ServerCertificates_Test should also have a custom overload for CreateHttpClient() not only CreateHttpClientHandler(), otherwise ServerCertificateCustomValidationCallback won't be configured correctly.

Author: antonfirsov
Assignees: -
Labels:

area-System.Net.Http

Milestone: -

@antonfirsov antonfirsov added this to the 6.0.0 milestone Mar 4, 2021
@antonfirsov
antonfirsov requested a review from a team March 4, 2021 13:17
@antonfirsov

Copy link
Copy Markdown
Contributor Author

/azp run runtime-libraries-coreclr outerloop

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@ManickaP ManickaP 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 if the test will eventually pass, thanks.

@antonfirsov

Copy link
Copy Markdown
Contributor Author

The only Http test failure is #44352, which is unrelated. The PlatformHandler_HttpClientHandler_ServerCertificates_Http2_Test failures seems to be gone.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Test failure: PlatformHandler_HttpClientHandler_ServerCertificates_Http2_Test.NoCallback_BadCertificate_ThrowsException

3 participants