Commit Graph

250 Commits

Author SHA1 Message Date
John Luo 6912dda560
Add gRPC interop tests (again) (#20069)
* Revert "Revert "Add gRPC interop tests (#17040)" (#20047)"

This reverts commit 236dcd9fbe.

* Fix daily and quarantine Helix runs

* Cleanup
2020-03-23 13:29:50 -07:00
Ryan Rowse ec10429430
Remove PortablePdbReader except trace cleanup (#19957)
* Remove PortablePdbReader except trace cleanup

Co-authored-by: Rowse <ryan.rowse@jbtc.com>
2020-03-23 11:46:50 -07:00
Kevin Pilch 236dcd9fbe
Revert "Add gRPC interop tests (#17040)" (#20047)
This reverts commit 8afb78fb95.
2020-03-21 06:04:28 +00:00
James Newton-King 8afb78fb95
Add gRPC interop tests (#17040)
* WIP add interop tests

* Clean up

* Move test project into build infrastructure

* Clean up

* Remove hardcoded paths

* Clean up

* Fix build

* Add copyright notices

* Update azure template

* Fix build

* Fix build?

* Fix build?

* Add gRPC interop tests to CI

- Convert to using references managed by build infrastructure
- Use produced AspNetCore.App shared framework
- Save server logs
- Dynamically bind to ports
- Ensure InteropWebsite is built in the same configuration as the test project

* Cleanup

* Rebase fix

* Include tests assets in build directory for Helix

* Incorporate changes in ProcessEx

* Include Grpc test in regular build

* Fixup

* Test

* exe doesn't always exist

* Capture logs on helix

* Maybe this will work

* There are two application started messages

* Derp

* Cleanup

* Update directory

* Add interop tests to more pipelines

* mkdir

Co-authored-by: John Luo <johluo@microsoft.com>
2020-03-20 19:32:45 -07:00
James Newton-King 84269f3894
Use resettable awaitable in flow control (#19783) 2020-03-18 15:27:49 +13:00
github-actions[bot] 99c9b8ace1
Sync shared code from runtime (#19918)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2020-03-17 16:48:02 +00:00
James Newton-King 92e98b7ede
Read server response in Http2ConnectionBenchmark (#19694) 2020-03-10 15:50:16 +13:00
James Newton-King cd6e6ae0bc
Reuse Http2OutputProducer.ProcessDataWrites task (#19695) 2020-03-10 15:45:24 +13:00
John Luo 9f56862320
Build aspnetcore for win-arm64 (#19317)
* Build for win-arm64

* Missed file

* Disable Selenium tests on arm64

* Include installers in the uploaded artifacts
2020-03-06 14:47:29 -08:00
github-actions[bot] e886169745
Sync shared code from runtime (#19636)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2020-03-06 10:08:04 -08:00
msftbot[bot] 557bcd9ec5
readme update (#19553)
Co-authored-by: Justin Kotalik <jukotali@microsoft.com>
2020-03-05 18:50:24 +00:00
James Newton-King 5aa86873c3
Add HTTP/2 HPack static compression (#19521) 2020-03-05 17:08:53 +13:00
msftbot[bot] 648d9e37a9
Fixed Typo in UrlDecoder.cs (#19565) 2020-03-04 18:18:07 +00:00
Justin Kotalik cda762685a
Allow cert file and private key file to be passed in (#19477) 2020-03-03 20:42:46 -08:00
Chris Ross 21068e0a45
Update shared code license headers (#19518) 2020-03-03 09:57:24 -08:00
James Newton-King b1a45eb809
Update BenchmarkDotNet and add Http2Connection benchmark (#19482) 2020-03-03 17:17:06 +13:00
James Newton-King f34e8128c7
Eliminate HTTP2 HPack enumerator allocations (#19393) 2020-03-03 12:37:34 +13:00
Ben Adams 07ce5862b2
Eliminate range checks from ConcatAsHexSuffix + Instrinsics (#18406) 2020-02-26 13:30:45 -08:00
Hao Kung 4498058343
[Helix] Shared framework support + Templates tests (#19177) 2020-02-26 12:55:41 -08:00
Ben Adams 4e18bca0a6
Remove unsafe use ASCII.GetBytes for WriteAscii (#18404)
* Use ParallelBitExtract for EncodeAsciiCharsToBytes

* Use ASCII.GetBytes

* Use span overloads

* Betterize

* Remove old comment
2020-02-26 00:23:18 +00:00
Günther Foidl a29bacc171
Removed usage of BMI2 pdep with SSE2 alternative (#19009)
* SSE2 alternative to BMI2 ParallelBitDeposit

* Codegen tuning

* Keep zero vector in register

* Better 64-bit BMI2 alternative

* Removed BMI2
2020-02-26 00:22:11 +00:00
Justin Kotalik 78ce7b6dd6
Sync with runtime (#19314) 2020-02-25 09:13:11 -08:00
Justin Kotalik d8b6823111
Introduce multiplexed bedrock types (#17213) 2020-02-24 17:56:31 -08:00
John Luo 2f6cdcf667 More merge fixes 2020-02-20 21:58:16 -08:00
John Luo 793857f778
Merge branch 'master' into johluo/migrating-extensions 2020-02-20 18:22:54 -08:00
Chris Ross 04e8b01c2f
Tratcher/syncruntime (#19206)
* Consume the internalized System.Net.Quic sources (#19156)

* Consume the internalized System.Net.Quic sources

* More changes from rebase

* Remove Console.WriteLine

* Additional code sync
2020-02-21 02:21:30 +00:00
John Luo 5f9f1ce183 Merge branch 'master' into johluo/migrating-extensions 2020-02-20 16:44:06 -08:00
John Luo 7d1f5d8c0b Updates for extensions migrations
- Multi-target ObjectPool
- Move Embedded.Manifest.Task.Internal.Entry to the public namespace
- Remove ref assemblies from AspNetCore.Testing
- Skip TestPathUtilitiesTest since it's a pattern we want to migrate away from
- Fix FileProviders.Abstractions version in Embedded.*.nuspec
- Add workarounds for project references to FileProviders.Embedded
2020-02-20 14:00:29 -08:00
Stephen Halter 88073f86ff Merge branch 'release/3.1' into master 2020-02-18 13:46:51 -08:00
John Luo 25b41ef79f Merge branch 'master' of dotnet/extensions 2020-02-15 01:17:30 -08:00
Chris Ross 1dc31a7613
Sync script changes from the runtime repo (#19062)
* Sync script changes from the runtime repo #18943

* Additional change
2020-02-14 19:59:35 +00:00
Chris Ross e9e6b53526
Restructure shared http code (#18967)
* Restructure shared runtime code

* More qpack

* Header field

* HttpSys tests

* Casing
2020-02-12 18:07:32 +00:00
Justin Kotalik 9733704aea
Update shared code for HTTP/2 and HTTP/3 (#18958) 2020-02-11 14:25:46 -08:00
Justin Kotalik 6042fab581
Replat on HTTP/3 changes, fixing up minor nits to be compatible with h3-25 (#18912) 2020-02-11 11:17:42 -08:00
Günther Foidl aa7804c247
Don't mutate strings in Kestrel (#17556)
* Removed mutating of string-contents in BCryptHandle

* Revert "Removed mutating of string-contents in BCryptHandle"

This reverts commit 5ae80c2834471baf34d1e5a05a42e3cce1ff02d7.

This is a .NET STandard 2.0 project, so no span is available by default. I think it's not worth it to add a reference to System.Memory-package just for this change.

* Better perf for StringUtilities.TryGetAsciiString

* Removed mutating of created string from HttpUtilities

* Use static readonly span-actions as this gives a boost due to not having a null check for the compiler generated cached delegate

* Debug Asserts

* PR Feedback
2020-02-10 22:21:07 +00:00
Justin Kotalik 1daebd1722
Replat on System.Net.Quic (#18689) 2020-02-07 10:43:08 -08:00
Edward Neal e7ea31b1c7
Allow opt-out from client certificate root checking (#15029)
* Added a new property, ValidateCertificateChain

This aligns the code with README.md, and enables chained certificate authentication to work in Azure App Service (which won't have the client certificate's root in its trust store)

* Updated reference assemblies

New ValidateCertificateChain property was missing from /ref - hadn't updated it, so automatic test was failing

* Replaced the broad property which disables certificate chain validation with a granular list of trusted issuers

Also updated documentation to remove the unused property and to indicate that it isn't possible to validate half of the chain from the OS' trust store, and half from the private root store

* Swapped property access for an AddRange call

* Updated reference assembly

* Added certificate tests

Three test cases:
- Untrusted client certificate should fail, as it does now.
- Client certificate which is part of a chain with an untrusted root but a trusted issuer should fail, since the chain as a whole isn't trusted.
- Client certificate which is part of a fully-trusted chain should pass.

Also noticed that there were a couple of issues in CreateServer, where the certificate revocation flags weren't being set properly.

Finally, the csproj was referring to a folder name ("test\Certificates") which didn't exist. It looks like the folder was renamed to "TestCertificates", so I've update the project to match.

* Update Microsoft.AspNetCore.Authentication.Certificate.netcoreapp.cs

* Reverting change of Tests csproj, which was blocking certificate tests

* Forgot to add certificates to the shared source root, so tests were failing

* Updating following code review

Replaced custom logic with a new ChainTrustValidationMode property. Updated reference assemblies

* Changed tests to account for new property

* Updated certificates for PR tests

* Updated certificates

Updating all new certificates to avoid using the alternate signature algorithm

* Dummy checkin

Compilation errors coming from CertificateTests.cs, performing this checkin to test whether or not they're limited to a specific build.

* Following up typo corrections

Commit 116799fa70 in upstream repo changed a variable name, causing compile errors on PR build. Fixing that

Co-authored-by: Hao Kung <HaoK@users.noreply.github.com>
2020-02-06 15:15:38 -08:00
Pranav K 6d83fee518
Only download chrome driver for selenium (#18676)
* Only download chrome driver
2020-01-31 16:09:07 -08:00
Nick Kirby d6cb79e64a
Use FirstSpan instead of calling First.Span (#18615) 2020-01-31 12:51:40 -08:00
Kevin Pilch 91d17f6c2d
Update links from aspnet/AspNetCore-Internal -> dotnet/aspnetcore-internal (#18540) 2020-01-23 12:21:06 -08:00
dotnet-maestro-bot 2dc908d502 [automated] Merge branch 'release/2.1' => 'release/3.1' (#18396)
* [Platform] Detect and fix certificates with potentially inaccessible keys on Mac OS (2.1) (#17560)

* [Https] Detects and fixes HTTPS certificates where the key is not guaranteed to be accessible across security partitions

* Fix dotnet dev-certs https --check

* Update logic for detecting missing certs

* Fix security command

* Update warning logic

* Check that the key is accessible in Kestrel

* Add correct link to docs

* Update src/Tools/dotnet-dev-certs/src/Program.cs

Co-Authored-By: Daniel Roth <daroth@microsoft.com>

* Update src/Tools/dotnet-dev-certs/src/Program.cs

Co-Authored-By: Daniel Roth <daroth@microsoft.com>

* Add test for 2.1

* Update src/Tools/dotnet-dev-certs/src/Program.cs

Co-Authored-By: Chris Ross <Tratcher@Outlook.com>

* Address feedback

* Fix non-interctive path

* Fix tests

* Remove a couple of test from an unshipped product

* Check only for certificates considered valid

* Switch the exception being caught, remove invalid test

Co-authored-by: Daniel Roth <daroth@microsoft.com>
Co-authored-by: Chris Ross <Tratcher@Outlook.com>

* Fix patchconfig merge (#18389)

* Fix flaky HubConnectionHandler test (#18391)

Co-authored-by: Javier Calvarro Nelson <jacalvar@microsoft.com>
Co-authored-by: Daniel Roth <daroth@microsoft.com>
Co-authored-by: Chris Ross <Tratcher@Outlook.com>
Co-authored-by: Brennan <brecon@microsoft.com>
2020-01-17 08:30:12 -08:00
Javier Calvarro Nelson 8e5767bdf1 [Platform] Detect and fix certificates with potentially inaccessible keys on Mac OS (3.1) (#17581)
* [Platform] Add logic to dotnet-dev-certs to detect and fix certificates with inaccessible keys on Mac OS

* Update the docs link
2020-01-16 10:29:37 -08:00
Ryan Brandenburg 5dc2d6eafa Extend timeout and report failure to WarmUp for template tests (#16759)
* Extend timeout and report failure to WarmUp for template tests

* Retry click events
2020-01-15 18:44:56 -08:00
James Newton-King df712cc4a9
Add HttpProtocol (#18049) 2020-01-16 13:35:47 +13:00
Maher Jendoubi 116799fa70 Contributing: Fixed some typos (#18331) 2020-01-14 08:58:52 -08:00
Chris Ross 17094a33c1 Suppress unused code warning in the shared test project (#18249) 2020-01-10 17:56:37 +00:00
Kahbazi 7d27ed93f7 Set argument if no option has found (dotnet/extensions#2822)
\n\nCommit migrated from 1513ad0854
2020-01-09 15:37:56 -08:00
Kevin Pilch 0517745c08 aspnet/AspNetCore -> dotnet/aspnet
Except aspnet/AspNetCore-Internal.
2020-01-08 16:40:11 -08:00
Kevin Pilch f3215fd881 aspnet/AspNetCore-Tooling -> dotnet/aspnetcore-tooling 2020-01-08 16:40:11 -08:00
Martin Costello b6b5319bab Use UnixEpoch for cookie deletion (#18126)
Use the DateTimeOffset.UnixEpoch field instead of a new DateTime value when deleting cookies.
2020-01-04 12:39:53 -08:00