Skip to content

rework UseCallback_BadCertificate_ExpectedPolicyErrors test to use Loopback server to avoid external dependency - #41850

Merged
wfurt merged 3 commits into
dotnet:masterfrom
wfurt:badssl_41381
Sep 10, 2020
Merged

rework UseCallback_BadCertificate_ExpectedPolicyErrors test to use Loopback server to avoid external dependency#41850
wfurt merged 3 commits into
dotnet:masterfrom
wfurt:badssl_41381

Conversation

@wfurt

@wfurt wfurt commented Sep 4, 2020

Copy link
Copy Markdown
Member

The test is currently failing because new certificate on badssl.com does not have EKU so our validation throws in unexpected RemoteCertificateNameMismatch.
With this change we use loopback with certificate we can control. Since there is no external dependency, new test its no longer Outerloop.

fixes #41381

@wfurt wfurt added the test-enhancement Improvements of test source code label Sep 4, 2020
@wfurt
wfurt requested a review from a team September 4, 2020 04:14
@wfurt wfurt self-assigned this Sep 4, 2020
@Dotnet-GitSync-Bot

Copy link
Copy Markdown
Collaborator

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

@ghost

ghost commented Sep 4, 2020

Copy link
Copy Markdown

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

@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.

Optional suggestions, otherwise LGTM.
Not a security person though.

Comment thread src/libraries/Common/tests/System/Net/Http/LoopbackServer.cs Outdated
@wfurt
wfurt merged commit 1e09ff6 into dotnet:master Sep 10, 2020
@wfurt
wfurt deleted the badssl_41381 branch September 10, 2020 01:09
@danmoseley

Copy link
Copy Markdown
Contributor

Yay for moving a test to innerloop!

@ghost ghost locked as resolved and limited conversation to collaborators Dec 7, 2020
@karelz karelz added this to the 6.0.0 milestone Jan 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-System.Net.Http test-enhancement Improvements of test source code

Projects

None yet

5 participants