aspnetcore/test/Microsoft.AspNetCore.Mvc.Fu...
Doug Bunting 53857d052f
Add BasicApi and BasicViews apps
- #7805
- make initial copy of apps from aspnet/Performance repo
  - add apps to solution
  - add Readme for the benchmark apps
- update BasicApi app to actually do authentication and authorization
  - bug in the ported app
- refactor `Main` methods and add `CreateWebHostBuilder(...)` methods
- change projects to understand `$(BenchmarksTargetFramework)`
  - use NuGet.org EF packages to avoid changing the Universe build graph
- use SQLite instead of LocalDb by default
  - remove unnecessary appsettings.json files and JSON configuration support
- add EF migrations
  - (greatly) reduce startup times compared to creating / deleting databases
- add MySql, PostgreSQL, and SqlServer support
  - load BasicApi data in a `DbContext.OnModelCreating(...)` override
    - no longer need seed.sql
  - generalize migrations to support multiple providers
  - use negative seeding indices to work around npgsql/Npgsql.EntityFrameworkCore.PostgreSQL#36
  - work around Pomelo lack of strong name (PomeloFoundation/Pomelo.EntityFrameworkCore.MySql#603)
  - use BenchmarksOnly* properties for EF dependencies
    - see also aspnet/Universe#1224
- drop databases (if SQLite) or migrations (otherwise) in `IApplicationLifetime.ApplicationStopping` handlers
- add functional tests
  - drop SQLite database at end of test run
- add benchmarks automation
  - add anonymous BasicApi action i.e. require no authorization
  - add non-antiforgery BasicViews actions

Address PR comments
- remove `AntiforgeryTestHelper` workarounds
- use `[ApiController]`
- use `ActionResult<Pet>`
- remove unused classes

nits:
- take VS suggestions in added files
- optionally display create and delete SQL scripts for per-database migrations
- merge `InsertData(...)` calls for consistency with most supported EF providers
  - SQLite is the only one that requires separate `INSERT`s and EF does the splitting
2018-06-22 16:41:17 -07:00
..
Infrastructure Add BasicApi and BasicViews apps 2018-06-22 16:41:17 -07:00
compiler/resources Fix up a few pieces for the fallback integrity check feature. 2018-06-20 16:10:52 -07:00
AntiforgeryAuthTests.cs Improvements to the MVC testing package 2018-03-19 12:19:45 -07:00
AntiforgeryTestHelper.cs Fix up error message when compilation references are missing 2018-06-18 09:20:08 -07:00
AntiforgeryTests.cs Improvements to the MVC testing package 2018-03-19 12:19:45 -07:00
ApiBehaviorTest.cs [Fixes #7609] ApiBehaviorApplicationModelProvider overwrites existing BindingInfo in entirety when inferring binding sources 2018-05-24 14:28:42 -07:00
ApiExplorerTest.cs Add IsRequired and DefaultValue to ApiParameterDescription 2018-06-22 06:51:58 -07:00
ApplicationModelTest.cs Improvements to the MVC testing package 2018-03-19 12:19:45 -07:00
AsyncActionsTests.cs Improvements to the MVC testing package 2018-03-19 12:19:45 -07:00
BasicApiTest.cs Add BasicApi and BasicViews apps 2018-06-22 16:41:17 -07:00
BasicTests.cs Introduce BindPropertiesAttribute 2018-04-20 14:32:14 -07:00
BasicViewsTest.cs Add BasicApi and BasicViews apps 2018-06-22 16:41:17 -07:00
CompilationOptionsTests.cs Improvements to the MVC testing package 2018-03-19 12:19:45 -07:00
ConsumesAttributeTests.cs Improvements to the MVC testing package 2018-03-19 12:19:45 -07:00
ContentNegotiationTest.cs Improvements to the MVC testing package 2018-03-19 12:19:45 -07:00
ControllerFromServicesTests.cs Improvements to the MVC testing package 2018-03-19 12:19:45 -07:00
CorsTests.cs Improvements to the MVC testing package 2018-03-19 12:19:45 -07:00
DataAnnotationTests.cs DataAnnotations of Enum values use DataAnnotationLocalizerProvider 2018-05-25 16:00:00 -07:00
DefaultOrderTest.cs Improvements to the MVC testing package 2018-03-19 12:19:45 -07:00
DefaultValuesTest.cs [Fixes #7518] NullReferenceException thrown when Controller method uses Guid parameter default value 2018-03-27 05:22:20 -07:00
DirectivesTest.cs Improvements to the MVC testing package 2018-03-19 12:19:45 -07:00
DispatchingTests.cs Add support for conventional routes with dispatching (#7928) 2018-06-20 09:02:52 +12:00
DoNotRespectBrowserAcceptHeaderTests.cs Improvements to the MVC testing package 2018-03-19 12:19:45 -07:00
ErrorPageTests.cs Fix up error message when compilation references are missing 2018-06-18 09:20:08 -07:00
ExceptionInfo.cs
FileResultTests.cs Improvements to the MVC testing package 2018-03-19 12:19:45 -07:00
FiltersTest.cs Improvements to the MVC testing package 2018-03-19 12:19:45 -07:00
FlushPointTest.cs Improvements to the MVC testing package 2018-03-19 12:19:45 -07:00
FormFileUploadTest.cs Improvements to the MVC testing package 2018-03-19 12:19:45 -07:00
GlobalAuthorizationFilterTest.cs Add compatibility switch controlling parameter metadata and top-level validation 2018-03-26 12:29:04 -07:00
HtmlGenerationTest.cs Allow PartialTagHelper to specify a null model. Fixes #7667 2018-04-18 14:16:44 -07:00
HtmlGenerationWithCultureTest.cs CacheTagHelper should be able to vary by culture 2018-05-13 14:21:08 -07:00
HtmlHelperOptionsTest.cs Improvements to the MVC testing package 2018-03-19 12:19:45 -07:00
InputFormatterTests.cs Add compatibility switch controlling parameter metadata and top-level validation 2018-03-26 12:29:04 -07:00
InputObjectValidationTests.cs Cleanup TestCommon 2018-05-18 10:45:57 -07:00
InputValidationTests.cs Improvements to the MVC testing package 2018-03-19 12:19:45 -07:00
JsonOutputFormatterTests.cs Improvements to the MVC testing package 2018-03-19 12:19:45 -07:00
JsonPatchInputFormatterTest.cs Improvements to the MVC testing package 2018-03-19 12:19:45 -07:00
JsonResultTest.cs Improvements to the MVC testing package 2018-03-19 12:19:45 -07:00
LinkGenerationTests.cs Improvements to the MVC testing package 2018-03-19 12:19:45 -07:00
Microsoft.AspNetCore.Mvc.FunctionalTests.csproj Add BasicApi and BasicViews apps 2018-06-22 16:41:17 -07:00
MvcSandboxTest.cs Improvements to the MVC testing package 2018-03-19 12:19:45 -07:00
OutputFormatterTest.cs Improvements to the MVC testing package 2018-03-19 12:19:45 -07:00
RazorBuildTest.cs ApplicationPartFactory: The works 2018-03-21 15:40:15 -07:00
RazorPageModelTest.cs Improvements to the MVC testing package 2018-03-19 12:19:45 -07:00
RazorPagesNamespaceTest.cs Improvements to the MVC testing package 2018-03-19 12:19:45 -07:00
RazorPagesTest.cs Added tests to verify that RazorPages and FuzzyMatching with Head requests work 2018-05-01 14:01:00 -07:00
RazorPagesViewSearchTest.cs Improvements to the MVC testing package 2018-03-19 12:19:45 -07:00
RazorPagesWithBasePathTest.cs Allow IgnoreAntiForgeryToken applied on Razor Page models to work 2018-06-13 11:59:47 -07:00
RazorViewLocationSpecificationTest.cs Improvements to the MVC testing package 2018-03-19 12:19:45 -07:00
RemoteAttributeValidationTest.cs Cleanup TestCommon 2018-05-18 10:45:57 -07:00
RequestFormLimitsTest.cs Improvements to the MVC testing package 2018-03-19 12:19:45 -07:00
RequestServicesTest.cs Improvements to the MVC testing package 2018-03-19 12:19:45 -07:00
RequestSizeLimitTest.cs Improvements to the MVC testing package 2018-03-19 12:19:45 -07:00
RespectBrowserAcceptHeaderTests.cs Improvements to the MVC testing package 2018-03-19 12:19:45 -07:00
RouteDataTest.cs Improvements to the MVC testing package 2018-03-19 12:19:45 -07:00
RoutingTests.cs Centralize routing and dispatching functional test logic (#7938) 2018-06-19 23:24:15 +12:00
RoutingTestsBase.cs Centralize routing and dispatching functional test logic (#7938) 2018-06-19 23:24:15 +12:00
SerializableErrorTests.cs Improvements to the MVC testing package 2018-03-19 12:19:45 -07:00
SimpleTests.cs Improvements to the MVC testing package 2018-03-19 12:19:45 -07:00
StreamOutputFormatterTest.cs Improvements to the MVC testing package 2018-03-19 12:19:45 -07:00
TagHelperComponentTagHelperTest.cs Improvements to the MVC testing package 2018-03-19 12:19:45 -07:00
TagHelpersFromServicesTest.cs Improvements to the MVC testing package 2018-03-19 12:19:45 -07:00
TagHelpersTest.cs Cleanup TestCommon 2018-05-18 10:45:57 -07:00
TempDataInCookiesTest.cs Improvements to the MVC testing package 2018-03-19 12:19:45 -07:00
TempDataInCookiesUsingCookieConsentTest.cs Improvements to the MVC testing package 2018-03-19 12:19:45 -07:00
TempDataInSessionTest.cs Improvements to the MVC testing package 2018-03-19 12:19:45 -07:00
TempDataPropertyTest.cs Improvements to the MVC testing package 2018-03-19 12:19:45 -07:00
TempDataTestBase.cs
TestingInfrastructureInheritanceTests.cs [Fixes #7541] Per-test class customization should not remove global (per-fixture) customization 2018-03-24 18:33:48 -07:00
TestingInfrastructureTests.cs Improvements to the MVC testing package 2018-03-19 12:19:45 -07:00
UrlResolutionTest.cs Improvements to the MVC testing package 2018-03-19 12:19:45 -07:00
VersioningTests.cs Improvements to the MVC testing package 2018-03-19 12:19:45 -07:00
ViewComponentFromServicesTests.cs Improvements to the MVC testing package 2018-03-19 12:19:45 -07:00
ViewEngineTests.cs Upgrade deps and unskip tests (#7936) 2018-06-19 14:58:40 -07:00
WebApiCompatShimActionResultTest.cs Improvements to the MVC testing package 2018-03-19 12:19:45 -07:00
WebApiCompatShimActionSelectionTest.cs Improvements to the MVC testing package 2018-03-19 12:19:45 -07:00
WebApiCompatShimBasicTest.cs Improvements to the MVC testing package 2018-03-19 12:19:45 -07:00
WebApiCompatShimParameterBindingTest.cs Improvements to the MVC testing package 2018-03-19 12:19:45 -07:00
XmlDataContractSerializerFormattersWrappingTest.cs Improvements to the MVC testing package 2018-03-19 12:19:45 -07:00
XmlDataContractSerializerInputFormatterTest.cs Improvements to the MVC testing package 2018-03-19 12:19:45 -07:00
XmlOutputFormatterTests.cs Fix ActionMethodExecutor incorrectly setting DeclaredType on ObjectResult 2018-05-18 10:43:28 -07:00
XmlSerializerFormattersWrappingTest.cs Improvements to the MVC testing package 2018-03-19 12:19:45 -07:00
XmlSerializerInputFormatterTests.cs Improvements to the MVC testing package 2018-03-19 12:19:45 -07:00
xunit.runner.json