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
AntiforgeryTestHelper.cs Fix up error message when compilation references are missing 2018-06-18 09:20:08 -07:00
AntiforgeryTests.cs
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
AsyncActionsTests.cs
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
ConsumesAttributeTests.cs
ContentNegotiationTest.cs
ControllerFromServicesTests.cs
CorsTests.cs
DataAnnotationTests.cs DataAnnotations of Enum values use DataAnnotationLocalizerProvider 2018-05-25 16:00:00 -07:00
DefaultOrderTest.cs
DefaultValuesTest.cs [Fixes #7518] NullReferenceException thrown when Controller method uses Guid parameter default value 2018-03-27 05:22:20 -07:00
DirectivesTest.cs
DispatchingTests.cs Add support for conventional routes with dispatching (#7928) 2018-06-20 09:02:52 +12:00
DoNotRespectBrowserAcceptHeaderTests.cs
ErrorPageTests.cs Fix up error message when compilation references are missing 2018-06-18 09:20:08 -07:00
ExceptionInfo.cs
FileResultTests.cs
FiltersTest.cs
FlushPointTest.cs
FormFileUploadTest.cs
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
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
JsonOutputFormatterTests.cs
JsonPatchInputFormatterTest.cs
JsonResultTest.cs
LinkGenerationTests.cs
Microsoft.AspNetCore.Mvc.FunctionalTests.csproj Add BasicApi and BasicViews apps 2018-06-22 16:41:17 -07:00
MvcSandboxTest.cs
OutputFormatterTest.cs
RazorBuildTest.cs
RazorPageModelTest.cs
RazorPagesNamespaceTest.cs
RazorPagesTest.cs Added tests to verify that RazorPages and FuzzyMatching with Head requests work 2018-05-01 14:01:00 -07:00
RazorPagesViewSearchTest.cs
RazorPagesWithBasePathTest.cs Allow IgnoreAntiForgeryToken applied on Razor Page models to work 2018-06-13 11:59:47 -07:00
RazorViewLocationSpecificationTest.cs
RemoteAttributeValidationTest.cs Cleanup TestCommon 2018-05-18 10:45:57 -07:00
RequestFormLimitsTest.cs
RequestServicesTest.cs
RequestSizeLimitTest.cs
RespectBrowserAcceptHeaderTests.cs
RouteDataTest.cs
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
SimpleTests.cs
StreamOutputFormatterTest.cs
TagHelperComponentTagHelperTest.cs
TagHelpersFromServicesTest.cs
TagHelpersTest.cs Cleanup TestCommon 2018-05-18 10:45:57 -07:00
TempDataInCookiesTest.cs
TempDataInCookiesUsingCookieConsentTest.cs
TempDataInSessionTest.cs
TempDataPropertyTest.cs
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
UrlResolutionTest.cs
VersioningTests.cs
ViewComponentFromServicesTests.cs
ViewEngineTests.cs Upgrade deps and unskip tests (#7936) 2018-06-19 14:58:40 -07:00
WebApiCompatShimActionResultTest.cs
WebApiCompatShimActionSelectionTest.cs
WebApiCompatShimBasicTest.cs
WebApiCompatShimParameterBindingTest.cs
XmlDataContractSerializerFormattersWrappingTest.cs
XmlDataContractSerializerInputFormatterTest.cs
XmlOutputFormatterTests.cs Fix ActionMethodExecutor incorrectly setting DeclaredType on ObjectResult 2018-05-18 10:43:28 -07:00
XmlSerializerFormattersWrappingTest.cs
XmlSerializerInputFormatterTests.cs
xunit.runner.json