Commit Graph
11 Commits
Author SHA1 Message Date
Geoff Kizer bf6635fcfd add response generation overloads
Commit migrated from https://github.com/dotnet/corefx/commit/6943fc7c0e92359e6335a618f6ff5ee8402af4ac
2018-02-13 16:04:26 -08:00
Geoff Kizer b94eefba0f reorganize and cleanup some LoopbackServer code
Commit migrated from https://github.com/dotnet/corefx/commit/ec6a7215bb28a061d2357d8c3874447bc575132d
2018-02-13 15:43:59 -08:00
Stephen Toub 56fefc7c78 Disable SetDelegate_ConnectionSucceeds on Linux (dotnet/corefx#26773)
Commit migrated from https://github.com/dotnet/corefx/commit/166f2bacd530d658fa889731e5989b89f2aedee4
2018-02-01 20:58:20 -05:00
Paulo Janotti 0e728cc09a Enable ClientAndServer_OneOrBothUseDefault_Ok test (dotnet/corefx#26463)
* Enable ClientAndServer_OneOrBothUseDefault_Ok test

Protected against error in old versions of Windows and updated assert to
include the case when hash algorithm can be Sha1.

Fixes dotnet/corefx#7812 (actual fix done on Windows, just re-enabling affected tests
with proper guard)

* Waiting for tasks w/ test cfg wrapper

* Skip test on Windows 7

On Windows 7 only Tls is supported OOB, so only few test cases can
actually pass. Others fail with:

```
System.Security.Authentication.AuthenticationException : A call to SSPI
failed, see inner exception.
---- System.ComponentModel.Win32Exception : The client and server cannot
communicate, because they do not possess a common algorithm
```


Commit migrated from https://github.com/dotnet/corefx/commit/9f858d067d7484f8d8b06a3f92e646f422a0c804
2018-01-19 19:46:32 -08: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
Tarek Mahmoud Sayed 78e14f5cea Modify High Sierra Check and Fix TZ Test (dotnet/corefx#23171)
Commit migrated from https://github.com/dotnet/corefx/commit/bdb3ef6ec7a7106c439796a27ec448e0e406310c
2017-08-14 08:46:56 -07:00
Lakshmi Priya Sekar f828d320fd Disable incompatible test on macos high sierra.
Commit migrated from https://github.com/dotnet/corefx/commit/c6afac0fb789e93431e3940e1ed08a2eabd3c344
2017-07-14 11:09:25 -07:00
David Shulman 729e5773e4 Fix HttpClientHandler ServerCertificateCustomValidationCallback for UWP (dotnet/corefx#21905)
* Fix HttpClientHandler ServerCertificateCustomValidationCallback for UWP

This PR implements the ServerCertificateCustomValidationCallback for UWP. While implementing this, I discovered that the behavior of
the current .NET Core code is incorrect regarding how to propagate exceptions from the user provided callback. I opened up a new
issue dotnet/corefx#21904 and revised the test as well.

Fixes dotnet/corefx#21627

* Address more PR feedback


Commit migrated from https://github.com/dotnet/corefx/commit/e30fdc38e60f6fa2ed8e7e103d1f8c44655438cd
2017-07-06 17:22:50 -07:00
David Shulman d81ad4080f Disable bad certificates tests on Windows (dotnet/corefx#21090)
Due to issues with dotnet/corefx#7812 and certificates using DHE ciphers, we're
disabling these tests on Windows for now.

I am in the process of moving these tests from the *.badssl.com servers
to servers that we control in Azure that won't use DHE cipher suites.

Related to dotnet/corefx#7812

Commit migrated from https://github.com/dotnet/corefx/commit/187bf4cd817637a3505d69f1c08ec80938b02d82
2017-06-15 13:38:09 -04:00
Stephen Toub 874449be70 Special-case DangerousAcceptAnyServerCertificateValidator on Unix
In situations where setting ServerCertificateValidationCallback would result in a PlatformNotSupportedException, if it was set to DangerousAcceptAnyServerCertificateValidator instead simply disable CURLOPT_SSL_VERIFYPEER and CURLOPT_SSL_VERIFYHOST.  This enables a common case of `delegate { return true; }` to work on libcurls with non-SSL backends, such as the default on macOS.


Commit migrated from https://github.com/dotnet/corefx/commit/65bdb971e1d97c930c59939ed7ac3f7ab364bfb0
2017-05-18 13:49:15 -04:00
Stephen Toub aed0fee2f6 Add DangerousAcceptAnyServerCertificateValidator property to HttpClientHandler
Commit migrated from https://github.com/dotnet/corefx/commit/2a9435284246f914dc854e195428527b38e52aae
2017-05-18 13:49:15 -04:00