Commit Graph

243 Commits

Author SHA1 Message Date
Kahbazi bff78bdd11 Remove use of null-conditional operator for logger (#6579) 2019-06-18 11:18:43 -07:00
Justin Kotalik 213f6efd30 Make CORS functional tests select different ports (#11063)
* fxup some slns
- remove samples
2019-06-18 10:00:16 -07:00
Dylan Dmitri Gray c24c4cac01
Dylan/request queue di (#11167)
Decoupled Middleware from QueuePolicy
2019-06-13 16:36:21 -07:00
Dylan Dmitri Gray 844530dd54
Overhead Benchmark for Request Throttling (#10907)
* initial implementation; no tests

* benchmark project

* Better benchmarks

* overhead test for congested queue

* Addressed feedback
2019-06-12 17:22:14 -07:00
dotnet-maestro[bot] a6bc6ce23d [master] Update dependencies from 3 repositories (#10939)
* Update dependencies from https://github.com/aspnet/EntityFrameworkCore build 20190610.7
- Microsoft.EntityFrameworkCore.Tools - 3.0.0-preview7.19310.7
- Microsoft.EntityFrameworkCore.SqlServer - 3.0.0-preview7.19310.7
- dotnet-ef - 3.0.0-preview7.19310.7
- Microsoft.EntityFrameworkCore - 3.0.0-preview7.19310.7
- Microsoft.EntityFrameworkCore.InMemory - 3.0.0-preview7.19310.7
- Microsoft.EntityFrameworkCore.Relational - 3.0.0-preview7.19310.7
- Microsoft.EntityFrameworkCore.Sqlite - 3.0.0-preview7.19310.7

Dependency coherency updates
- Microsoft.AspNetCore.Analyzer.Testing - 3.0.0-preview7.19309.2 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.AspNetCore.BenchmarkRunner.Sources - 3.0.0-preview7.19309.2 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.ActivatorUtilities.Sources - 3.0.0-preview7.19309.2 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Caching.Abstractions - 3.0.0-preview7.19309.2 (parent: Microsoft.EntityFrameworkCore)
- et cetera

* Update dependencies from https://github.com/aspnet/AspNetCore-Tooling build 20190610.2
- Microsoft.NET.Sdk.Razor - 3.0.0-preview7.19310.2
- Microsoft.CodeAnalysis.Razor - 3.0.0-preview7.19310.2
- Microsoft.AspNetCore.Razor.Language - 3.0.0-preview7.19310.2
- Microsoft.AspNetCore.Mvc.Razor.Extensions - 3.0.0-preview7.19310.2

* Update dependencies from https://github.com/aspnet/Blazor build 20190610.1
- Microsoft.AspNetCore.Blazor.Mono - 0.10.0-preview7.19310.1
2019-06-10 23:12:23 -07:00
Justin Kotalik d7fc06af5e
Move IServerVariablesFeature to Http.Features (#11007) 2019-06-10 21:16:36 -07:00
Arthur Vickers 4d1262c39b Small fixes for DatabaseErrorPageMiddleware
The main change here is to also allow public `HasTables` to be found. This will be removed once we get the new EF merged.

The change to the migration makes it align with what we would generate, but I don't think has any functional impact on the tests.

See also https://github.com/aspnet/EntityFrameworkCore/pull/16024 which (I really hope!)fixes the other failures once it makes it here.
2019-06-10 16:09:13 -07:00
Ben Adams 37e6ad7e12 Improve HostFiltering perf (#9359) 2019-06-10 09:32:00 -07:00
Nate McMaster 41ce223c1c
Replace Internal.AspNetCore.Sdk with Microsoft.DotNet.Arcade.Sdk (#10674)
* Update build.cmd to install .NET Core into $repoRoot/.dotnet instead of $repoRoot/.dotnet/x64
* Move restore sources from build/sources.props into eng/Versions.props (following arcade conventions)
* Remove usages of RuntimeFrameworkVersion in tests and build
* Update Blazor VSIX to use Arcade VSIX tools
* Rename Common.Tests to IIS.Common.TestLib and make it a test asset
* Remove custom versions props for ANCM installer code
* Remove duplicate references to xunit and remove usages of IsTestProject
* Remove duplicate references to Internal.AspNetCore.Analyzers
* Import Arcade.Sdk props and targets and remove custom versioning props
* Remove references to Internal.AspNetCore.Sdk
* Rename PackageLicenseType => PackageLicenseExpression
* Remove dependency on tasks in Internal.AspNetCore.Sdk, add ref to Internal.AspNetCore.BuildTasks as a temporary workaround
* Use Arcade's nuspec support
* Rename SignalR.Client.FunctionalTests to SignalR.Client.FunctionalTestApp
* Fixes for changes to property evaluation order
* Update BaseLineGenerator to netcoreapp3.0
* React to changes in evaluation order in RPM files and quirks in using <Exec> instead of <Run>
* Update Microsoft.Extensions.ApiDescription.Server to react to changes in Arcade packaging
* Workaround aspnet/AspNetCore#11009
2019-06-07 17:19:41 -07:00
Arthur Vickers b5adc6b156 Move Database Error Page tests to SQLite
In an attempt to make them more reliable.

See also https://github.com/aspnet/EntityFrameworkCore/issues/15997
2019-06-07 16:31:29 -07:00
Kahbazi d3d6e0e709 Ensure MaxConcurrentRequests is a positive number (#11003) 2019-06-07 15:42:09 -07:00
Chris Ross 3dc2be22c5
Static Files cleanup (#10996) 2019-06-07 12:46:10 -07:00
Kahbazi 1dff8cbdbc Add OnRejected to Request Throttling middleware (#10817)
* Add OnRejected to Request Throttling middleware

* Remove IApplicationBuilder extension with option

* Add test

* Add summary for OnRejected
2019-06-07 11:15:48 -07:00
Kahbazi ba8c6ccf6f Inject ILogger to RequestLocalization Middleware (#10946) 2019-06-06 15:38:02 -07:00
Smit Patel bb9ba122c1 Target netstandard2.1 in HealthChecks.EFCore 2019-06-04 13:26:20 -07:00
Justin Kotalik 45b0d0d0de
Save condition backcollection between runs (#10776) 2019-06-03 22:31:38 -07:00
Arthur Vickers 173cf1786e Identity/MusicStore/ErrorPage test re-anabling
Fixes #10672 #7925 #10670

Also, moves MusicStore tests to SQLite for better reliability
2019-06-02 09:31:24 -07:00
David Fowler 400835e0b4
Remove Transport.Abstractions from existence (#10722) 2019-06-01 17:22:47 -07:00
Hao Kung b75b892eac
Add CertificateAuthentication (#9756) 2019-05-31 22:49:40 -07:00
Dylan Dmitri Gray bd4b843678
Dylan/queue limit (#10590)
* Added queue limit, extra requests are 503'd

* Combined counters into an atomic `TotalRequests`

* small safety fix

* Updated log messages; simplified flow
2019-05-31 14:53:19 -07:00
Arthur Vickers 9ebabc1337 Update Identity tests for EF breaking changes
Specifically:
* Removal of Relational()
* Query changes

There is some kind of flakiness still impacting these tests. It may be a race condition in EF query generation, or it may be an issue with the test infrastructure

Also, one database error page test is currently disabled.
2019-05-30 19:43:31 -07:00
Hao Kung 0b54783877
[Helix] Try running node services tests on helix again (#9046) 2019-05-29 21:15:29 -07:00
Alessio Franceschelli abd70031cb HeaderPropagation middleware: small cleanup
- Removed MessageHandler DI registration as not needed.
- Fixed two parameters XML descriptions.
- Cleaned up usings in the example.
2019-05-29 20:06:20 -07:00
Nate McMaster e39b4b5c3e
Rename CacheEntryHelpers .cs to CacheEntryHelpers.cs (#10633) 2019-05-29 17:58:57 -07:00
Dylan Dmitri Gray 9969e99ef4
Dylan/request throttle (#10413)
* request throttling -- initial implementation

* prevented semaphore leak; added xml docs

* small doc fixes

* reference document

* Added internals folder, added structured logging,

* removed typo'd dependency

* no default MaxConcurrentRequests; other polishing

* renamed SemaphoreWrapper->RequestQueue; cleanup

* moved SyncPoint; prevented possible semaphore leak

* adjusting feedback

* regen refs

* Final changes!
2019-05-27 14:46:14 -07:00
Nate McMaster 01a8798936
Update links and disable warnings related to tests that don't work in Helix (#10427) 2019-05-21 16:39:06 -07:00
Dylan Dmitri Gray 55555bedd5
Merge pull request #10275 from aspnet/dylan/requestQ
start of request queue
2019-05-20 17:02:47 -07:00
Dylan Dmitri Gray 54e5b15c24 it's gone for good 2019-05-20 11:58:30 -07:00
Dylan Dmitri Gray 7ff5293177 added HttpsPolicy back 2019-05-18 18:31:31 -07:00
Dylan Dmitri Gray 68606a2d80 removed redundant HttpsPolicy dependency 2019-05-17 16:56:17 -07:00
Dylan Dmitri Gray 206c1e8a8a Removed error line 2019-05-17 14:37:16 -07:00
Dylan Dmitri Gray 5e85b3773b ready for final review 2019-05-17 14:27:06 -07:00
Alessio Franceschelli 320fadb756 HeaderPropagation Middleware: configuration per client (#10096)
* HeaderPropagation Middleware: configuration per client

* Renamed fields

* Renamed fields

* Fix sample

* Addressed feedback, cleaned up and added tests

* Addressed feedback on HeaderPropagationHttpClientBuilderExtensions

* Updated reference assemblies
2019-05-17 14:16:44 -07:00
Chris Ross b670246e3d
Add ForwardedHeaders to CreateDefaultBuilder #4135 (#10273) 2019-05-17 13:07:11 -07:00
Dylan Dmitri Gray 3e6f70d5e8 Justin fixed refs 2019-05-17 10:54:56 -07:00
Dylan Dmitri Gray 9363eff2a8 OrTimeout Extension 2019-05-17 10:40:19 -07:00
Dylan Dmitri Gray 04ce6ef4c8 IDisposable fix 2019-05-16 16:59:40 -07:00
Dylan Dmitri Gray ac305849e3 cleanup from PR feedback 2019-05-16 16:55:46 -07:00
Dylan Dmitri Gray 61f028ad32 Renamed project, cleaned sln file 2019-05-16 16:35:01 -07:00
Dylan Dmitri Gray 5956609846 start of request queue 2019-05-16 16:35:00 -07:00
Nate McMaster dc90e11c7a
Move obj and bin directories into repo root (#10063)
The Arcade SDK requires that the obj/ and bin/ folders be placed in the top-level artifacts/ folder of the repo. Although this PR does not complete our Arcade convergence, this is a step towards updating our repo to build with the Arcade SDK.

Changes:
* Set output path for build to artifacts/bin/$(ProjectName)/ 
* Set intermediate output path for build to artifacts/obj/$(ProjectName)/
* Cleanup .gitignore files (remove duplication between repo-root and tested gitignore files)
* Add code check which looks for project files that share the same name (could cause issues)
* Rename project files to have unique names (avoid race condition of build output)
* Update all locations which were hard-coded to expect bin/ and obj/ in the project directory
* Add overrides for tests which still assert test binaries exist in a given location relative to the source code
2019-05-15 13:44:55 -07:00
Nate McMaster 77e08c26d5
Replace all usages of RepositoryRoot with RepoRoot (#10267)
Preparing to adopt the Arcade SDK, which uses the shorter variable name instead
2019-05-15 12:00:19 -07:00
Mickaël Derriey 4a2bd2adbf Source server variables from IIS when running ANCM in-proc (#10022) 2019-05-15 08:26:29 -07:00
Bruno 124064ef47 Add option to limit domains on AddRedirectToWww (#9676) 2019-05-14 08:33:03 -07:00
Pranav K 3d79b9aa58
Add some caching to CORS (#9972)
* Add some caching to CORS
2019-05-13 11:52:16 -07:00
James Newton-King d5207af367
Improve TestServer support for Response.StartAsync (#10189) 2019-05-13 22:38:26 +12:00
Pranav K 8a3fdb4b21
Changes per PR comments 2019-05-11 06:22:19 -07:00
Pranav K 20982a947d
Add some caching to CORS 2019-05-11 05:43:44 -07:00
Nate McMaster b744814f06
Enhancements to Helix testing (#10007)
* Add Windows 7 and 8.1 testing on Helix
* Install SQL Server on-demand in Helix test queues
* Only install mssql on Windows runs
* Use exit /b
* Add targets to better support running helix locally
* Set maxretrycount to 2
* Handle IIS issues on win7/win8
* Make HelixPreCommand's fail the workitem
* Add a pre-generated test cert of IIS Express
* Update helix doc and ignore netsh script failures
* Fix bug in detecting Windows queues and disable Win 7 until we have queues ready
* Fix HttpSys functional tests on Helix
2019-05-10 15:04:16 -07:00
Ryan Nowak 0b590ff46f Fix #6764 EndpointConventionBuilder API review 2019-05-09 19:38:43 -07:00