Add tests for identity UI (#8351)
This commit is contained in:
parent
d7a9606040
commit
8250442159
|
|
@ -123,7 +123,7 @@ This package is an internal implementation of the .NET Core SDK and is not meant
|
||||||
<IncludeAssets>Runtime;Native</IncludeAssets>
|
<IncludeAssets>Runtime;Native</IncludeAssets>
|
||||||
</Reference>
|
</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>Platform=$(TargetArchitecture)</SetPlatform>
|
||||||
<SetPlatform Condition="'$(TargetArchitecture)' == 'x86'">Platform=Win32</SetPlatform>
|
<SetPlatform Condition="'$(TargetArchitecture)' == 'x86'">Platform=Win32</SetPlatform>
|
||||||
<!-- Custom attribute used to distinguish managed from native references. -->
|
<!-- Custom attribute used to distinguish managed from native references. -->
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@
|
||||||
<TargetFramework>netcoreapp3.0</TargetFramework>
|
<TargetFramework>netcoreapp3.0</TargetFramework>
|
||||||
<NoDefaultLaunchSettingsFile Condition="'$(ExcludeLaunchSettings)' == 'True'">True</NoDefaultLaunchSettingsFile>
|
<NoDefaultLaunchSettingsFile Condition="'$(ExcludeLaunchSettings)' == 'True'">True</NoDefaultLaunchSettingsFile>
|
||||||
<RootNamespace Condition="'$(name)' != '$(name{-VALUE-FORMS-}safe_namespace)'">Company.WebApplication1</RootNamespace>
|
<RootNamespace Condition="'$(name)' != '$(name{-VALUE-FORMS-}safe_namespace)'">Company.WebApplication1</RootNamespace>
|
||||||
|
<PreserveCompilationReferences>true</PreserveCompilationReferences>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
|
||||||
|
|
@ -6,4 +6,4 @@ param()
|
||||||
|
|
||||||
. $PSScriptRoot\Test-Template.ps1
|
. $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
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ namespace Templates.Test
|
||||||
|
|
||||||
[Theory]
|
[Theory]
|
||||||
[InlineData(null)]
|
[InlineData(null)]
|
||||||
[InlineData("F#", Skip = "https://github.com/aspnet/Templating/issues/673")]
|
[InlineData("F#")]
|
||||||
private void MvcTemplate_NoAuthImpl(string languageOverride)
|
private void MvcTemplate_NoAuthImpl(string languageOverride)
|
||||||
{
|
{
|
||||||
Project.RunDotNetNew("mvc", language: languageOverride);
|
Project.RunDotNetNew("mvc", language: languageOverride);
|
||||||
|
|
@ -72,6 +72,7 @@ namespace Templates.Test
|
||||||
using (var aspNetProcess = Project.StartAspNetProcess(publish))
|
using (var aspNetProcess = Project.StartAspNetProcess(publish))
|
||||||
{
|
{
|
||||||
aspNetProcess.AssertOk("/");
|
aspNetProcess.AssertOk("/");
|
||||||
|
aspNetProcess.AssertOk("/Identity/Account/Login");
|
||||||
aspNetProcess.AssertOk("/Home/Privacy");
|
aspNetProcess.AssertOk("/Home/Privacy");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -65,6 +65,7 @@ namespace Templates.Test
|
||||||
using (var aspNetProcess = Project.StartAspNetProcess(publish))
|
using (var aspNetProcess = Project.StartAspNetProcess(publish))
|
||||||
{
|
{
|
||||||
aspNetProcess.AssertOk("/");
|
aspNetProcess.AssertOk("/");
|
||||||
|
aspNetProcess.AssertOk("/Identity/Account/Login");
|
||||||
aspNetProcess.AssertOk("/Privacy");
|
aspNetProcess.AssertOk("/Privacy");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue