Skip IIS Express on Windows 7 (#8330)

https://github.com/aspnet/AspNetCore/issues/8329
This commit is contained in:
Pavel Krymets 2019-03-11 08:44:28 -07:00 committed by GitHub
parent 17344cd37f
commit b2a58ab8de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 27 additions and 9 deletions

View File

@ -289,6 +289,15 @@ namespace Microsoft.AspNetCore.Server.IntegrationTesting
}
}
// https://github.com/aspnet/AspNetCore/issues/8329
if (hostingModel == HostingModel.OutOfProcess &&
server == ServerType.IISExpress &&
Environment.OSVersion.Version.Major == 6 &&
Environment.OSVersion.Version.Minor == 1)
{
continue;
}
variants.Add(new TestVariant()
{
Server = server,

View File

@ -40,7 +40,7 @@ namespace Microsoft.AspNetCore.Server.IISIntegration.FunctionalTests
from s in new string[] { (_minPort - 1).ToString(), (_maxPort + 1).ToString(), "noninteger" }
select new object[] { v, s };
[ConditionalTheory]
[ConditionalTheory(Skip = "https://github.com/aspnet/AspNetCore/issues/8329")]
[MemberData(nameof(TestVariants))]
public async Task EnvVarInWebConfig_Valid(TestVariant variant)
{
@ -56,7 +56,7 @@ namespace Microsoft.AspNetCore.Server.IISIntegration.FunctionalTests
Assert.Equal(port, new Uri(responseText).Port);
}
[ConditionalTheory]
[ConditionalTheory(Skip = "https://github.com/aspnet/AspNetCore/issues/8329")]
[MemberData(nameof(TestVariants))]
public async Task EnvVarInWebConfig_Empty(TestVariant variant)
{
@ -72,7 +72,7 @@ namespace Microsoft.AspNetCore.Server.IISIntegration.FunctionalTests
Assert.InRange(new Uri(responseText).Port, _minPort, _maxPort);
}
[ConditionalTheory]
[ConditionalTheory(Skip = "https://github.com/aspnet/AspNetCore/issues/8329")]
[MemberData(nameof(InvalidTestVariants))]
public async Task EnvVarInWebConfig_Invalid(TestVariant variant, string port)
{

View File

@ -29,7 +29,7 @@ namespace Microsoft.AspNetCore.Server.IISIntegration.FunctionalTests
.WithTfms(Tfm.NetCoreApp30)
.WithAllApplicationTypes();
[ConditionalTheory]
[ConditionalTheory(Skip = "https://github.com/aspnet/AspNetCore/issues/8329")]
[MemberData(nameof(TestVariants))]
public async Task HelloWorld(TestVariant variant)
{

View File

@ -32,7 +32,7 @@ namespace Microsoft.AspNetCore.Server.IISIntegration.FunctionalTests
=> TestMatrix.ForServers(DeployerSelector.ServerType)
.WithTfms(Tfm.NetCoreApp30);
[ConditionalTheory]
[ConditionalTheory(Skip = "https://github.com/aspnet/AspNetCore/issues/8329")]
[RequiresIIS(IISCapability.WindowsAuthentication)]
[MemberData(nameof(TestVariants))]
public async Task NtlmAuthentication(TestVariant variant)

View File

@ -10,13 +10,22 @@ namespace Microsoft.AspNetCore.Server.IISIntegration.FunctionalTests
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Method)]
public sealed class RequiresIISAttribute : Attribute, ITestCondition
{
public bool IsMet => IISExpressAncmSchema.SupportsInProcessHosting;
public bool IsMet { get ; } = IISExpressAncmSchema.SupportsInProcessHosting;
public string SkipReason => IISExpressAncmSchema.SkipReason;
public string SkipReason { get; } = IISExpressAncmSchema.SkipReason;
public RequiresIISAttribute() { }
public RequiresIISAttribute()
{
// https://github.com/aspnet/AspNetCore/issues/8329
if (Environment.OSVersion.Version.Major == 6 &&
Environment.OSVersion.Version.Minor == 1)
{
IsMet = false;
SkipReason = "Skipped on Windows 7";
}
}
public RequiresIISAttribute(IISCapability capabilities)
public RequiresIISAttribute(IISCapability capabilities) : this()
{
// IISCapabilities aren't pertinent to IISExpress
}