Commit Graph
818 Commits
Author SHA1 Message Date
Stephen Toub b3286ea024 Clean up ManagedHandler sending of request content (dotnet/corefx#26759)
* Clean up ManagedHandler sending of request content

Centralize the copy into the function that actually sends the content.

* Add HttpClientHandler test for handling request content copy failure


Commit migrated from https://github.com/dotnet/corefx/commit/6f8a600be95671162bd4de3014adafabe0a0e5ed
2018-02-02 08:50:35 -05:00
Stephen Toub 3e942132d9 Fix ManagedHandler env var / AppContext handling (dotnet/corefx#26763)
* Fix ManagedHandler env var / AppContext handling

* Update two names

* Update README.md


Commit migrated from https://github.com/dotnet/corefx/commit/473a4cf05c28f95d8a93b826647f755dbdec8728
2018-02-01 22:04:16 -05: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
Geoff Kizer a1337d4869 fix dribble tests when client disconnects on bad request (dotnet/corefx#26730)
Fixes dotnet/corefx#26729

Commit migrated from https://github.com/dotnet/corefx/commit/6f5d255a76a192906f692fd3d2b9104ab6aeb2f2
2018-02-01 06:21:36 -08:00
Geoff Kizer d4cdf4d46d Merge pull request dotnet/corefx#26708 from geoffkizer/httpretry
ManagedHandler: implement connection retry logic

Commit migrated from https://github.com/dotnet/corefx/commit/95bfb895707d5756d4b9693286672780f0a6ba02
2018-01-31 20:24:58 -08:00
Paulo Janotti a9bb9f1ab7 Separate basic auth test cases for HttpClientHandler (dotnet/corefx#26713)
Separating the test cases between compliant and non-compliant names. Related to dotnet/corefx#23135 

Commit migrated from https://github.com/dotnet/corefx/commit/62a3d898ceb94227b2b03462b5b09f0a7cd4e3a8
2018-01-31 15:37:08 -08:00
Geoff Kizer 6239288b27 Merge pull request dotnet/corefx#26585 from geoffkizer/httpversionhandling
clean up request and response version handling in managed handler

Commit migrated from https://github.com/dotnet/corefx/commit/2e10ed5418bac7b6b47a407b7efb28ccfcbc9f21
2018-01-31 10:19:41 -08:00
Geoff Kizer 694a7a6172 implement connection retry logic and related changes
Commit migrated from https://github.com/dotnet/corefx/commit/64976bf062b6cbc55a3e708dbf7116188d075ff1
2018-01-31 10:03:23 -08:00
Paulo Janotti 1542b4278f Make redirect test case really 'redirect' (dotnet/corefx#26674)
The test case was redirecting to the same URL this was bringing instability with the handlers (more with the managed). This change should make the test more reliable, as such moving it to inner loop.

Fixes dotnet/corefx#23769
Since no action is planned for dotnet/corefx#26434 this also closes dotnet/corefx#26434

Commit migrated from https://github.com/dotnet/corefx/commit/3b69635f25636377841ded02de254eacec6e3728
2018-01-30 13:26:09 -08:00
Paulo Janotti 8e297658e1 Http protocol dribble tests taking two long (dotnet/corefx#26680)
The time of inner loop is dominated by the http protocol dribble tests.

Returning the Task.Delay to Task.Yield reduces it from ~19 seconds to less than a second on a Windows 10 RS3 box.

Commit migrated from https://github.com/dotnet/corefx/commit/179cf080901f8f7f4e5499b80ad393b7370eef40
2018-01-30 16:06:51 -05:00
Geoff Kizer 5a33c6658b fix CurlHandler test for 2.0 response
Commit migrated from https://github.com/dotnet/corefx/commit/b91b6c63aa3678ba707a9900b64eea9f8e0a6d00
2018-01-29 13:31:18 -08:00
Geoff Kizer 95dd8bdc14 update tests to correctly test existing behaviors of different handlers
Commit migrated from https://github.com/dotnet/corefx/commit/380f45c16b952d5064002de0d8e936a38a49d276
2018-01-26 01:32:59 -08:00
Caesar Chen 2181b942d1 Enable some HttpProtocolTests test cases and skip them on .NET Core Windows run (dotnet/corefx#26573)
* split test cases

* disable against CurlHandler as well

* address PR feedback


Commit migrated from https://github.com/dotnet/corefx/commit/e274885db32ec40b327ed4dcb3439aca41d29844
2018-01-25 15:57:38 -08:00
Geoff Kizer 79e1348226 clean up request and response version handling in managed handler, and add tests
Commit migrated from https://github.com/dotnet/corefx/commit/a1bf78551ff6de29ea02837a21620000886b2828
2018-01-24 23:17:21 -08:00
Geoff Kizer a7a639d293 Merge pull request dotnet/corefx#26511 from geoffkizer/mischttp1
Several small ManagedHandler fixes

Commit migrated from https://github.com/dotnet/corefx/commit/25c4a916bf1f35be1d009b679b19f7ebea535647
2018-01-24 21:47:48 -08:00
Caesar Chen 266628de65 Enable HttpProtocolTests test cases on .NET Core (dotnet/corefx#26525)
* split test data

* address pr feedback

* revert part of changes, and track disabled test data by new issue

* disable a Unix test case


Commit migrated from https://github.com/dotnet/corefx/commit/2836df39b74713ce26dadbd9bd3448dffbf3bf30
2018-01-23 18:56:14 -08:00
Paulo Janotti abeece37dd Disable 307 LargePayload again (dotnet/corefx#26547)
Test failed with managed handler again, disabling before further
investigation.

Commit migrated from https://github.com/dotnet/corefx/commit/19aa9ff4bb0ba7a73a502fe0e5557f7653b7035e
2018-01-23 08:34:32 -08:00
Geoff Kizer 77f565e3df move managed handler test class to ManagedHandlerTest.cs
Commit migrated from https://github.com/dotnet/corefx/commit/0f22f460b5731f4a8ca2c75c84277dd152d001a9
2018-01-22 17:52:40 -08:00
Geoff Kizer 71e644b3d1 disable IDNA tests on full framework
Commit migrated from https://github.com/dotnet/corefx/commit/bc64832720692b8623c0ab9df3882cc2970d6089
2018-01-22 17:04:53 -08:00
Geoff Kizer 809c37daab disable IDNA tests for uap and WinHttp on Win7
Commit migrated from https://github.com/dotnet/corefx/commit/c3e19a9a1dc18c811aef9ebb55a827b93eabc2cc
2018-01-22 13:23:25 -08:00
Geoff Kizer d0b752b99e address review feedback and add some more international host names to test
Commit migrated from https://github.com/dotnet/corefx/commit/8bb53d4a7621852355a77c21c6f749d4c7b7e98a
2018-01-22 13:03:07 -08:00
Geoff Kizer 47c423424d fix IDNA host name handling in proxy case, and add some IDNA tests
Commit migrated from https://github.com/dotnet/corefx/commit/36eb70cb80ec368df52ffd9b2257317bae8bdb47
2018-01-22 12:26:18 -08:00
Geoff Kizer 64ed728642 make dribble test slightly more useful
Commit migrated from https://github.com/dotnet/corefx/commit/3b5eb942de8f4d2d505d5268baf0ad415bd66651
2018-01-22 12:26:17 -08:00
Geoff Kizer dfff781f66 fix issue that was causing duplicate test execution
Commit migrated from https://github.com/dotnet/corefx/commit/c512fae6eb54ffdbc6201e4a0b4491fa37a99e91
2018-01-22 12:26:16 -08: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
Paulo Janotti be838e8850 No local repro for dotnet/corefx#23768, re-enabling test (dotnet/corefx#26399)
* No local repro for dotnet/corefx#23768

Not to be committed as it is, just to check CI run.

* Re-enale LargePayload test in OuterLoop

The LargePayload test did not fail in various local runs and in CI,
re-enabling it.

Fixes dotnet/corefx#23768


Commit migrated from https://github.com/dotnet/corefx/commit/b265a0f0066dbce3cf4845c25444fe85266c81d0
2018-01-19 12:49:30 -08:00
Paulo Janotti 3291b94ec7 Test: ignore specific WinHttpException on old Windows versions (dotnet/corefx#26428)
The root cause issue was already fixed in Windows but old versions still
hit this issue. This change makes the failing test to ignore the known
issue on these old Windows versions.

Fixes dotnet/corefx#7812 (just so GH closes the issue at merge time, the actual issue
was fixed in Windows).

Commit migrated from https://github.com/dotnet/corefx/commit/f345a2251bcb57d3a64e03efc63dafb76319dc20
2018-01-19 09:58:49 -08:00
Tomas Weinfurt d7d3bdd9b7 disable failing tests (dotnet/corefx#26197)
* disable failing tests

* add missing newline


Commit migrated from https://github.com/dotnet/corefx/commit/1efbd8e15fa6747215511cd492aa5a5f9c7e315d
2018-01-05 16:43:40 -08:00
Geoff Kizer 7e9be81a44 Merge pull request dotnet/corefx#26135 from geoffkizer/enablehttpclientssltests
reenable ssl tests

Commit migrated from https://github.com/dotnet/corefx/commit/e2b951c3f9bb119d9293078061d7821953bfdc19
2018-01-04 09:39:24 -08:00
Geoff Kizer 00e680fa3a reenable ssl tests
Commit migrated from https://github.com/dotnet/corefx/commit/085e8d014a0eb5f470bc9748d16f24d86590e9d5
2018-01-03 13:13:44 -08:00
TylerBrinkley cf00b35da6 Added license comments
Commit migrated from https://github.com/dotnet/corefx/commit/98bef0d6aa268bffd640e9de165a670157b4fb28
2018-01-02 10:59:23 -06:00
Tyler Brinkley 9d61820b00 Made tests only apply to netcoreapp
Commit migrated from https://github.com/dotnet/corefx/commit/dff5efc1c3630e40c961d01049afd35475a29221
2018-01-01 21:00:31 -06:00
TylerBrinkley 9bfaec2d68 Added functional tests.
Commit migrated from https://github.com/dotnet/corefx/commit/d67255e150d3a12cabdc832c523be1c79db53e03
2017-12-22 13:53:08 -06:00
Lakshmi Priya Sekar 3b52529fa4 Respond to pr feedback.
Commit migrated from https://github.com/dotnet/corefx/commit/c9a8b39eb6d78694b715b1d69f9b16409402490f
2017-12-14 15:08:43 -08:00
Lakshmi Priya Sekar 6ca6529323 Use generic test handling for remote server failures.
Commit migrated from https://github.com/dotnet/corefx/commit/d37b86ecf8606f007b32c9d60f623f50c874c723
2017-12-13 17:01:30 -08:00
Stephen Toub c666617fbc Add missing Shutdown calls in HTTP loopback servers (dotnet/corefx#25694)
Commit migrated from https://github.com/dotnet/corefx/commit/dbfa1ebe3f41090c525990d4887bd64574b5124b
2017-12-04 22:04:44 -05:00
Tomas Weinfurt 16478c842b disable ProxySetViaEnvironmentVariable_DefaultProxyCredentialsUsed on windows (dotnet/corefx#25641)
* disable ProxySetViaEnvironmentVariable_DefaultProxyCredentialsUsed on windows. (managed handler)

* remove dead code and correct white sapces

* udate with suggestion from review

* convert \t to spaces.


Commit migrated from https://github.com/dotnet/corefx/commit/7bdd866d7711c2d766772ab50b5c8367f227a2eb
2017-12-01 23:17:14 -05:00
Lakshmi Priya Sekar 9d7df9b614 Merge pull request dotnet/corefx#25219 from tmds/curl_ssl_cert
Make curl http handler use SSL_CERT_FILE/SSL_CERT_DIR environment variables.

Commit migrated from https://github.com/dotnet/corefx/commit/6dda730bb78979c8963a18942ab65377323a36d6
2017-11-22 15:55:52 -08:00
Stephen Toub 81e619f5d6 Fully enable Memory<byte> in SocketAsyncEventArgs
We initially superficially implemented the Memory<byte> support, by extracting the underlying array from it.  But that a) doesn't work for things other than arrays, and b) doesn't allow us to play nicely with already pinned buffers.  This changes the implementation to actually store the Memory<byte> natively.


Commit migrated from https://github.com/dotnet/corefx/commit/7ef465b97109efaee4254334f6226db402554f38
2017-11-22 11:57:45 -05: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
Tim Seaward 6b6e07fbb9 Removing unneeded blocking from tests (dotnet/corefx#25399)
Commit migrated from https://github.com/dotnet/corefx/commit/49a62edcfe76f1c5f5e981144a301ba3ddc5feb2
2017-11-20 22:19:04 -05: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
Lakshmi Priya Sekar 363a01fb05 Merge pull request dotnet/corefx#25090 from Priya91/managedauth
Reset auth settings on the request during redirect on managedhandler.

Commit migrated from https://github.com/dotnet/corefx/commit/35b0385bae7bf0049c355ccf8a7706304b16d3a5
2017-11-14 18:39:30 -08:00
Stephen Toub 3beac57295 Disable SendAsync_ExpectedDiagnosticCancelledActivityLogging test (dotnet/corefx#25207)
It's failing sporadically on outerloop, both Windows and Unix, both WinHttp/CurlHandler and ManagedHandler.

Commit migrated from https://github.com/dotnet/corefx/commit/4257c2226e039d4523f03404f323be4c36de2771
2017-11-12 15:28:09 -05:00
Lakshmi Priya Sekar 2c675cd34e Respond to PR feedback.
Commit migrated from https://github.com/dotnet/corefx/commit/0356a36032259753603a6018daa5d43cc688af32
2017-11-09 15:04:45 -08:00
Lakshmi Priya Sekar 4c8182b579 Mark tests hitting azure as outerloop.
Commit migrated from https://github.com/dotnet/corefx/commit/4a6a6aef06d3f8cbf5f9847ba7a241c15a4a20ff
2017-11-07 15:23:59 -08:00
Lakshmi Priya Sekar 7920e67372 Reset auth settings on the request during redirect on managedhandler.
Commit migrated from https://github.com/dotnet/corefx/commit/1daa3e97131ceb62741e56bd6a7e6450e9de1b5e
2017-11-07 15:18:14 -08:00
David Shulman 19ef688da1 Cleanup Windows 10 version detection (dotnet/corefx#25052)
* Cleanup Windows 10 version detection

Windows 10 Version 1709 ("Fall Creators Update") has been released. This
PR cleans up the version detection to use the latest RTM build numbers
and removes obsolete InsiderPreview detection for those tests.

Also, removed ActiveIssue for tests that are now fixed due to Windows 10
fixes.

Fixes dotnet/corefx#22187

* Addressed feedback


Commit migrated from https://github.com/dotnet/corefx/commit/ac410223aa763a0f67880815057ee1bfe0f4cb6e
2017-11-04 11:09:38 -07:00