Commit Graph
792 Commits
Author SHA1 Message Date
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
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
Krzysztof Wicher f3f741eade Use distro detection from Microsoft.DotNet.PlatformAbstractions (dotnet/corefx#24531)
Commit migrated from https://github.com/dotnet/corefx/commit/4bf90198c5e7710ea67b7c1b467e859ec8bb78e5
2017-11-03 14:30:47 -07:00
Stephen Toub 087ef535f4 Use the Host header for the SSL handshake
Commit migrated from https://github.com/dotnet/corefx/commit/5ecea8ff47c03a073a77916a9c7d1d806f8c7ce3
2017-10-25 13:40:03 -04:00
Stephen Toub ac386deda7 Don't fail a redirect that's missing a Location header
Commit migrated from https://github.com/dotnet/corefx/commit/ddfab940fcc2d571c2da85250c13e457ab1933a2
2017-10-25 13:23:59 -04:00
Stephen Toub 6d13fd5bc3 Address PR feedback
Commit migrated from https://github.com/dotnet/corefx/commit/3b9525bd44ffab17a227cad47ae607bbf370dc1c
2017-10-18 00:19:35 -04:00
Geoff Kizer 3333dfede4 add more cases and make tests more robust
Commit migrated from https://github.com/dotnet/corefx/commit/a3cab9a48cc373eaf45a513d9c60895446c9bafc
2017-10-17 11:49:00 -04:00
Geoff Kizer cf5033763d add some basic protocol tests for status line handling
Commit migrated from https://github.com/dotnet/corefx/commit/79709c46a1e84ccae519ca58a12f9f29f0b64db5
2017-10-17 11:49:00 -04:00
Tomas Weinfurt e12d604d93 Add minimal handling for HTTP 1.0 requests to ManagedHandler (dotnet/corefx#23653)
* add minimal handling for 1.0 requests.

* use 1.1 as default version and move some message to resource file

* fix spelling

* remove exception for 2.0 requests and fall-back to 1.1

* remove s_spaceHttp20NewlineAsciiBytes as it is not used now

* add isHttp10 bool to avoid duplicate check.


Commit migrated from https://github.com/dotnet/corefx/commit/8b266d0ca4a12428629b3a7abf79c61c29e50883
2017-10-02 23:40:30 -04:00
Stephen Toub a1491f5511 Merge pull request dotnet/corefx#24173 from stephentoub/managedhandler_optin
Provide an (at least temporary) non-global ManagedHandler opt-in mechanism

Commit migrated from https://github.com/dotnet/corefx/commit/1adc5b27283de6e9627e183ef24e0631ee7bab9a
2017-09-21 20:14:57 -07:00
Stephen Toub e16c674170 Increase file descriptor limit in S.N.Http tests on macOS
Commit migrated from https://github.com/dotnet/corefx/commit/2bce06e38f5c16ec6d6eed96a2c4410110fe5ec6
2017-09-21 21:31:49 -04:00
ahsonkhan 12a9b427d1 Change AsSpan to property Span and rename AsMemory to Memory
Commit migrated from https://github.com/dotnet/corefx/commit/786195a51ca0b751f5aec127faf655fe358c6993
2017-09-21 15:47:42 -04: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
Stephen Toub f87da3dfe0 Wrap exceptions from ManagedHandler's server validation callback (dotnet/corefx#24111)
To match other handlers' behaviors.

Commit migrated from https://github.com/dotnet/corefx/commit/e0b912e37439118651ae12e5685b0ef7efd8f1fd
2017-09-18 11:12:48 -07:00
David Shulman a10c42c864 Wrap cert callback leaked exceptions in WinHttpHandler (dotnet/corefx#24107)
Similar to the fix done for CurlHandler (dotnet/corefx#21938), fix WinHttpHandler so
that leaked exceptions from the user-provided certificate callback are
properly wrapped.

The ManagedHandler still needs to be fixed since it is not wrapping
properly.

Contributes to dotnet/corefx#21904

Commit migrated from https://github.com/dotnet/corefx/commit/ca5d83ec2855afa7ce4f60d9c5b0dd46e1cb2faf
2017-09-17 23:19:28 -04:00
Stephen Toub 29b6641eeb Add ReadOnlyMemoryContent to System.Net.Http (dotnet/corefx#24006)
* Add ReadOnlyMemoryContent to System.Net.Http

Allows `{ReadOnly}Memory<byte>`s to be uploaded in HttpClient requests.

* Address PR feedback

* Address more PR feedback


Commit migrated from https://github.com/dotnet/corefx/commit/d183fd34074fba9633f025fe2251e7d7883c7f25
2017-09-13 13:01:15 -07:00
Lakshmi Priya Sekar bf69088386 Merge pull request dotnet/corefx#23868 from Priya91/credentialmh
Remove duplicate bug ids in source code.

Commit migrated from https://github.com/dotnet/corefx/commit/82a45b73d9754ae5e82ce1c699b0c86db712e4fa
2017-09-12 18:55:50 -07:00
Lakshmi Priya Sekar 82a42d0e68 Move test to windows specific.
Commit migrated from https://github.com/dotnet/corefx/commit/b95d60789528d2d920e4d58238ee3fd3260585de
2017-09-12 17:36:53 -07:00
David Shulman c8fcec1e55 Disable unreliable Http diagnostics logging test (dotnet/corefx#23977)
The Http test, SendAsync_ExpectedDiagnosticCancelledLogging, has been
failing at times.

I am going to disable this test until it can be made more robust. It is
not a reliable test because cancellation cannot be guaranteed to occur
with a certain time especially on a busy machine.

dotnet/corefx#23209

Commit migrated from https://github.com/dotnet/corefx/commit/839ace982010b10bef94c9aac1d2eb991f76c383
2017-09-12 13:09:51 -04:00
Lakshmi Priya Sekar cfece7ec46 Move DefaultCredentialsTest to windows only.
Commit migrated from https://github.com/dotnet/corefx/commit/d961c15b20539f5638953e9506d35f49d038237a
2017-09-07 17:25:43 -07:00
Lakshmi Priya Sekar 6ea808c117 Remove duplicate bug ids in source code.
Commit migrated from https://github.com/dotnet/corefx/commit/22c66999a49f73002f8e6b04e54c10c7e5f2fe15
2017-09-07 15:20:41 -07:00
Lakshmi Priya Sekar 23c60bac8f Merge pull request dotnet/corefx#23821 from Priya91/credentialmh
Use only CredentialCache for authentication when redirecting Uris in ManagedHandler.

Commit migrated from https://github.com/dotnet/corefx/commit/2b889c4a2d9877b7112d9a57061b92366d9c257a
2017-09-07 15:11:59 -07:00
Lakshmi Priya Sekar 7bf96b53d4 Consolidate code between different Http handlers.
Commit migrated from https://github.com/dotnet/corefx/commit/5ef59053709ef8b6f5b30b709bffbe38fcb19823
2017-09-07 11:18:43 -07:00
Stephen Toub d37b1e463d Respect UseProxy better in ManagedHandler (dotnet/corefx#23750)
To match CurlHandler, we should only be using environment variable-based proxy configuration if UseProxy is true, but we're currently using it regardless.  This commit fixes that and adds a test for it.

Commit migrated from https://github.com/dotnet/corefx/commit/7615a2c1dde51e0797ed3ffbca70191af2aef79e
2017-09-07 00:11:34 -04:00
David Shulman da2de2ec4a Disable default proxy test on Desktop
HttpClient test ProxyExplicitlyProvided_DefaultCredentials_Ignored has
started failing on Desktop due to build system changes. Disabling for
now.

dotnet/corefx#23702


Commit migrated from https://github.com/dotnet/corefx/commit/2c50d92d6d07173db6ec5c8a6a17085613972a3b
2017-09-06 10:41:14 -07:00
Lakshmi Priya Sekar ec142d891b Use only CredentialCache when redirecting Uris in ManagedHandler.
Commit migrated from https://github.com/dotnet/corefx/commit/9d5f5d1f8630e3c50404647926496b0d45cf1203
2017-09-05 18:26:43 -07:00
Stephen Toub 45558100d1 Enable disabled HttpClientEKUTests on ManagedHandler (dotnet/corefx#23754)
They appear to all be passing now.

Commit migrated from https://github.com/dotnet/corefx/commit/2443b0d5f2a25f9c619aff9dca8ec2625eba1c96
2017-09-03 19:07:47 -04:00
David Shulman c3dbc2406e Disable some networking tests
Disabling tests.
dotnet/corefx#23765 dotnet/corefx#23766 dotnet/corefx#23767 dotnet/corefx#23768 dotnet/corefx#23769 dotnet/corefx#23770 dotnet/corefx#23771


Commit migrated from https://github.com/dotnet/corefx/commit/acafae51592f7e09fba003a3684d550dba155a2e
2017-09-02 16:50:54 -07:00