Commit Graph

229 Commits

Author SHA1 Message Date
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
Ryan Nowak 24784d0681 Fix #10066 2019-05-09 13:44:16 -07:00
Nate McMaster 3dbbb2994c
Upgrade yarn and cleanup npm commands (#10054)
* Add yarn.lock file for NodeServices
* Remove references to 'npm install' (causes double-download of node modules) and replace npm commands in package.json with yarn for consistency
* Upgrade yarn to 1.15.2
2019-05-08 15:07:25 -07:00
Ryan Nowak e401f35b45
Header propagation sample and UX improvements (#9793)
Creating a sample for the header propagation package and some various
misc UX improvements based on building the sample.

A small list:
- allow duplicate inbound names
- de-dupe based on outbound names
- add sugar for configuration
- simplify pattern for transforming values
- add error message for missing middleware

Also a few small perf things.

I started this out by wanting to remove the following from the
configuration pattern:
```C#
options.Headers.Add("X-TraceId", null);
```

This pattern with null is undiscoverable, but we didn't provide
something simpler. The most common case was to add a custom collection
type so we can define sugar methods.

The next realization is that in practical case (dist tracing sample) you
either way to *key* off of the same inbound header twice, or you don't
have an inbound header at all, and you will synthesize the value every
time. This means that the way we're treating inbound header names is a
bit wrong. We don't want inbound header names to be unique, we want
*outbound header names to be unique*.

Next, I want to consolidate DefaultValue and ValueFactory. The problems
I saw with this:
- DefaultValue is a trap. It's rare to use a static value.
- ValueFactory really wants the header name *and* value

I think what's there now is much more terse to work with.
2019-05-07 11:07:42 -07:00
Ben Adams bbf7ed2907 Lazy create ExceptionHandlerMiddleware statemachine (#9549) 2019-05-06 15:15:48 -07:00
Ben Adams 617bc1ac02 Reduce StaticFileContext allocation/struct copy (#9815) 2019-05-03 11:55:37 -07:00
Nate McMaster 8863ebfda1
Add --mutex option to yarn commands (#9919)
Attempt to improve reliability of running yarn commands. Our project structure might cause yarn to be launched multiple times. According to yarn docs, this option should avoid conflicts between multiple instances of yarn

https://yarnpkg.com/en/docs/cli/#toc-concurrency-and-mutex
2019-05-02 17:45:55 -07:00
James Newton-King da66edc8ff
Change IEndpointConventionBuilder extension methods to use generic argument (#8906) 2019-05-02 07:25:54 +12:00
Nate McMaster ae8e96f154
Remove API check baselines and related project settings (#9846) 2019-04-30 14:58:13 -07:00
Nate McMaster 0eb1fd7b50
Remove unnecessary restore feeds and update yarn.lock file (#9845) 2019-04-30 08:57:49 -07:00
Andrew Stanton-Nurse fe3dfe627b
Be more defensive in HtmlDirectoryFormatter (#9755)
Fixes aspnet/AspNetCore-Internal#2245

Our tests were flaking out due to this possible race where the directory browser middleware enumerates the directory but a file is deleted while we're formatting the response. This change just catches the FNF/DNF exceptions and suppresses the file from the directory listing
2019-04-29 11:25:26 -07:00
Ryan Brandenburg 1f7b5855f7
Check browser console errors (#9298)
Check browser console errors
2019-04-25 10:02:22 -07:00
dotnet-maestro[bot] 8eb2e8baec
[master] Update dependencies from dotnet/arcade (#9715)
* Update dependencies from https://github.com/dotnet/arcade build 20190423.2

- Microsoft.DotNet.GenAPI - 1.0.0-beta.19223.2

* Adjust to GenApi change in `enum` ordering
- was sorted by name, now by value
2019-04-24 19:21:37 +00:00
Ben Adams 19ce372887 Cache some Headers lookups (#9618) 2019-04-21 20:37:56 -07:00
Ben Adams 507a765dfb Lazy create StaticFileMiddleware statemachine (#9507) 2019-04-18 14:44:00 -07:00