Skip default port tests (#12983)
This commit is contained in:
parent
5496f70471
commit
2d8cd179a1
|
|
@ -46,9 +46,9 @@ namespace Microsoft.AspNetCore.Server.Kestrel.FunctionalTests
|
||||||
await RegisterAddresses_Success(addressInput, testUrl);
|
await RegisterAddresses_Success(addressInput, testUrl);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Theory]
|
[ConditionalTheory]
|
||||||
[MemberData(nameof(AddressRegistrationDataIPv4Port5000Default))]
|
[MemberData(nameof(AddressRegistrationDataIPv4Port5000Default))]
|
||||||
[Flaky("https://github.com/aspnet/AspNetCore-Internal/issues/2711", FlakyOn.AzP.All)]
|
[SkipOnCI]
|
||||||
public async Task RegisterAddresses_IPv4Port5000Default_Success(string addressInput, string testUrl)
|
public async Task RegisterAddresses_IPv4Port5000Default_Success(string addressInput, string testUrl)
|
||||||
{
|
{
|
||||||
if (!CanBindToEndpoint(IPAddress.Loopback, 5000))
|
if (!CanBindToEndpoint(IPAddress.Loopback, 5000))
|
||||||
|
|
@ -59,9 +59,9 @@ namespace Microsoft.AspNetCore.Server.Kestrel.FunctionalTests
|
||||||
await RegisterAddresses_Success(addressInput, testUrl, 5000);
|
await RegisterAddresses_Success(addressInput, testUrl, 5000);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Theory]
|
[ConditionalTheory]
|
||||||
[MemberData(nameof(AddressRegistrationDataIPv4Port80))]
|
[MemberData(nameof(AddressRegistrationDataIPv4Port80))]
|
||||||
[Flaky("https://github.com/aspnet/AspNetCore-Internal/issues/2711", FlakyOn.AzP.All)]
|
[SkipOnCI]
|
||||||
public async Task RegisterAddresses_IPv4Port80_Success(string addressInput, string testUrl)
|
public async Task RegisterAddresses_IPv4Port80_Success(string addressInput, string testUrl)
|
||||||
{
|
{
|
||||||
if (!CanBindToEndpoint(IPAddress.Loopback, 80))
|
if (!CanBindToEndpoint(IPAddress.Loopback, 80))
|
||||||
|
|
@ -415,8 +415,8 @@ namespace Microsoft.AspNetCore.Server.Kestrel.FunctionalTests
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[Fact]
|
[ConditionalFact]
|
||||||
[Flaky("https://github.com/aspnet/AspNetCore-Internal/issues/2711", FlakyOn.AzP.All)]
|
[SkipOnCI]
|
||||||
public Task DefaultsServerAddress_BindsToIPv4()
|
public Task DefaultsServerAddress_BindsToIPv4()
|
||||||
{
|
{
|
||||||
if (!CanBindToEndpoint(IPAddress.Loopback, 5000))
|
if (!CanBindToEndpoint(IPAddress.Loopback, 5000))
|
||||||
|
|
@ -429,7 +429,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.FunctionalTests
|
||||||
|
|
||||||
[ConditionalFact]
|
[ConditionalFact]
|
||||||
[IPv6SupportedCondition]
|
[IPv6SupportedCondition]
|
||||||
[Flaky("https://github.com/aspnet/AspNetCore-Internal/issues/2711", FlakyOn.AzP.All)]
|
[SkipOnCI]
|
||||||
public Task DefaultsServerAddress_BindsToIPv6()
|
public Task DefaultsServerAddress_BindsToIPv6()
|
||||||
{
|
{
|
||||||
if (!CanBindToEndpoint(IPAddress.Loopback, 5000) || !CanBindToEndpoint(IPAddress.IPv6Loopback, 5000))
|
if (!CanBindToEndpoint(IPAddress.Loopback, 5000) || !CanBindToEndpoint(IPAddress.IPv6Loopback, 5000))
|
||||||
|
|
@ -440,8 +440,8 @@ namespace Microsoft.AspNetCore.Server.Kestrel.FunctionalTests
|
||||||
return RegisterDefaultServerAddresses_Success(new[] { "http://127.0.0.1:5000", "http://[::1]:5000" });
|
return RegisterDefaultServerAddresses_Success(new[] { "http://127.0.0.1:5000", "http://[::1]:5000" });
|
||||||
}
|
}
|
||||||
|
|
||||||
[Fact]
|
[ConditionalFact]
|
||||||
[Flaky("https://github.com/aspnet/AspNetCore-Internal/issues/2711", FlakyOn.AzP.All)]
|
[SkipOnCI]
|
||||||
public Task DefaultsServerAddress_BindsToIPv4WithHttps()
|
public Task DefaultsServerAddress_BindsToIPv4WithHttps()
|
||||||
{
|
{
|
||||||
if (!CanBindToEndpoint(IPAddress.Loopback, 5000) || !CanBindToEndpoint(IPAddress.Loopback, 5001))
|
if (!CanBindToEndpoint(IPAddress.Loopback, 5000) || !CanBindToEndpoint(IPAddress.Loopback, 5001))
|
||||||
|
|
@ -455,7 +455,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.FunctionalTests
|
||||||
|
|
||||||
[ConditionalFact]
|
[ConditionalFact]
|
||||||
[IPv6SupportedCondition]
|
[IPv6SupportedCondition]
|
||||||
[Flaky("https://github.com/aspnet/AspNetCore-Internal/issues/1756", FlakyOn.AzP.All)]
|
[SkipOnCI]
|
||||||
public Task DefaultsServerAddress_BindsToIPv6WithHttps()
|
public Task DefaultsServerAddress_BindsToIPv6WithHttps()
|
||||||
{
|
{
|
||||||
if (!CanBindToEndpoint(IPAddress.Loopback, 5000) || !CanBindToEndpoint(IPAddress.IPv6Loopback, 5000)
|
if (!CanBindToEndpoint(IPAddress.Loopback, 5000) || !CanBindToEndpoint(IPAddress.IPv6Loopback, 5000)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue