Skip to content

Commit 783131a

Browse files
authored
Re-enable full IIS tests on Windows.10.Amd64.EnterpriseRS3.ASPNET.Open (#7959)
1 parent fd83f4d commit 783131a

File tree

11 files changed

+51
-21
lines changed

11 files changed

+51
-21
lines changed

eng/helix/vstest/runtests.cmd

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
11
set target=%1
22
set sdkVersion=%2
33
set runtimeVersion=%3
4-
set DOTNET_ROOT=%HELIX_CORRELATION_PAYLOAD%\sdk
5-
powershell.exe -NoProfile -ExecutionPolicy unrestricted -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; &([scriptblock]::Create((Invoke-WebRequest -useb 'https://dot.net/v1/dotnet-install.ps1'))) -Architecture x64 -Version %sdkVersion% -InstallDir %DOTNET_ROOT%"
6-
powershell.exe -NoProfile -ExecutionPolicy unrestricted -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; &([scriptblock]::Create((Invoke-WebRequest -useb 'https://dot.net/v1/dotnet-install.ps1'))) -Architecture x64 -Runtime dotnet -Version %runtimeVersion% -InstallDir %DOTNET_ROOT%"
4+
5+
set DOTNET_HOME=%HELIX_CORRELATION_PAYLOAD%\sdk
6+
set DOTNET_ROOT=%DOTNET_HOME%\x64
77
set DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
8-
set PATH=%DOTNET_ROOT%;%PATH%
98
set DOTNET_MULTILEVEL_LOOKUP=0
109
set DOTNET_CLI_HOME=%HELIX_CORRELATION_PAYLOAD%\home
11-
set helix=true
12-
%DOTNET_ROOT%\dotnet vstest %target% --logger:trx
10+
11+
set PATH=%DOTNET_ROOT%;%PATH%
12+
13+
powershell.exe -NoProfile -ExecutionPolicy unrestricted -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; &([scriptblock]::Create((Invoke-WebRequest -useb 'https://dot.net/v1/dotnet-install.ps1'))) -Architecture x64 -Version %sdkVersion% -InstallDir %DOTNET_ROOT%"
14+
powershell.exe -NoProfile -ExecutionPolicy unrestricted -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; &([scriptblock]::Create((Invoke-WebRequest -useb 'https://dot.net/v1/dotnet-install.ps1'))) -Architecture x64 -Runtime dotnet -Version %runtimeVersion% -InstallDir %DOTNET_ROOT%"
15+
16+
set HELIX=true
17+
18+
%DOTNET_ROOT%\dotnet vstest %target% --logger:trx --logger:console;verbosity=normal
1319

1420

eng/scripts/RunPowershell.cmd

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,9 @@
33
SET _TAIL=%*
44
CALL SET _TAIL=%%_TAIL:*%1=%%
55

6-
PowerShell -NoProfile -NoLogo -ExecutionPolicy unrestricted -Command "[System.Threading.Thread]::CurrentThread.CurrentCulture = ''; [System.Threading.Thread]::CurrentThread.CurrentUICulture = ''; try { & '%~dp0%1' %_TAIL%; exit $LASTEXITCODE } catch { write-host $_; exit 1 }"
6+
SET POWERSHELL=%windir%\System32\WindowsPowerShell\v1.0\powershell.exe
7+
8+
rem Force 64bit powershell
9+
if /i "%PROCESSOR_ARCHITEW6432%" EQU "AMD64" SET POWERSHELL=%windir%\sysnative\WindowsPowerShell\v1.0\powershell.exe
10+
11+
%POWERSHELL% -NoProfile -NoLogo -ExecutionPolicy unrestricted -Command "[System.Threading.Thread]::CurrentThread.CurrentCulture = ''; [System.Threading.Thread]::CurrentThread.CurrentUICulture = ''; try { & '%~dp0%1' %_TAIL%; exit $LASTEXITCODE } catch { write-host $_; exit 1 }"

eng/targets/Helix.Common.props

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
11
<Project>
2+
<ItemDefinitionGroup>
3+
<HelixAvailibleTargetQueue>
4+
<EnableByDefault>true</EnableByDefault>
5+
</HelixAvailibleTargetQueue>
6+
</ItemDefinitionGroup>
7+
28
<!-- this file is shared between Helix.proj and .csproj files -->
39
<ItemGroup>
410
<HelixAvailblePlatform Include="Windows" />
511
<HelixAvailblePlatform Include="OSX" />
612
<HelixAvailblePlatform Include="Linux" />
713

814
<HelixAvailibleTargetQueue Include="Windows.10.Amd64.ClientRS4.VS2017.Open" Platform="Windows" />
15+
<HelixAvailibleTargetQueue Include="Windows.10.Amd64.EnterpriseRS3.ASPNET.Open" Platform="Windows" EnableByDefault="false" />
916
<HelixAvailibleTargetQueue Include="OSX.1012.Amd64.Open" Platform="OSX" />
1017
<HelixAvailibleTargetQueue Include="Ubuntu.1810.Amd64.Open" Platform="Linux" />
1118
<HelixAvailibleTargetQueue Include="Ubuntu.1604.Amd64.Open" Platform="Linux" />

eng/targets/Helix.targets

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,16 @@
2929
</PropertyGroup>
3030

3131
<ItemGroup>
32-
<_HelixProjectTargetQueue Include="%(HelixAvailibleTargetQueue.Identity)" Condition="'$(_SelectedPlatforms.Contains(%(Platform)))' == 'true' AND '%(Identity)' == '$(HelixTargetQueue)'" />
32+
<!-- Include default queues based on platform -->
33+
<_HelixProjectTargetQueue Include="%(HelixAvailibleTargetQueue.Identity)" Condition="'$(_SelectedPlatforms.Contains(%(Platform)))' == 'true' AND '%(EnableByDefault)' == 'true'" />
34+
<!-- Unconditionally include queues defined by project -->
35+
<_HelixProjectTargetQueue Include="%(HelixProjectTargetQueue.Identity)" />
36+
37+
<_HelixApplicableTargetQueue Include="%(_HelixProjectTargetQueue.Identity)" Condition="'%(Identity)' == '$(HelixTargetQueue)'" />
3338
</ItemGroup>
3439

3540
<PropertyGroup>
36-
<BuildHelixPayload Condition="'@(_HelixProjectTargetQueue->Count())' == '0'">false</BuildHelixPayload>
41+
<BuildHelixPayload Condition="'@(_HelixApplicableTargetQueue->Count())' == '0'">false</BuildHelixPayload>
3742
</PropertyGroup>
3843

3944
</Target>

src/Servers/IIS/IIS/test/Common.FunctionalTests/Inprocess/StartupTests.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ public StartupTests(PublishedSitesFixture fixture)
3131

3232
private readonly string _dotnetLocation = DotNetCommands.GetDotNetExecutable(RuntimeArchitecture.x64);
3333

34-
[SkipOnHelix] // https://github.com/aspnet/AspNetCore/issues/6549
3534
[ConditionalFact]
3635
[RequiresIIS(IISCapability.PoolEnvironmentVariables)]
3736
public async Task ExpandEnvironmentVariableInWebConfig()
@@ -68,7 +67,6 @@ public async Task InvalidProcessPath_ExpectServerError(string path, string argum
6867
Assert.Contains("HTTP Error 500.0 - ANCM In-Process Handler Load Failure", await response.Content.ReadAsStringAsync());
6968
}
7069

71-
[SkipOnHelix] // https://github.com/aspnet/AspNetCore/issues/6549
7270
[ConditionalFact]
7371
public async Task StartsWithDotnetLocationWithoutExe()
7472
{
@@ -80,7 +78,6 @@ public async Task StartsWithDotnetLocationWithoutExe()
8078
await StartAsync(deploymentParameters);
8179
}
8280

83-
[SkipOnHelix] // https://github.com/aspnet/AspNetCore/issues/6549
8481
[ConditionalFact]
8582
public async Task StartsWithDotnetLocationUppercase()
8683
{
@@ -92,7 +89,6 @@ public async Task StartsWithDotnetLocationUppercase()
9289
await StartAsync(deploymentParameters);
9390
}
9491

95-
[SkipOnHelix] // https://github.com/aspnet/AspNetCore/issues/6549
9692
[ConditionalTheory]
9793
[InlineData("dotnet")]
9894
[InlineData("dotnet.EXE")]
@@ -113,7 +109,7 @@ public async Task StartsWithDotnetOnThePath(string path)
113109
}
114110

115111

116-
[SkipOnHelix] // https://github.com/aspnet/AspNetCore/issues/6549
112+
[SkipOnHelix] // https://github.com/aspnet/AspNetCore/issues/7972
117113
[ConditionalTheory]
118114
[InlineData(RuntimeArchitecture.x64)]
119115
[InlineData(RuntimeArchitecture.x86)]
@@ -190,7 +186,7 @@ public async Task HelloWorld(TestVariant variant)
190186
await StartAsync(deploymentParameters);
191187
}
192188

193-
[SkipOnHelix] // https://github.com/aspnet/AspNetCore/issues/6549
189+
[SkipOnHelix] // https://github.com/aspnet/AspNetCore/issues/7972
194190
[ConditionalFact]
195191
[RequiresIIS(IISCapability.PoolEnvironmentVariables)]
196192
public async Task StartsWithPortableAndBootstraperExe()

src/Servers/IIS/IIS/test/FunctionalTest.props

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,17 @@
1212

1313
<ItemGroup>
1414
<HelixProjectPlatform Remove="Linux;OSX" />
15+
<!-- Remove all default platforms for full IIS -->
16+
<HelixProjectPlatform Condition="'$(IsIISTest)' == 'true'" Remove="@(HelixProjectPlatform)" />
17+
18+
<HelixProjectTargetQueue Condition="'$(IsIISTest)' == 'true'" Include="Windows.10.Amd64.EnterpriseRS3.ASPNET.Open" />
1519

1620
<HelixContent Include="..\..\..\tools\update_schema.ps1" />
21+
<HelixContent Include="..\..\..\tools\InstallIISFeatures.ps1" />
1722
<HelixContent Include="..\..\..\tools\UpdateIISExpressCertificate.ps1" />
1823
<HelixContent Include="..\..\..\AspNetCoreModuleV2\AspNetCore\aspnetcore_schema_v2.xml" />
1924

25+
<HelixPreCommand Condition="'$(IsIISTest)' == 'true'" Include="call RunPowershell.cmd InstallIISFeatures.ps1" />
2026
<HelixPreCommand Include="call RunPowershell.cmd update_schema.ps1" />
2127
<HelixPreCommand Include="call RunPowershell.cmd UpdateIISExpressCertificate.ps1" />
2228
</ItemGroup>

src/Servers/IIS/IIS/test/IIS.BackwardsCompatibility.FunctionalTests/IIS.BackwardsCompatibility.FunctionalTests.csproj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3-
<Import Project="../FunctionalTest.props" />
4-
53
<PropertyGroup>
64
<TargetFramework>netcoreapp3.0</TargetFramework>
75
<TestGroupName>IISBackwardsCompatibility.FunctionalTests</TestGroupName>
86
<DisableFastUpToDateCheck>True</DisableFastUpToDateCheck>
97
<SkipTests Condition=" '$(SkipIISBackwardsCompatibilityTests)' == 'true' ">true</SkipTests>
8+
<IsIISTest>true</IsIISTest>
109
</PropertyGroup>
1110

11+
<Import Project="../FunctionalTest.props" />
12+
1213
<ItemGroup>
1314
<Compile Include="..\Common.FunctionalTests\**\*.cs" />
1415
<Compile Include="..\IIS.Shared.FunctionalTests\**\*.cs" />

src/Servers/IIS/IIS/test/IIS.ForwardsCompatibility.FunctionalTests/IIS.ForwardsCompatibility.FunctionalTests.csproj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3-
<Import Project="../FunctionalTest.props" />
4-
53
<PropertyGroup>
64
<TargetFramework>netcoreapp3.0</TargetFramework>
75
<TestGroupName>IISForwardsCompatibility.FunctionalTests</TestGroupName>
86
<DisableFastUpToDateCheck>True</DisableFastUpToDateCheck>
97
<SkipTests Condition=" '$(SkipIISForwardsCompatibilityTests)' == 'true' ">true</SkipTests>
8+
<IsIISTest>true</IsIISTest>
109
</PropertyGroup>
1110

11+
<Import Project="../FunctionalTest.props" />
12+
1213
<ItemGroup>
1314
<ProjectReference Include="..\Common.Tests\Common.Tests.csproj" />
1415
<ProjectReference Include="$(RepositoryRoot)src\Hosting\Server.IntegrationTesting\src\Microsoft.AspNetCore.Server.IntegrationTesting.csproj" />

src/Servers/IIS/IIS/test/IIS.FunctionalTests/IIS.FunctionalTests.csproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3-
<Import Project="../FunctionalTest.props" />
43

54
<PropertyGroup>
65
<TargetFramework>netcoreapp3.0</TargetFramework>
76
<TestGroupName>IIS.FunctionalTests</TestGroupName>
87
<DisableFastUpToDateCheck>True</DisableFastUpToDateCheck>
98
<SkipTests Condition=" '$(SkipIISTests)' == 'true' ">true</SkipTests>
9+
<IsIISTest>true</IsIISTest>
1010
</PropertyGroup>
1111

12+
<Import Project="../FunctionalTest.props" />
13+
1214
<ItemGroup>
1315
<ProjectReference Include="..\Common.Tests\Common.Tests.csproj" />
1416
<ProjectReference Include="$(RepositoryRoot)src\Servers\IIS\IntegrationTesting.IIS\src\Microsoft.AspNetCore.Server.IntegrationTesting.IIS.csproj" />

src/Servers/IIS/IIS/test/IIS.Shared.FunctionalTests/MofFileTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ public class MofFileTests
1515
[ConditionalFact]
1616
[OSSkipCondition(OperatingSystems.Linux | OperatingSystems.MacOSX)]
1717
[RequiresIIS(IISCapability.TracingModule)]
18+
[SkipOnHelix] // https://github.com/aspnet/AspNetCore/issues/7972
1819
public void CheckMofFile()
1920
{
2021
var path = Path.Combine(TestPathUtilities.GetSolutionRootDirectory("IISIntegration"), "aspnetcoremodulev2", "aspnetcore", "ancm.mof");

src/Servers/IIS/IIS/test/IIS.Shared.FunctionalTests/RequiresIISAttribute.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ static RequiresIISAttribute()
5959
return;
6060
}
6161

62-
var ancmConfigPath = Path.Combine(Environment.SystemDirectory, "inetsrv", "config", "schema", "aspnetcore_schema_v2.xml");
62+
var ancmConfigPath = Path.Combine(Environment.SystemDirectory, "inetsrv", "config", "schema", "aspnetcore_schema.xml");
6363

6464
if (!File.Exists(ancmConfigPath) && !SkipInVSTSAttribute.RunningInVSTS)
6565
{

0 commit comments

Comments
 (0)