Tom Deseyn
6c1f181e7c
CurlHandler: set ssl options to match X509 machine store certificates ( dotnet/corefx#28312 )
...
* CurlHandler: set ssl options to match X509 machine store certificates
* Rework HttpClientUsesSslCertEnvironmentVariables test
* PR feedback
Commit migrated from https://github.com/dotnet/corefx/commit/1b588ca420d881d8c20db69022b1c64bc5223588
2018-03-22 22:51:51 -04:00
Caesar Chen
9df60dc56a
Make SocketsHttpHandler default Handler ( dotnet/corefx#27821 )
...
* set SocketsHttpHandler to default
* address feedback
* fix if check for 28002
Commit migrated from https://github.com/dotnet/corefx/commit/2b850f6fe5fd3171c2554da965cb07070e1d648e
2018-03-14 00:34:56 -04:00
Stephen Toub
89dfde815e
Expose SocketsHttpHandler
...
- Renames ManagedHandler to SocketsHttpHandler
- Moves a bunch of files around accordingly
- Updates System.Net.WebSockets.Client to use SocketsHttpHandler directly
- Updates System.Net.Http's tests with a reflection-based rather than TLS-based method for instantiating an HttpClientHandler backed by a SocketsHttpHandler.
Commit migrated from https://github.com/dotnet/corefx/commit/852d40e723c849e8d0c486676d40332343e12ca5
2018-02-08 19:12:50 -05:00
Paulo Janotti
99eb957292
Proper check for OpenSSL version in System.Net.Http.Tests ( dotnet/corefx#26873 )
...
Disable the tests affected by dotnet/corefx#26803 in the correct way so tests are skipped only when needed.
Commit migrated from https://github.com/dotnet/corefx/commit/cd26075ef0d371e222ab52a1322ea9a73f07ad72
2018-02-05 21:43:37 -08:00
Tom Deseyn
eaea0196f2
Update tests for xplat differences.
...
Commit migrated from https://github.com/dotnet/corefx/commit/8d7cb8426886f4318ae98db571a52f9dab5efa10
2017-11-21 11:53:02 +01:00
Tom Deseyn
f310758fc2
Fix test
...
Commit migrated from https://github.com/dotnet/corefx/commit/33622488472c61216fb3ca0851b30be658b85146
2017-11-20 14:46:11 +01:00
Tom Deseyn
9610a54b33
Clean-up test
...
Commit migrated from https://github.com/dotnet/corefx/commit/37b203a968f57ca4925795971bef9993926a86b2
2017-11-20 14:31:16 +01:00
Tom Deseyn
6d00842c13
Add test
...
Commit migrated from https://github.com/dotnet/corefx/commit/24f3d4d7096a54d46bdc1969475b55c01d04dce5
2017-11-20 14:26:57 +01:00
Stephen Toub
7be9b5bb5f
Switch tests to use thread-local switch for ManagedHandler
...
And as a result re-enable parallelism of the test suite, which on my machine reduces the running time of the outerloop tests from 150s to 45s.
Commit migrated from https://github.com/dotnet/corefx/commit/3db504ec31fb03162b33e0658870aef5af4e4abe
2017-09-21 08:26:44 -04:00
David Shulman
465f5b4426
Modify some HttpClient tests to use RemoteInvoke on UAP ( dotnet/corefx#22000 )
...
* Modify some HttpClient tests to use RemoteInvoke on UAP
A few of the HttpClient tests were failing and needed to be isolated into their
own process. This is due to the UAP stack using per-process connection pooling.
Fixes dotnet/corefx#21945
* Address PR feedback
Commit migrated from https://github.com/dotnet/corefx/commit/69424bfe32417870a5b3047bad4958cc7fa5d9a8
2017-07-08 10:53:30 -07:00
Stephen Toub
fd63714f4a
Re-enable ManagedHandler_HttpClientHandler_ClientCertificates_Test and ManagedHandler_HttpClientHandler_ServerCertificates_Test
...
The tests that verify PNSEs getting thrown were failing incorrectly when the managed handler was used on platforms like CentOS where our CI system has an old libcurl installed. For now, I've worked around it in a very manual fashion, but longer term we need a better way of using the same tests against multiple handlers substituted dynamically.
Commit migrated from https://github.com/dotnet/corefx/commit/fb2f2e8be64d6bf2c26030ef63d1e5cb004e8a64
2017-07-05 12:43:12 -04:00
Alex Perovich
72abd52557
Fix S.Net.Http.Functional.Tests on AoT ( dotnet/corefx#19133 )
...
* Fix S.Net.Http.Functional.Tests on AoT
* Use partial files
* Use braces
Commit migrated from https://github.com/dotnet/corefx/commit/f8f72de4a453151ee38322166ffec0000ee3a7c6
2017-05-02 06:49:19 -04:00