Add tests for identity UI (#8351)

This commit is contained in:
Ryan Brandenburg 2019-03-11 11:21:43 -07:00 committed by GitHub
parent d7a9606040
commit 8250442159
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 3 deletions

View File

@ -123,7 +123,7 @@ This package is an internal implementation of the .NET Core SDK and is not meant
<IncludeAssets>Runtime;Native</IncludeAssets>
</Reference>
<ProjectReference Condition="'$(BuildIisNativeProjects)' == 'true' AND '$(BuildNative)' != 'false'" Include="$(RepositoryRoot)src\Servers\IIS\AspNetCoreModuleV2\InProcessRequestHandler\InProcessRequestHandler.vcxproj">
<ProjectReference Condition="'$(BuildIisNativeProjects)' == 'true' AND '$(BuildNative)' != 'false' AND '$(VCTargetsPath)' != ''" Include="$(RepositoryRoot)src\Servers\IIS\AspNetCoreModuleV2\InProcessRequestHandler\InProcessRequestHandler.vcxproj">
<SetPlatform>Platform=$(TargetArchitecture)</SetPlatform>
<SetPlatform Condition="'$(TargetArchitecture)' == 'x86'">Platform=Win32</SetPlatform>
<!-- Custom attribute used to distinguish managed from native references. -->

View File

@ -4,6 +4,7 @@
<TargetFramework>netcoreapp3.0</TargetFramework>
<NoDefaultLaunchSettingsFile Condition="'$(ExcludeLaunchSettings)' == 'True'">True</NoDefaultLaunchSettingsFile>
<RootNamespace Condition="'$(name)' != '$(name{-VALUE-FORMS-}safe_namespace)'">Company.WebApplication1</RootNamespace>
<PreserveCompilationReferences>true</PreserveCompilationReferences>
</PropertyGroup>
<ItemGroup>

View File

@ -6,4 +6,4 @@ param()
. $PSScriptRoot\Test-Template.ps1
Test-Template "webapp" "webapp -au Individual" "Microsoft.DotNet.Web.ProjectTemplates.3.0.3.0.0-alpha1.nupkg" $false
Test-Template "webapp" "webapp -au Individual" "Microsoft.DotNet.Web.ProjectTemplates.3.0.3.0.0-preview4-t000.nupkg" $false

View File

@ -18,7 +18,7 @@ namespace Templates.Test
[Theory]
[InlineData(null)]
[InlineData("F#", Skip = "https://github.com/aspnet/Templating/issues/673")]
[InlineData("F#")]
private void MvcTemplate_NoAuthImpl(string languageOverride)
{
Project.RunDotNetNew("mvc", language: languageOverride);
@ -72,6 +72,7 @@ namespace Templates.Test
using (var aspNetProcess = Project.StartAspNetProcess(publish))
{
aspNetProcess.AssertOk("/");
aspNetProcess.AssertOk("/Identity/Account/Login");
aspNetProcess.AssertOk("/Home/Privacy");
}
}

View File

@ -65,6 +65,7 @@ namespace Templates.Test
using (var aspNetProcess = Project.StartAspNetProcess(publish))
{
aspNetProcess.AssertOk("/");
aspNetProcess.AssertOk("/Identity/Account/Login");
aspNetProcess.AssertOk("/Privacy");
}
}