Commit Graph

224 Commits

Author SHA1 Message Date
Ryan Nowak 4549b84cb5
Remove JSON output (#457)
* Remove JSON output and convert to sample

GlennC and I made the decisison to turn the JSON output into a sample
rather than something we support out of the box. We wouldn't tell
customers to definitely use it and we don't want to introduce more
coupling to JSON.NET.
2018-08-03 09:40:45 -07:00
Ryan Nowak 64124e9c85 Add filtering to Health Checks middleware
This allows each middleware to be configured with a specific set of
checks (by name). See the comments in the sample for how this is
frequently used.

This is also addresses aspnet/Home#2575 - or at least the part that we
plan to do. We think that any sort of built-in system of metadata or
tags is vast overkill, and doesn't really align with the primary usage
of health checks.

We're providing building blocks, and these can be put together to
build more complicated things like what's described in aspnet/Home#2575.
2018-08-01 19:07:58 -07:00
Ryan Nowak 47f427d5ac Updating Health Checks for 2.2
A bunch of small changes and updates for 2.2 focused at making our main
scenarios more streamlined and focused. Also adds samples for
extensibility we support so far.

A list of changes:

Clearing baselines for these projects. We didn't ship anything in 2.1 so
there should be nothing in the baselines.

--

The middleware now uses Map for path matching. This makes the actual
`HealthCheckMiddleware` more standalone. This will make it easy to use
with Dispatcher/Endpoint Routing in the future.

This also manifests by removing Path from HealthCheckOptions - the path
is an explicit argument to the UseHealthChecks middelware - this
streamlines the design for 3.0.

--

Added extensibility for customizing the status codes (aspnet/Home#2584)

--

Added extensibility for writing the textual output (aspnet/Home#2583)

--

Changed the default output to be `text/plain`. The most common use cases
for health checks don't include a detailed status.

The existing output format is still available as an option.
2018-08-01 18:49:44 -07:00
Ryan Brandenburg 519ca4adb0 Upgrade to netcoreapp22 2018-05-07 16:07:07 -07:00
Arthur Vickers 2eef8fdff2 Add retries to help with test flakiness
Issue #2844
2018-02-02 09:37:50 -08:00
Ryan Brandenburg d44b78e842 Skip flaky test 2018-02-02 09:27:40 -08:00
Andrew Peters 0ec3dedc88 Fixes null ref in DatabaseErrorPageMiddleware.
Fix aspnet/Home#2820 - UseDatabaseErrorPage throws NullReferenceException when ef exception occur in background task
Fix aspnet/EntityFrameworkCore#9599 - Insert entity in non existing table throws NullException

Added null checks to async local access in event callback.

Related to aspnet/Home#2825
2018-01-26 10:28:28 -08:00
Pranav K cdcd713e0e Remove StackTraceTest.cs
Fixes #422
2017-12-15 16:35:51 -08:00
Pranav K 3b4aaa523b Target netcoreapp2.1 in tests and samples 2017-11-10 19:43:28 -08:00
Chris Ross (ASP.NET) bb34616a88 Test: fix status code order 2017-11-08 22:55:01 -08:00
Nate McMaster 7ac0e06abf Pin tool and package versions to make builds more repeatable 2017-10-31 19:37:33 -07:00
Jass Bagga 88db534e42
UseExceptionHandler throws if ExceptionHandlingPath not set (#417) 2017-10-27 15:34:34 -07:00
Andrew Stanton-Nurse a30befae0f Add abstractions for Health Checks and a simple middleware and service to run them (#408) 2017-10-18 13:52:06 -07:00
Jass Bagga d22bb2c908 Add logger extensions with event ids (#405)
Addresses #393
2017-09-15 14:26:47 -07:00
Nate McMaster 479eb49ca9 Use PackageLineup to manage PackageReference versions 2017-08-29 09:41:54 -07:00
Nate McMaster 9634f7fd9c Use Directory.Build.props/targets 2017-08-29 09:30:22 -07:00
Nate McMaster adf3cb70aa Upgrade to xunit 2.3.0-beta4 2017-08-22 15:18:08 -07:00
Nate McMaster a754e91f37 Update sample test app to netstandard2.0 2017-06-06 17:29:56 -07:00
Andrew Peters fc1dbbbcfd Adds a missing ToList() in assert code. 2017-06-01 14:54:41 -07:00
Andrew Peters 1b6993fb91 Database Error Page: Prep for removal of ILogger-based interception.
- Removed EF ApiCheck tests; not required for middleware.
- Removed JB annotations and Check usage; align with other Diagnostics Pages projects.
- Fixed code redundancies.
2017-05-30 12:55:50 -07:00
Pranav K ec2faf5594 Target netstandard2.0 2017-05-23 15:27:47 -07:00
Smit Patel 09468daaef Revert "Disable SqlServer specific tests on netcoreapp2.0 on win7/2008"
This reverts commit 775847a1fa.
2017-05-17 18:08:46 -07:00
Nate McMaster 7199e8d358 Upgrade test framework versions and fix test issues 2017-05-15 14:19:24 -07:00
Pranav K 30306fc4f4 Change TFM to netcoreapp2.0 2017-05-04 22:15:24 -07:00
BrennanConroy 1018f41f15 Missed some obsolete logging calls 2017-05-02 15:23:21 -07:00
AndriySvyryd 979107493e Treat all SQL exceptions the same in DatabaseErrorPageMiddlewareTest
Fixes #366
2017-04-26 21:38:56 -07:00
AndriySvyryd c73bd7e63e Increase timeout in EF tests 2017-04-25 13:18:05 -07:00
Brice Lambson e3180baea5 Re-enable Entity Framework tests
Resolves #350
2017-04-20 12:11:22 -07:00
Smit Patel 775847a1fa Disable SqlServer specific tests on netcoreapp2.0 on win7/2008 2017-04-16 11:58:33 -07:00
Kiran Challa ee1cfdf41e [Fixes #] DeveloperExceptionPage throws when SourceFileContent is null in an ICompilationException 2017-04-11 05:59:17 -07:00
Kiran Challa 6ac219c710 updated 2017-03-23 16:25:51 -07:00
Kiran Challa 6f2a0702e3 Converted samples and test projects to run on netcoreapp2.0 2017-03-23 16:25:51 -07:00
N. Taylor Mullen e3e4176124 Try renaming functional tests as a potential mitigation for long path issues. 2017-03-23 11:12:20 -07:00
Pranav K 237abd0b69 Change compilation targets.
* Remove net451 as a compilation target
* Upgrade to netcoreapp2.0
2017-03-22 13:50:35 -07:00
Nate McMaster e8db0cb43e Unify dependency versions to one file and remove workarounds 2017-03-15 13:25:35 -07:00
Arthur Vickers 3a8b8c81ab Update in-memory tests to used named database. 2017-02-28 16:46:30 -08:00
Nate McMaster 02dc95eda3
React to aspnet/Korebuild#160 2017-02-16 10:03:40 -08:00
Doug Bunting c354afebc8 Bump test projects up to .NET 4.5.2
- aspnet/Testing#248
- xUnit no longer supports .NET 4.5.1
- build tests for desktop .NET only on Windows

Address existing issues
- work around test failures, including #350
  - skip tests mentioned in #350
  - reorder xunit and xunit.runner.visualstudio; setup fails for .NET Core otherwise
- skip all tests using LocalDB on Linux and OSX
  - `[FrameworkSkipCondition(RuntimeFrameworks.Mono)]` now redundant
- correct AppVeyor image

nits:
- let VS add the test `<Service>`
- use `[ConditionalFact]` when there's no test data
2017-02-16 08:40:27 -08:00
Nate McMaster 4c5739c852 Upgrade to VS 2017 2017-01-31 10:01:38 -08:00
Kiran Challa fb7c25b662 Added OriginalQueryString property to IStatusCodeReExecuteFeature interface 2017-01-27 10:48:59 -08:00
Arthur Vickers f35a3b4918 Remove obsolete calls to AddEntityFramework 2017-01-26 12:03:21 -08:00
Pranav K 4b77edfe7a Updating to 4.4 CoreFx packages 2016-12-14 14:47:28 -08:00
Pranav K 32cced78b8 Update dependency versions 2016-11-10 08:41:05 -08:00
Pranav K f4f1902808 Updating versions to 1.2.0-* 2016-11-09 14:17:12 -08:00
Pranav K a3e7481fcb Updating to netcoreapp1.1 2016-10-13 11:13:51 -07:00
Pranav K 9cecbc2cb1 Revert "Updating to netcoreapp1.1"
This reverts commit 65025d41a5.
2016-10-12 16:08:16 -07:00
Pranav K 65025d41a5 Updating to netcoreapp1.1 2016-10-12 13:45:05 -07:00
Pranav K d376a1fa75 Updating partner package versions 2016-09-29 10:52:34 -07:00
Chris R 1b1bd34b8d Add new dependnecy and test for UTF-8 BOM fix in views 2016-09-21 16:03:04 -07:00
Kiran Challa c224a726f9 Moved PageGenerator to Razor repo and moved diagnostic view page sources to Common. 2016-08-29 13:43:00 -07:00