Commit Graph
1031 Commits
Author SHA1 Message Date
Lakshmi Priya Sekar 6d612b34a7 Disable networking test on Windows7 pending investigation. (dotnet/corefx#16171)
Commit migrated from https://github.com/dotnet/corefx/commit/ee4ef6966d1e38726702923b19515b324b06530c
2017-02-14 21:14:54 -08:00
Stephen Toub 83f241c5c2 Audit all corefx Streams with Read/WriteAsync overrides (dotnet/corefx#16134)
* Audit all corefx Streams with Read/WriteAsync overrides

Any that have overrides of these that do something real (e.g. not just throw) also need overrides of Begin/EndRead/Write.


Commit migrated from https://github.com/dotnet/corefx/commit/e9ecf74d845476540f40fa8fdc62c53ebf048519
2017-02-14 17:03:16 -08:00
Steve Harter be18ea33cc Disable network test that is failing regularly (dotnet/corefx#16167)
Commit migrated from https://github.com/dotnet/corefx/commit/7df0cd05c67c28f869a997dfc4423813c2bd9f2a
2017-02-14 16:58:24 -08:00
Dennis "D.C." Dietrich 1840c1e772 Marking code as unchecked (pt 8) (dotnet/corefx#16117)
Marking code that may intentionally lead to over or underflows with
unchecked in preparation of turning on CheckForOverflowUnderflow for
all projects (issue dotnet/corefx#3140)

Commit migrated from https://github.com/dotnet/corefx/commit/7e0eacb6c1d6ec90ec088aedc89e32759ee7308c
2017-02-14 14:01:53 -08:00
Stephen Toub 2a4d4463dd Merge pull request dotnet/corefx#16144 from marek-safar/resources
Update System.Net.Http exception message not to refer to unknown property

Commit migrated from https://github.com/dotnet/corefx/commit/b6d007dd741178bce4646b60c88f15bf1364b4ea
2017-02-14 07:36:10 -08:00
Marek Safar 6f7b19c28d Update System.Net.Http exception message not to refer to unknown property
Commit migrated from https://github.com/dotnet/corefx/commit/c75d1efd8621b5a1e197b2635e7a2011a0afb7c3
2017-02-14 15:42:37 +01:00
Liudmila Molkova 35c191e3fb enable test
Commit migrated from https://github.com/dotnet/corefx/commit/f0eefb8256814429fa50b3f19ca4062021b29dbe
2017-02-13 17:34:53 -08:00
Liudmila Molkova 59ab0b597e Fix SendAsync_ExpectedDiagnosticCancelledLogging test
Commit migrated from https://github.com/dotnet/corefx/commit/3277395407b15fc6b7779a857f55330a3d16a8a1
2017-02-13 17:33:05 -08:00
Lakshmi Priya Sekar bd7d1fab1d Skip failing test to unblock builds.
Commit migrated from https://github.com/dotnet/corefx/commit/b387856bd3526a4857b6086020d6ad9408d88bbc
2017-02-13 11:46:29 -08:00
Liudmila Molkova 1be82ff62d Refactor DiagnosticSource logging (correlation part1) (dotnet/corefx#15971)
* Refactor DiagnosticSource logging, prepare for Activity support


Commit migrated from https://github.com/dotnet/corefx/commit/de3b53d28d351612ffe8986d88a67e451f5295fb
2017-02-10 10:07:49 -05:00
Sepideh Khoshnood 50fea0be10 Merge pull request dotnet/corefx#15932 from sepidehMS/PlatformSpecificTests
Review all PlatformSpecific tests to ensure test coverage

Commit migrated from https://github.com/dotnet/corefx/commit/6451bed4d4a667d9c05a41c0843504d020d283ab
2017-02-08 15:53:46 -08:00
Stephen Toub decd91a5fe Merge pull request dotnet/corefx#15967 from ianhays/nethttptest_bettererrormessage
Propagate exception for failing net.http test for better diagnosis.

Commit migrated from https://github.com/dotnet/corefx/commit/0738551debef08b7b2432e80ce5b4914c901b371
2017-02-08 18:38:21 -05:00
Tarek Mahmoud Sayed addda8630e Enable tests to compile with netstandard (dotnet/corefx#15956)
* Enable tests to compile with netstandard

Most of the tests have netstandard configurations and it doesn't compile. the changes here is to fix the configurations and the tests to compile.
This is important step to get netfx tests compile too as we are in most of the time netfx fallback to netstandard configuration

The changes include some fixes to compile teh sources too.

* Fix System.Collections.Immutable

* update src configuration

* remove netstandard17 defines

* Split netcoreapp code to its own files

* Remove 17 from the test class name


Commit migrated from https://github.com/dotnet/corefx/commit/15b4f51c2f3cb924840e5407bb8d5fe03bb282ea
2017-02-08 15:32:53 -08:00
Ian Hays 37fb1cc65f Propagate exception for failing nethttp test for better diagnosis.
Commit migrated from https://github.com/dotnet/corefx/commit/a9ee22c2f293335efbad2cd3165f1cf2f2a4cd2b
2017-02-08 15:00:27 -08:00
Jose Perez Rodriguez d9c497be12 Prepare uap package (dotnet/corefx#15866)
Prepare uap package

Commit migrated from https://github.com/dotnet/corefx/commit/afaaf450d1869992dcf4f51c627f16145cf9c974
2017-02-08 10:39:37 -08:00
sepidehMS 016f9b537d Remove unnecessary PlatformSpecific labels from tests
Commit migrated from https://github.com/dotnet/corefx/commit/3294b7172c51869892debba78d774a4e1f382cd5
2017-02-07 15:46:35 -08:00
Tarek Mahmoud Sayed 77cad86b1e Remove versioned configuration from test projects (dotnet/corefx#15879)
The changes onclude some other minor clean up in the test project files

Commit migrated from https://github.com/dotnet/corefx/commit/62212cca900081173fce70991c3a0b30393994a3
2017-02-06 13:52:11 -08:00
Lakshmi Priya Sekar 846b1d406a Merge pull request dotnet/corefx#15777 from Priya91/nettests
Fix networking test activeissues in System.Net.Http

Commit migrated from https://github.com/dotnet/corefx/commit/fdbf46ca4e3ab174628772e41d7c6bfc8a8bc448
2017-02-06 11:09:24 -08:00
Wes Haggard f2fd0ea78a Update Solution files to use windows path slashes.
Commit migrated from https://github.com/dotnet/corefx/commit/f8ba7c412d06d8e4d4e6278502d4dd771a0f10bb
2017-02-03 16:31:48 -08:00
Lakshmi Priya Sekar 6bff1b3000 Fix networking test activeissues in System.Net.Http
Commit migrated from https://github.com/dotnet/corefx/commit/dd65f89ef9806067779eb63b884d9317dad68202
2017-02-03 12:31:59 -08:00
Eric St. John c2dc83e56a Sync BuildConfiguration with project PropertyGroups
Commit migrated from https://github.com/dotnet/corefx/commit/758a0e16e8c5af8741d14043f4bef1d15a79a377
2017-02-03 08:34:24 -08:00
Eric St. John f9d5dbf3fe Fix legacy build configurations
Commit migrated from https://github.com/dotnet/corefx/commit/48680c23d9669bd0735a8b374c3e459a5406eef8
2017-02-03 08:32:14 -08:00
Tarek Mahmoud Sayed 7395af32ad Enable compiling the test projects against the configuration (dotnet/corefx#15743)
* Enable compiling the test projects against the configuration

The tests were compiled using the vertical configuration and not the best configuration picked from Configurations.props. this change is fix that and have all test projects configured accordingly.
This change ensuring netcoreapp runs successfully and we'll have another rounds later for other configurations like netfx, UAP...etc.

* Fix openssl test project on Linux distros

* Update the project configurations

* Update VS solution files

* update solution files


Commit migrated from https://github.com/dotnet/corefx/commit/e79912f8b77bc22abfd85e94b74c06e5d99e8381
2017-02-02 17:54:40 -08:00
Wes Haggard c4e17cd362 Update all solution files using solution generation tool
Commit migrated from https://github.com/dotnet/corefx/commit/a822a266821cf79df96cdd77d2a3d44f1510d9a0
2017-02-02 15:44:45 -08:00
Wes Haggard 4effd546bc Add ProjectGuids for all projects and empty configs for projects without BuildConfigurations
Commit migrated from https://github.com/dotnet/corefx/commit/d00bb5d18ac91189b12ed2fb7131d0ff62da9034
2017-02-02 15:02:57 -08:00
Tarek Mahmoud Sayed eb4147f182 Stop bin placing facade assemblies to the refs for netfx builds (dotnet/corefx#15700)
we were bin placing the facade assemblies to the ref folder during netfx build. this was causing a problem while building the tests as we'll get some types defined in the referenced facade assemblies and core libs.

Commit migrated from https://github.com/dotnet/corefx/commit/6c2087f755e240758150c6c692d5d8ddc67f2832
2017-02-01 16:34:49 -08:00
Eric St. John c61e84f6ec Clean up desktop Configurations
Remove all cruft from projects related to building desktop configs which
now build in standard repo.


Commit migrated from https://github.com/dotnet/corefx/commit/93b36cc273391a40552613800b6fdaa8685179ae
2017-01-31 19:25:30 -08:00
Eric St. John 60359ed705 Make netfx build work
This fixes all src and ref projects to build when TargetGroup=netfx.


Commit migrated from https://github.com/dotnet/corefx/commit/44df137ce0a9e38883d8f9a1149bdf01e54c8956
2017-01-31 18:43:08 -08:00
Eric St. John 95a7c07d4b Fix configurations for UAP
These changes enable TargetGroup=UAP to build completely.


Commit migrated from https://github.com/dotnet/corefx/commit/17fdb439c50f4aa66a99f9b5549e9db923331e40
2017-01-31 06:27:49 -08:00
Eric StJohn a818efa124 Merge pull request dotnet/corefx#15616 from ericstj/buildMultipleConfigurations
Build multiple configurations

Commit migrated from https://github.com/dotnet/corefx/commit/ee7052769c863bebe22e281a7f77113d895c0386
2017-01-30 15:22:26 -08:00
Eric St. John 2ef0e9bfd8 Sync PropertyGroups and BuildConfigurations
Commit migrated from https://github.com/dotnet/corefx/commit/7e4792af39bd7faba20dd3390b411f3afaee3c66
2017-01-30 13:23:56 -08:00
Stephen Toub 7074546ab3 Merge pull request dotnet/corefx#15631 from stephentoub/sts_array
Use ArrayPool for CurlHandler's send transfer state

Commit migrated from https://github.com/dotnet/corefx/commit/fb4862b895086b074aef1e94bdedd0cf65bad10f
2017-01-30 13:19:13 -05:00
Stephen Toub dd818f999f Use ArrayPool for CurlHandler's send transfer state
When sending request data from something other than a byte[], CurlHandler allocates a buffer to transfer data from the request to libcurl, typically 16K (unless the request content is known to be smaller than that).  We can use a buffer from ArrayPool for that.


Commit migrated from https://github.com/dotnet/corefx/commit/6e4d5a1dbac460af9df29e2f3c839c42c503d8ff
2017-01-30 12:08:18 -05:00
Stephen Toub a8bbd7d8fe Remove ReadOnlyStream allocation from CurlHandler
CurlResponseStream is already read-only, so we don't need StreamContent wrapping it with another stream.  That just adds another allocation and another layer of indirection.


Commit migrated from https://github.com/dotnet/corefx/commit/b4863dac2851047b40c8be435fa7207e7e66ab75
2017-01-30 08:44:08 -05:00
Stephen Toub f940c093c7 Change HttpClient timeout test to use loopback server
Shorten test duration from 40 seconds to .5 seconds


Commit migrated from https://github.com/dotnet/corefx/commit/e323ff698267e22df01cb10beb49fa24eecebcce
2017-01-26 19:22:02 -05:00
Ian Hays 84438d0a3b Merge pull request dotnet/corefx#15481 from ianhays/nettest_timeouts
Increase timeouts for some failing Net tests

Commit migrated from https://github.com/dotnet/corefx/commit/076bcc22dce00936dd2e16e4dbb740f1198a9313
2017-01-26 12:47:29 -08:00
Justin Van Patten ab4379dfdf Include StringBuilderCache.cs under ProductionCode dir in HttpClient unit tests (dotnet/corefx#15498)
Commit migrated from https://github.com/dotnet/corefx/commit/73ba4c2e76fad8a34e082b81251fd96b39b761b8
2017-01-25 19:47:41 -07:00
Ian Hays 3cebd64914 Increase timeouts for some failing Net tests
These two tests are/were failing intermittently from hitting their timeouts. We can increase those timeouts to a significantly higher value without taking away from the test's value.


Commit migrated from https://github.com/dotnet/corefx/commit/fcc9f8023490f07a82886cf504f754dc24bc4b9b
2017-01-25 12:15:26 -08:00
Stephen Toub 816312f896 Fix typo in HttpClient private method name
Commit migrated from https://github.com/dotnet/corefx/commit/cede7ef5c23698d0fabc7d24c494fb01f4e03ea8
2017-01-25 07:19:43 -05:00
Stephen Toub d6e3d70ab1 Address PR feedback
Commit migrated from https://github.com/dotnet/corefx/commit/2712445de889b2e874d8940562e0b4d22fc49071
2017-01-24 17:20:48 -05:00
Stephen Toub 2f9c7e9423 Add debugging environment variable to trace curl messages to stderr
Commit migrated from https://github.com/dotnet/corefx/commit/752141267d38725103bac128b78490f8fade0d7e
2017-01-24 16:30:10 -05:00
Stephen Toub bec0954d54 Avoid unnecessary Uri parsing/allocation when no redirection happened
Commit migrated from https://github.com/dotnet/corefx/commit/c4acd798bc769ac795b6f61bd948b75f0269da09
2017-01-24 16:30:10 -05:00
Stephen Toub 6b8318a0ee Avoid duplicate calls to GetValuesAsStrings
Commit migrated from https://github.com/dotnet/corefx/commit/0afc1d93a0c62b8f6924d79a1763b124fbd7f15a
2017-01-24 16:30:10 -05:00
Stephen Toub bb29cec104 Avoid empty array allocation in GetValuesAsStrings
Commit migrated from https://github.com/dotnet/corefx/commit/aaf4d1110f32812d3273f8884fac6581a0a69474
2017-01-24 16:30:10 -05:00
Stephen Toub 683dab1c53 Avoid string concatenation in NameValueHeaderValue
Commit migrated from https://github.com/dotnet/corefx/commit/d75ae47f3d5325f69f1c7a1dfed8a13135fc20a2
2017-01-24 16:30:10 -05:00
Stephen Toub 919abd8dc2 Use StringBuilderCache to avoid allocations in Header ToStrings
Commit migrated from https://github.com/dotnet/corefx/commit/ee3e8a9069a655123967b2f6529e89e0a25ce6f0
2017-01-24 16:30:10 -05:00
Stephen Toub 7427dc3679 Better handle synchronously completed request content ReadAsStreamAsync
Regardless of whether we already had a content stream, we were allocating a closure object on every call to the transfer function.

And for a common case of ReadAsStreamAsync completing synchronously (as it does with StreamContent), we were unnecessarily allocating several tasks as well as a delegate.  We can instead add a fast path that does the logic synchronously when the task completes synchronously.


Commit migrated from https://github.com/dotnet/corefx/commit/8b847350441571695c00d182c692ff84c3346be2
2017-01-24 16:30:09 -05:00
Stephen Toub 313cb8cd9d Add CurlResponseStream Begin/EndRead overrides
In case these are used, they should direct to the ReadAsync override rather than using the base implementations that queue a work item to call Read (which in turn calls ReadAsync and blocks).


Commit migrated from https://github.com/dotnet/corefx/commit/3d8cd790ef02a3b9ee9dd177cc7a7fd6ab899851
2017-01-24 16:30:09 -05:00
Stephen Toub fcf8cf1fb1 Fix header parser bug to pass in correct span
We were erroneously allocating new strings for known headers due to passing in the wrong span.


Commit migrated from https://github.com/dotnet/corefx/commit/7cf37ee4daf1758266dacfe8de361d169269804a
2017-01-24 16:30:09 -05:00
Stephen Toub 3e29168b07 Use COPYPOSTFIELDS for ByteArrayContent POST content in CurlHandler
Commit migrated from https://github.com/dotnet/corefx/commit/4bf9bd067c55b17f6efc914a9cddff6d8ee8232c
2017-01-24 16:30:09 -05:00