Commit Graph
621 Commits
Author SHA1 Message Date
Jeremy Barton b978bc6f2c Merge remote-tracking branch 'dotnet/master' into master_to_applecrypto
Conflicts:
	netci.groovy
	src/System.Net.Security/src/System/Net/Security/SecureChannel.cs
	src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Unix/OpenSslX509Encoder.cs
	src/System.Security.Cryptography.X509Certificates/src/Resources/Strings.resx
	src/System.Security.Cryptography.X509Certificates/tests/Cert.cs
	src/System.Security.Cryptography.X509Certificates/tests/CollectionImportTests.cs
	src/System.Security.Cryptography.X509Certificates/tests/CollectionTests.cs
	src/System.Security.Cryptography.X509Certificates/tests/PfxTests.cs
	src/System.Security.Cryptography.X509Certificates/tests/X509StoreTests.cs


Commit migrated from https://github.com/dotnet/corefx/commit/5d7aec3e00afd35d0211b50c0630a1614a548726
2017-03-10 17:44:40 -08:00
Vance Morrison 68ac0b803f Merge pull request dotnet/corefx#16393 from lmolkova/dev/http_client_activity_part2
Http request instrumentation with Activity (correlation part2)

Commit migrated from https://github.com/dotnet/corefx/commit/896d79030ccf928b97d7e9faef230936db5f53d4
2017-03-03 13:06:37 -08:00
Jeremy Barton 74fbe34b84 Initial implementation of X509Certificates, HttpClient, and SslStream for macOS (dotnet/corefx#16445)
Broken by this change:
* A lot of TLS CipherSuites have no metadata defined.
* macOS does not support version skipping in TLS.  So `Tls | Tls12` is an invalid choice.

In this change:
General:
* All OSStatus related exceptions now look up the error message.

X509Certificates:
* X509Certificate moves to using SecCertificateRef from OpenSSL's X509.
* X509 metadata comes from a managed reader after being loaded by Security.framework,
due to the significant amount of data that has no public export in Apple's libraries.
* Significant code was factored out to be shared by OpenSSL and Apple implementations for X500DistinguishedName and X509Certficate2Collection.Find.
* Loading a PFX (or, rather, the private keys from a PFX) via Apple's platform
requires importing into a Keychain, and a Keychain requires a file on disk.
A temporary keychain is created during cert loading and erased when safe.
Like the perphemeral key load on Windows this can leak files due to
abnormal program termination.
* The X.509 My store for CurrentUser and LocalMachine are the default (user) and System keychains.
* The X.509 Root store is an interpretation of the Apple SecTrustSettings data.
* The X.509 Disallowed store hasn't been implemented yet, but should be a very small change.
* Other X.509 stores cannot be created due to keychain complexity.

HttpClient:
* Initialization no longer wakes up OpenSSL

SslStream:
* New implementation based on Apple SecureTransport.
* Currently has support for SNI (for AuthenticateAsClient)


Commit migrated from https://github.com/dotnet/corefx/commit/3b19899963606a34e1623e0926b90fe907197ee6
2017-03-01 14:45:41 -08:00
Liudmila Molkova b61bf18fe7 call SetEndTime before stopping activity
Commit migrated from https://github.com/dotnet/corefx/commit/0706536c55c8d5bc3daaf37dc4441ccc90063fdc
2017-03-01 13:47:17 -08:00
Liudmila Molkova 25e0dc0f22 enabling Activity for outgoing request if there is no parent activiy, always propagate if there is any activity
Commit migrated from https://github.com/dotnet/corefx/commit/1ee9ac6e4c76324cb191769c2e369abe4ea08f00
2017-03-01 13:38:50 -08:00
Liudmila Molkova 9957fca97a refactor DiagnosticsListener: enable Exceptions only and Stop only scenarios
Commit migrated from https://github.com/dotnet/corefx/commit/9815a34bdc5b1ec3d8add193736fc5c4419b4c32
2017-02-28 11:20:53 -08:00
Lakshmi Priya Sekar 6b7c4bcc93 Merge pull request dotnet/corefx#16450 from Priya91/net2
Activate/Deactivate tests according to issue status.

Commit migrated from https://github.com/dotnet/corefx/commit/adda1f0a0f139da77e1889a79375eaa74a8d61a8
2017-02-24 16:13:44 -08:00
Lakshmi Priya Sekar 3148d4ea84 Activate/Deactivate tests according to issue status.
Commit migrated from https://github.com/dotnet/corefx/commit/6257f450653381af91ca5ff097dab837426e91ef
2017-02-24 13:41:54 -08:00
Liudmila Molkova 36d902be09 mark Request/Respose events as deprecated, remove Propagate check
Commit migrated from https://github.com/dotnet/corefx/commit/573530cd049602f801d22f2b8abe8e72aee6a7c2
2017-02-23 17:15:14 -08:00
Liudmila Molkova dd7e241bfb Add Activity instrumentation
Commit migrated from https://github.com/dotnet/corefx/commit/76dabc67a537be2401e1e0db0dceae9acd652c9c
2017-02-22 15:53:23 -08:00
Liudmila Molkova 71720f52b1 Call DiagnosticListener.IsEnabled() to check if someone listens to
DiagnosticListener, send exception as separate event


Commit migrated from https://github.com/dotnet/corefx/commit/57a79e1065516060927405526040f9fd1a763c99
2017-02-22 10:22:39 -08:00
Steve Harter 4fc05a19f5 Improve CI: change Http test ActiveIssue(Windows) to (Any) (dotnet/corefx#16368)
Commit migrated from https://github.com/dotnet/corefx/commit/8bf03424d20922170572803fa3f3c17671e4d197
2017-02-21 18:24:25 -06:00
Lakshmi Priya Sekar a06f100925 Ignore curl error on failed proxy authentication.
Commit migrated from https://github.com/dotnet/corefx/commit/ad9d5e26477a57bac8a2362bed84f50bb1632a61
2017-02-17 18:51:09 -08:00
Steve Harter ad0d180aaa Fix Http test that randomly fails under Windows (dotnet/corefx#16241)
Commit migrated from https://github.com/dotnet/corefx/commit/3a71007e65e38b1b10b3e3c8ba5dc0803b9bf6ed
2017-02-16 17:14:08 -08:00
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
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
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
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
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 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
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
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
Lakshmi Priya Sekar 194dfd28d3 Respond to PR feedback.
Commit migrated from https://github.com/dotnet/corefx/commit/3ac884af42aac1bc5152f4b2ca0c0a8604a92d98
2017-01-23 13:36:54 -08:00
Lakshmi Priya Sekar d82c7740f6 Fix centos test failures in outerloop.
Commit migrated from https://github.com/dotnet/corefx/commit/76e105181d5e5dc2d1f12b5e5b378a572809a000
2017-01-20 18:54:56 -08:00
Karthik Rajasekaran 4bbdadd88a Update project configuration and sln files (dotnet/corefx#15182)
* Add ValidateVSConfigurations

* Update project config and sln files.


Commit migrated from https://github.com/dotnet/corefx/commit/f6ab339f446e37505f93ef9f430801fa1dcc05b8
2017-01-17 14:31:23 -08:00
Alex Perovich 573869c47f Automated update of ns1.7->ns2.0 and nca1.1->nca2.0
Commit migrated from https://github.com/dotnet/corefx/commit/1f8b5264a8156f91c48b2dc344d5410ee6f574cb
2017-01-10 16:20:42 -08:00
Wes Haggard 848b9b15c0 Update documentation to include how to configure builds
Updates the documentation as well as config.json file with information on
RuntimeOS and the different ways to configure BuildConfiguration.

Cleans up InputOSGroup as it is no longer needed.

Cleans up TargetOS and makes it scoped only to the test command line generation

Add debugging information for TargetOS property for test runs.


Commit migrated from https://github.com/dotnet/corefx/commit/32bb7e8b9a472c8ea97537ce0a94511b4c7ca821
2017-01-09 13:32:45 -08:00
Jose Perez Rodriguez 846d8ab24b Merge branch master into dev/eng
Commit migrated from https://github.com/dotnet/corefx/commit/44b68e694948065c1b61457cec125d3d64c1fa22
2017-01-05 14:03:56 -08:00
dotnet-bot f6c2208f04 Update CoreClr, CoreFx, ProjectNTfs to beta-24904-02, beta-24904-01, beta-24904-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/81832da776d1502b0a68219cba6b8cbaf9399ed6
2017-01-04 09:48:26 +00:00
Eric Mellino dd3d24027d Add Configurations.props files for test projects, include tests in build.proj (dotnet/corefx#14663)
* [WIP]Created src\tests.proj which is mostly building all tests

* Convert test project .builds to Configuration.props

* Fix test paths in targetingpack.props, move test-runtime.

* Move test-runtime under external.
* Rename RuntimeDir->RuntimePath in targetingpacks.props and
  Xunit.Runtime.depproj.
* Remove test-runtime project.json from the SupplementalTestData list in
  dir.targets.

* Remove XUnit.Runtime.depproj from tests.proj

* Convert test .builds files to Configuration.props.

* Revert "Convert test project .builds to Configuration.props"

This reverts commit dotnet/corefx@1efc4d9a02.

* Fix compilation error in System.Collections.Concurrent.Tests

* Fix condition in System.Collections ref project

* Fix two more Collections test project issues

* Add Configuration.props for System.Collections ref

* Fix TargetGroup conditions in System.Collections.Tests.csproj.

* Fix compilation problems with NameResoltion.Pal.Tests.

* Fix compilation errors in SqlClient Stress tests

* Fix IO.Compression.Performance tests compilation

* Fix compilation and configurations of System.Net.Http.Unit.Tests.csproj.

* Fix compilation issues in System.Private.Xml.Linq tests

* Disable XsltScenarios.Tests project, like it was before.

* Fix missing DefineConstants for System.Linq ref project.

* Fix compilation of System.Net.Primitives.Pal.Tests.csproj

* Fix compilation of System.Net.Primitives.UnitTests.Tests.csproj

* Fix compilation of System.Security.Cryptography.Cng.Tests.csproj.

* Fix compilation of System.Net.Primitives reference project

* Fix compilation of System.Net.Security ref project

* Fix compilation of SYstem.Net.Security.Tests.csproj

* Fix configuration of X509Certificates ref project

* Fix compilation errors in System.Net.Http.Unit.Tests.csproj

* Fix Common.Tests.csproj

* Fix System.Diagnostics.Debug.Tests.csproj

* Fix Microsoft.Win32.Registry.Tests.csproj

* Add runtime.native.System.Data.SqlClient.sni to external project

* Fix System.Diagnostics.TraceSource.Tests.csproj

* Fix System.IO.Compression.Performance.Tests.csproj

* Move supplemental test data into test-runtime/project.json

* Fix System.IO.FileSystem.Watcher.Tests.csproj

* Fix System.IO.FileSystem.Tests.csproj

* Fix System.IO.Pipes.AccessControl.Tests.csproj

* Fix System.IO.MemoryMappedFiles.Tests.csproj

* Fix System.IO.Pipes.Tests.csproj

* Fix System.Json.Tests.csproj

* Add missing supplemental test data for net security tests

* Fix resource names in System.Xml.XPath.XDocument.Tests.csproj

* Fix Assembly.Location test case

* Fix assembly loading paths in DefaultLoadContextTest.cs

* Fix issues in System.Runtime.Loader.Tests.csproj

* Fix RootNamespace in ResourceManager tests

* Mark OpenSSL tests as unsupported on Windows

* Fix RootNamespace in System.Xml.XPath.Tests.csproj

* Fix RootNamespace in System.Xml.XPath.XmlDocument.Tests.csproj

* Fix System.IO.Compression.Tests.csproj

* Add missing Configurations.props files for System.Net projects

* Fix compilation issues in WinHttpHandler tests

* Add fixes and a workaround for Linq.Expressions tests

* Add workaround for System.Runtime.Tests

* Use extension methods explicitly in Ref.Emit tests

* Hook up test projects into build

* Fix build configuration of Crypto.Primitives for netcoreapp

* Enable VB tests outside Windows

* Enable Mail tests outside windows

* Don't run Unsafe tests outside windows

* Don't build Unsafe tests outside Windows

* Don't build WebServer project outside of Windows.

* Fix corerun path for Unix tests.

* Fix casing of 'Native' directory in NETCoreApp private pkgproj

* Remove runtime-specific stuff from Xunit.Runtime.depproj

* Move tests into a separate project ('tests.msbuild') which isn't built in build.proj

* Remove duplicate types from NameResolution.Pal tests

* Skip tests in a project if there is no compatible configuration.

* Include internal socket types only on Windows in NameResolution tests

* Manually fix S.R.InteropServices configurations

* Rename tests.msbuild -> tests.builds

* Manually fix System.Text.Encoding.Tests.csproj configuration

* Manually fix System.Threading.Tests configuration

* Manually clean up System.Runtime.Tests.csproj

* Fix System.IO.FileSystem.Tests configurations

* Manually fix System.Globalization.Tests configurations

* Manually fix System.IO.Pipes.Tests configurations

* Manually fix System.IO.Compression.Tests configurations

* Manually fix System.Runtime.Extensions.Tests configurations

* Manually fix System.IO.MemoryMappedFiles.Tests configurations

* Manually fix S.Diagnostics.Process.Tests configurations

* Manually fix System.ComponentModel.TypeConverter.Tests configurations

* Misc PR feedback.

* Use HostRunnerName instead of HostRunner in Process tests

* Fix configurations for S.ServiceProcess.ServiceController.Tests

* Revert to using ConfigurationErrorMsg to check if tests should be skipped.

Configuration still defaults to 'Debug' even if there is no valid configuration.


Commit migrated from https://github.com/dotnet/corefx/commit/2c0352ec38f9f6f602ae819f0cafb02c1908f137
2017-01-03 13:27:19 -08:00
dotnet bot db5f76dc34 Update CoreClr, CoreFx to beta-24903-03, beta-24903-02, respectively (dotnet/corefx#14819)
Commit migrated from https://github.com/dotnet/corefx/commit/c379ecd7f3b53ee00521b91c4e8421e15fe6178a
2017-01-03 10:58:17 -08:00
dotnet-bot 80435753bd Update CoreClr, CoreFx, ProjectNTfs to beta-24903-02, beta-24903-01, beta-24903-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/14a3a5b6c2dce0ea80209ef3c4f34d4c6d460177
2017-01-03 09:43:53 +00:00
dotnet-bot d45b4d8506 Update CoreClr, CoreFx to beta-24902-03, beta-24902-02, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/ecb70894ab9e82f08fb8afcfe01e1f663f10a2e5
2017-01-02 17:29:07 +00:00
dotnet-bot d3b238de6a Update CoreClr, CoreFx, ProjectNTfs to beta-24902-02, beta-24902-01, beta-24902-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/d52cb08c73cdf51b363d721cfbd3299347eb6a03
2017-01-02 09:45:03 +00:00
dotnet bot a92d96c1a8 Update CoreClr, CoreFx, ProjectNTfs to beta-24829-03, beta-24829-02, beta-24829-00, respectively (dotnet/corefx#14755)
Commit migrated from https://github.com/dotnet/corefx/commit/3860fe87088c38e0093952ecfcc01f9cc01c628e
2016-12-29 11:22:00 -08:00
dotnet bot b4eb941d9a Update CoreClr, CoreFx, ProjectNTfs to beta-24828-03, beta-24828-03, beta-24828-00, respectively (dotnet/corefx#14743)
Commit migrated from https://github.com/dotnet/corefx/commit/24d0731401fa324f6f75ac711f966f488372f6c1
2016-12-28 14:32:38 -08:00
dotnet-bot 60a7566d99 Update CoreClr, CoreFx, ProjectNTfs to beta-24827-03, beta-24827-01, beta-24827-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/f7f3a2ed0b236af4d7e77cbeb4c170a5b9c3f69d
2016-12-27 19:42:49 -08:00
Jose Perez Rodriguez e5529a906d Make Test projects compile against the Targeting pack. (3/3 of the work) (dotnet/corefx#14534)
Commit migrated from https://github.com/dotnet/corefx/commit/c06e46913f93aa4d4eec880410c3edb4e5039639
2016-12-15 13:12:46 -08:00
dotnet-bot 5b05514dc1 Update CoreClr, CoreFx, ProjectNTfs to beta-24814-02, beta-24814-01, beta-24814-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/5e7220551ecf55c32227aa51a94113f82ff3e318
2016-12-14 09:32:55 +00:00
dotnet-bot 2265a63681 Update CoreClr, CoreFx, ProjectNTfs to beta-24813-01, beta-24813-02, beta-24813-01, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/ff7001d51c4263298b4790206edcde74f5d0ff39
2016-12-13 04:16:59 +00:00
dotnet-bot 7b26a7e899 Update CoreClr, CoreFx to beta-24811-03, beta-24811-02, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/f77687d070721a2e16d427236dba471e5641a22c
2016-12-11 17:25:16 +00:00
dotnet-bot 496e3fb9b2 Update CoreClr, CoreFx to beta-24811-01, beta-24811-01, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/311289fced622546cf385e5255684694f5161f3c
2016-12-11 03:39:39 +00:00
dotnet-bot 03ec1ebf0f Update CoreClr, CoreFx to beta-24810-04, beta-24810-03, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/9635d682c4a900e8031aea35ca6d3b66defb5009
2016-12-10 17:24:57 +00:00