Update links and disable warnings related to tests that don't work in Helix (#10427)

This commit is contained in:
Nate McMaster 2019-05-21 16:39:06 -07:00 committed by GitHub
parent 26b53236b1
commit 01a8798936
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
38 changed files with 93 additions and 46 deletions

View File

@ -61,6 +61,6 @@ Most tests that don't just work on helix automatically are ones that depend on t
## How to skip tests on helix ## How to skip tests on helix
There are two main ways to opt out of helix There are two main ways to opt out of helix
- Skipping the entire test project via `<BuildHelixPayload>false</BuildHelixPayload>` in csproj (the default value for this is IsTestProject). - Skipping the entire test project via `<BuildHelixPayload>false</BuildHelixPayload>` in csproj (the default value for this is IsTestProject).
- Skipping an individual test via `[SkipOnHelix]` which might require including a compile reference to: `<Compile Include="$(SharedSourceRoot)test\SkipOnHelixAttribute.cs" />` - Skipping an individual test via `[SkipOnHelix("url to github issue")]` which might require including a compile reference to: `<Compile Include="$(SharedSourceRoot)test\SkipOnHelixAttribute.cs" />`
Make sure to file an issue for any skipped tests and include that in a comment next to either of these Make sure to file an issue for any skipped tests and include that in a comment next to either of these

View File

@ -51,7 +51,11 @@ namespace Microsoft.AspNetCore.Analyzers
return AppContext.BaseDirectory; return AppContext.BaseDirectory;
} }
// This test code needs to be updated to support distributed testing.
// See https://github.com/aspnet/AspNetCore/issues/10422
#pragma warning disable 0618
var solutionDirectory = TestPathUtilities.GetSolutionRootDirectory("Analyzers"); var solutionDirectory = TestPathUtilities.GetSolutionRootDirectory("Analyzers");
#pragma warning restore 0618
var projectDirectory = Path.Combine(solutionDirectory, "Analyzers", "test"); var projectDirectory = Path.Combine(solutionDirectory, "Analyzers", "test");
return projectDirectory; return projectDirectory;
} }

View File

@ -6,7 +6,7 @@
<RootNamespace>Microsoft.AspNetCore.Analyzers</RootNamespace> <RootNamespace>Microsoft.AspNetCore.Analyzers</RootNamespace>
<!-- Tests do not work on Helix or when bin/ directory is not in project directory due to undeclared dependency on test content. --> <!-- Tests do not work on Helix or when bin/ directory is not in project directory due to undeclared dependency on test content. -->
<!-- https://github.com/aspnet/AspNetCore/issues/6549 --> <!-- https://github.com/aspnet/AspNetCore/issues/10422 -->
<BuildHelixPayload>false</BuildHelixPayload> <BuildHelixPayload>false</BuildHelixPayload>
<BaseOutputPath /> <BaseOutputPath />
<OutputPath /> <OutputPath />

View File

@ -21,7 +21,7 @@ namespace Microsoft.AspNetCore.Blazor.Build.Test
} }
[ConditionalFact] [ConditionalFact]
[SkipOnHelix] // https://github.com/aspnet/AspNetCore/issues/6549 [SkipOnHelix("https://github.com/aspnet/AspNetCore/issues/10426")]
public void FindsReferenceAssemblyGraph_ForStandaloneApp() public void FindsReferenceAssemblyGraph_ForStandaloneApp()
{ {
// Arrange // Arrange

View File

@ -2577,7 +2577,7 @@ namespace Microsoft.AspNetCore.Components.Test
} }
[ConditionalFact] [ConditionalFact]
[SkipOnHelix] // https://github.com/aspnet/AspNetCore/issues/7487 [SkipOnHelix("https://github.com/aspnet/AspNetCore/issues/7487")]
public async Task CanTriggerEventHandlerDisposedInEarlierPendingBatchAsync() public async Task CanTriggerEventHandlerDisposedInEarlierPendingBatchAsync()
{ {
// This represents the scenario where the same event handler is being triggered // This represents the scenario where the same event handler is being triggered

View File

@ -117,7 +117,7 @@ namespace Microsoft.AspNetCore.DataProtection
[ConditionalFact] [ConditionalFact]
[Flaky("https://github.com/aspnet/AspNetCore-Internal/issues/2177", FlakyOn.AzP.Windows)] [Flaky("https://github.com/aspnet/AspNetCore-Internal/issues/2177", FlakyOn.AzP.Windows)]
[X509StoreIsAvailable(StoreName.My, StoreLocation.CurrentUser)] [X509StoreIsAvailable(StoreName.My, StoreLocation.CurrentUser)]
[SkipOnHelix] // https://github.com/aspnet/AspNetCore/issues/6720 [SkipOnHelix("https://github.com/aspnet/AspNetCore/issues/6720")]
public void System_UsesProvidedDirectoryAndCertificate() public void System_UsesProvidedDirectoryAndCertificate()
{ {
var filePath = Path.Combine(GetTestFilesPath(), "TestCert.pfx"); var filePath = Path.Combine(GetTestFilesPath(), "TestCert.pfx");
@ -167,7 +167,7 @@ namespace Microsoft.AspNetCore.DataProtection
[ConditionalFact] [ConditionalFact]
[X509StoreIsAvailable(StoreName.My, StoreLocation.CurrentUser)] [X509StoreIsAvailable(StoreName.My, StoreLocation.CurrentUser)]
[SkipOnHelix] // https://github.com/aspnet/AspNetCore/issues/6720 [SkipOnHelix("https://github.com/aspnet/AspNetCore/issues/6720")]
public void System_UsesProvidedCertificateNotFromStore() public void System_UsesProvidedCertificateNotFromStore()
{ {
using (var store = new X509Store(StoreName.My, StoreLocation.CurrentUser)) using (var store = new X509Store(StoreName.My, StoreLocation.CurrentUser))

View File

@ -4,7 +4,7 @@
<TargetFramework>netcoreapp3.0</TargetFramework> <TargetFramework>netcoreapp3.0</TargetFramework>
<!-- Tests do not work on Helix or when bin/ directory is not in project directory due to undeclared dependency on test content. --> <!-- Tests do not work on Helix or when bin/ directory is not in project directory due to undeclared dependency on test content. -->
<!-- https://github.com/aspnet/AspNetCore/issues/6549 --> <!-- https://github.com/aspnet/AspNetCore/issues/10424 -->
<BuildHelixPayload>false</BuildHelixPayload> <BuildHelixPayload>false</BuildHelixPayload>
<BaseOutputPath /> <BaseOutputPath />
<OutputPath /> <OutputPath />

View File

@ -199,7 +199,7 @@ namespace Microsoft.AspNetCore.Hosting
} }
[ConditionalFact] [ConditionalFact]
[SkipOnHelix] // https://github.com/aspnet/AspNetCore/issues/7291 [SkipOnHelix("https://github.com/aspnet/AspNetCore/issues/7291")]
public async Task WebHostStopAsyncUsesDefaultTimeoutIfGivenTokenDoesNotFire() public async Task WebHostStopAsyncUsesDefaultTimeoutIfGivenTokenDoesNotFire()
{ {
var data = new Dictionary<string, string> var data = new Dictionary<string, string>
@ -315,7 +315,7 @@ namespace Microsoft.AspNetCore.Hosting
} }
[ConditionalFact] [ConditionalFact]
[SkipOnHelix] // https://github.com/aspnet/AspNetCore/issues/7291 [SkipOnHelix("https://github.com/aspnet/AspNetCore/issues/7291")]
public void WebHostApplicationLifetimeEventsOrderedCorrectlyDuringShutdown() public void WebHostApplicationLifetimeEventsOrderedCorrectlyDuringShutdown()
{ {
using (var host = CreateBuilder() using (var host = CreateBuilder()

View File

@ -4,7 +4,7 @@
<TargetFramework>netcoreapp3.0</TargetFramework> <TargetFramework>netcoreapp3.0</TargetFramework>
<!-- Tests do not work on Helix or when bin/ directory is not in project directory due to undeclared dependency on test content. --> <!-- Tests do not work on Helix or when bin/ directory is not in project directory due to undeclared dependency on test content. -->
<!-- https://github.com/aspnet/AspNetCore/issues/6549 --> <!-- https://github.com/aspnet/AspNetCore/issues/8247 -->
<BuildHelixPayload>false</BuildHelixPayload> <BuildHelixPayload>false</BuildHelixPayload>
<BaseOutputPath /> <BaseOutputPath />
<OutputPath /> <OutputPath />

View File

@ -49,8 +49,11 @@ namespace Microsoft.AspNetCore.Hosting.FunctionalTests
{ {
var logger = loggerFactory.CreateLogger(testName); var logger = loggerFactory.CreateLogger(testName);
// https://github.com/aspnet/AspNetCore/issues/8247
#pragma warning disable 0618
var applicationPath = Path.Combine(TestPathUtilities.GetSolutionRootDirectory("Hosting"), "test", "testassets", var applicationPath = Path.Combine(TestPathUtilities.GetSolutionRootDirectory("Hosting"), "test", "testassets",
"Microsoft.AspNetCore.Hosting.TestSites"); "Microsoft.AspNetCore.Hosting.TestSites");
#pragma warning restore 0618
var deploymentParameters = new DeploymentParameters( var deploymentParameters = new DeploymentParameters(
applicationPath, applicationPath,

View File

@ -28,7 +28,10 @@ namespace Microsoft.AspNetCore.Hosting.FunctionalTests
{ {
var logger = loggerFactory.CreateLogger(nameof(InjectedStartup_DefaultApplicationNameIsEntryAssembly)); var logger = loggerFactory.CreateLogger(nameof(InjectedStartup_DefaultApplicationNameIsEntryAssembly));
// https://github.com/aspnet/AspNetCore/issues/8247
#pragma warning disable 0618
var applicationPath = Path.Combine(TestPathUtilities.GetSolutionRootDirectory("Hosting"), "test", "testassets", "IStartupInjectionAssemblyName"); var applicationPath = Path.Combine(TestPathUtilities.GetSolutionRootDirectory("Hosting"), "test", "testassets", "IStartupInjectionAssemblyName");
#pragma warning restore 0618
var deploymentParameters = new DeploymentParameters(variant) var deploymentParameters = new DeploymentParameters(variant)
{ {

View File

@ -22,8 +22,8 @@ namespace Microsoft.AspNetCore.ApiAuthorization.IdentityServer
UnsafeEphemeralKeySet : (RuntimeInformation.IsOSPlatform(OSPlatform.OSX) ? X509KeyStorageFlags.PersistKeySet : UnsafeEphemeralKeySet : (RuntimeInformation.IsOSPlatform(OSPlatform.OSX) ? X509KeyStorageFlags.PersistKeySet :
X509KeyStorageFlags.DefaultKeySet); X509KeyStorageFlags.DefaultKeySet);
[ConditionalFact] [ConditionalFact]
[SkipOnHelix] // https://github.com/aspnet/AspNetCore/issues/6720 [SkipOnHelix("https://github.com/aspnet/AspNetCore/issues/6720")]
[FrameworkSkipCondition(RuntimeFrameworks.CLR)] [FrameworkSkipCondition(RuntimeFrameworks.CLR)]
public void Configure_AddsDevelopmentKeyFromConfiguration() public void Configure_AddsDevelopmentKeyFromConfiguration()
{ {
@ -64,7 +64,7 @@ namespace Microsoft.AspNetCore.ApiAuthorization.IdentityServer
} }
[ConditionalFact] [ConditionalFact]
[SkipOnHelix] // https://github.com/aspnet/AspNetCore/issues/6720 [SkipOnHelix("https://github.com/aspnet/AspNetCore/issues/6720")]
public void Configure_LoadsPfxCertificateCredentialFromConfiguration() public void Configure_LoadsPfxCertificateCredentialFromConfiguration()
{ {
// Arrange // Arrange
@ -94,7 +94,7 @@ namespace Microsoft.AspNetCore.ApiAuthorization.IdentityServer
} }
[ConditionalFact] [ConditionalFact]
[SkipOnHelix] // https://github.com/aspnet/AspNetCore/issues/6720 [SkipOnHelix("https://github.com/aspnet/AspNetCore/issues/6720")]
public void Configure_LoadsCertificateStoreCertificateCredentialFromConfiguration() public void Configure_LoadsCertificateStoreCertificateCredentialFromConfiguration()
{ {
try try

View File

@ -24,7 +24,7 @@ namespace Microsoft.AspNetCore.ApiAuthorization.IdentityServer.Configuration
[Fact] [Fact]
public void LoadFromFile_ThrowsIfFileDoesNotExist() public void LoadFromFile_ThrowsIfFileDoesNotExist()
{ {
// Arrange, Act & Assert // Arrange, Act & Assert
var exception = Assert.Throws<InvalidOperationException>(() => SigningKeysLoader.LoadFromFile("./nonexisting.pfx", "", DefaultFlags)); var exception = Assert.Throws<InvalidOperationException>(() => SigningKeysLoader.LoadFromFile("./nonexisting.pfx", "", DefaultFlags));
Assert.Equal($"There was an error loading the certificate. The file './nonexisting.pfx' was not found.", exception.Message); Assert.Equal($"There was an error loading the certificate. The file './nonexisting.pfx' was not found.", exception.Message);
} }
@ -58,8 +58,8 @@ namespace Microsoft.AspNetCore.ApiAuthorization.IdentityServer.Configuration
Assert.Equal("Couldn't find a valid certificate with subject 'Invalid' on the 'CurrentUser\\My'", exception.Message); Assert.Equal("Couldn't find a valid certificate with subject 'Invalid' on the 'CurrentUser\\My'", exception.Message);
} }
[ConditionalFact] [ConditionalFact]
[SkipOnHelix] // https://github.com/aspnet/AspNetCore/issues/6720 [SkipOnHelix("https://github.com/aspnet/AspNetCore/issues/6720")]
public static void LoadFromStoreCert_SkipsCertificatesNotYetValid() public static void LoadFromStoreCert_SkipsCertificatesNotYetValid()
{ {
try try
@ -81,8 +81,8 @@ namespace Microsoft.AspNetCore.ApiAuthorization.IdentityServer.Configuration
} }
} }
[ConditionalFact] [ConditionalFact]
[SkipOnHelix] // https://github.com/aspnet/AspNetCore/issues/6720 [SkipOnHelix("https://github.com/aspnet/AspNetCore/issues/6720")]
public static void LoadFromStoreCert_PrefersCertificatesCloserToExpirationDate() public static void LoadFromStoreCert_PrefersCertificatesCloserToExpirationDate()
{ {
try try
@ -104,8 +104,8 @@ namespace Microsoft.AspNetCore.ApiAuthorization.IdentityServer.Configuration
} }
} }
[ConditionalFact] [ConditionalFact]
[SkipOnHelix] // https://github.com/aspnet/AspNetCore/issues/6720 [SkipOnHelix("https://github.com/aspnet/AspNetCore/issues/6720")]
public static void LoadFromStoreCert_SkipsExpiredCertificates() public static void LoadFromStoreCert_SkipsExpiredCertificates()
{ {
try try

View File

@ -6,7 +6,7 @@
<DefaultItemExcludes>$(DefaultItemExcludes);node_modules\**\*</DefaultItemExcludes> <DefaultItemExcludes>$(DefaultItemExcludes);node_modules\**\*</DefaultItemExcludes>
<!-- Tests do not work on Helix or when bin/ directory is not in project directory due to undeclared dependency on test content. --> <!-- Tests do not work on Helix or when bin/ directory is not in project directory due to undeclared dependency on test content. -->
<!-- https://github.com/aspnet/AspNetCore/issues/6549 --> <!-- https://github.com/aspnet/AspNetCore/issues/7990 -->
<BuildHelixPayload>false</BuildHelixPayload> <BuildHelixPayload>false</BuildHelixPayload>
<BaseOutputPath /> <BaseOutputPath />
<OutputPath /> <OutputPath />

View File

@ -68,7 +68,10 @@ namespace FunctionalTests
private static async Task<SamplesDeploymentResult> CreateDeployments(ILoggerFactory loggerFactory, string startup) private static async Task<SamplesDeploymentResult> CreateDeployments(ILoggerFactory loggerFactory, string startup)
{ {
// https://github.com/aspnet/AspNetCore/issues/7990
#pragma warning disable 0618
var solutionPath = TestPathUtilities.GetSolutionRootDirectory("Middleware"); var solutionPath = TestPathUtilities.GetSolutionRootDirectory("Middleware");
#pragma warning restore 0618
var configuration = var configuration =
#if RELEASE #if RELEASE

View File

@ -9,7 +9,10 @@ namespace E2ETests
{ {
public static string GetApplicationPath() public static string GetApplicationPath()
{ {
// https://github.com/aspnet/AspNetCore/issues/8343
#pragma warning disable 0618
var solutionDirectory = TestPathUtilities.GetSolutionRootDirectory("MusicStore"); var solutionDirectory = TestPathUtilities.GetSolutionRootDirectory("MusicStore");
#pragma warning restore 0618
return Path.GetFullPath(Path.Combine(solutionDirectory, "samples", "MusicStore")); return Path.GetFullPath(Path.Combine(solutionDirectory, "samples", "MusicStore"));
} }

View File

@ -9,7 +9,7 @@
<WarningsNotAsErrors>$(WarningsNotAsErrors);xUnit1004</WarningsNotAsErrors> <WarningsNotAsErrors>$(WarningsNotAsErrors);xUnit1004</WarningsNotAsErrors>
<!-- Temporarily suppress warnings about Microsoft.AspNetCore.Server.IntegrationTesting --> <!-- Temporarily suppress warnings about Microsoft.AspNetCore.Server.IntegrationTesting -->
<NoWarn>$(NoWarn);NU1605</NoWarn> <NoWarn>$(NoWarn);NU1605</NoWarn>
<!-- https://github.com/aspnet/AspNetCore/issues/6549 --> <!-- https://github.com/aspnet/AspNetCore/issues/8343 -->
<BuildHelixPayload>false</BuildHelixPayload> <BuildHelixPayload>false</BuildHelixPayload>
<IsTestProject>false</IsTestProject> <IsTestProject>false</IsTestProject>
<IsReferenceAssemblyProject>false</IsReferenceAssemblyProject> <IsReferenceAssemblyProject>false</IsReferenceAssemblyProject>

View File

@ -27,13 +27,16 @@ namespace Microsoft.AspNetCore.Mvc
private static string GetProjectDirectory() private static string GetProjectDirectory()
{ {
// On helix we use the published test files // On helix we use the published test files
if (SkipOnHelixAttribute.OnHelix()) if (SkipOnHelixAttribute.OnHelix())
{ {
return AppContext.BaseDirectory; return AppContext.BaseDirectory;
} }
// https://github.com/aspnet/AspNetCore/issues/9431
#pragma warning disable 0618
var solutionDirectory = TestPathUtilities.GetSolutionRootDirectory("Mvc"); var solutionDirectory = TestPathUtilities.GetSolutionRootDirectory("Mvc");
#pragma warning restore 0618
var projectDirectory = Path.Combine(solutionDirectory, "Mvc.Analyzers", "test"); var projectDirectory = Path.Combine(solutionDirectory, "Mvc.Analyzers", "test");
return projectDirectory; return projectDirectory;
} }

View File

@ -6,7 +6,7 @@
<RootNamespace>Microsoft.AspNetCore.Mvc.Analyzers</RootNamespace> <RootNamespace>Microsoft.AspNetCore.Mvc.Analyzers</RootNamespace>
<!-- Tests do not work on Helix or when bin/ directory is not in project directory due to undeclared dependency on test content. --> <!-- Tests do not work on Helix or when bin/ directory is not in project directory due to undeclared dependency on test content. -->
<!-- https://github.com/aspnet/AspNetCore/issues/6549 --> <!-- https://github.com/aspnet/AspNetCore/issues/9431 -->
<BuildHelixPayload>false</BuildHelixPayload> <BuildHelixPayload>false</BuildHelixPayload>
<BaseOutputPath /> <BaseOutputPath />
<OutputPath /> <OutputPath />

View File

@ -27,13 +27,16 @@ namespace Microsoft.AspNetCore.Mvc
private static string GetProjectDirectory() private static string GetProjectDirectory()
{ {
// On helix we use the published test files // On helix we use the published test files
if (SkipOnHelixAttribute.OnHelix()) if (SkipOnHelixAttribute.OnHelix())
{ {
return AppContext.BaseDirectory; return AppContext.BaseDirectory;
} }
// https://github.com/aspnet/AspNetCore/issues/9431
#pragma warning disable 0618
var solutionDirectory = TestPathUtilities.GetSolutionRootDirectory("Mvc"); var solutionDirectory = TestPathUtilities.GetSolutionRootDirectory("Mvc");
#pragma warning restore 0618
var projectDirectory = Path.Combine(solutionDirectory, "Mvc.Api.Analyzers", "test"); var projectDirectory = Path.Combine(solutionDirectory, "Mvc.Api.Analyzers", "test");
return projectDirectory; return projectDirectory;
} }

View File

@ -5,7 +5,7 @@
<RootNamespace>Microsoft.AspNetCore.Mvc.Api.Analyzers</RootNamespace> <RootNamespace>Microsoft.AspNetCore.Mvc.Api.Analyzers</RootNamespace>
<!-- Tests do not work on Helix or when bin/ directory is not in project directory due to undeclared dependency on test content. --> <!-- Tests do not work on Helix or when bin/ directory is not in project directory due to undeclared dependency on test content. -->
<!-- https://github.com/aspnet/AspNetCore/issues/6549 --> <!-- https://github.com/aspnet/AspNetCore/issues/9431 -->
<BuildHelixPayload>false</BuildHelixPayload> <BuildHelixPayload>false</BuildHelixPayload>
<BaseOutputPath /> <BaseOutputPath />
<OutputPath /> <OutputPath />

View File

@ -191,7 +191,11 @@ namespace Microsoft.AspNetCore.Mvc
{ {
// The build system compiles every file under the resources folder as a resource available at runtime // The build system compiles every file under the resources folder as a resource available at runtime
// with the same name as the file name. Need to update this file on disc. // with the same name as the file name. Need to update this file on disc.
// https://github.com/aspnet/AspNetCore/issues/10423
#pragma warning disable 0618
var solutionPath = TestPathUtilities.GetSolutionRootDirectory("Mvc"); var solutionPath = TestPathUtilities.GetSolutionRootDirectory("Mvc");
#pragma warning restore 0618
var projectPath = Path.Combine(solutionPath, "test", assembly.GetName().Name); var projectPath = Path.Combine(solutionPath, "test", assembly.GetName().Name);
var fullPath = Path.Combine(projectPath, resourceName); var fullPath = Path.Combine(projectPath, resourceName);
WriteFile(fullPath, content); WriteFile(fullPath, content);

View File

@ -9,7 +9,7 @@
<TestGroupName>Mvc.FunctionalTests</TestGroupName> <TestGroupName>Mvc.FunctionalTests</TestGroupName>
<!-- The test asset projects this depends on are not strong-named. --> <!-- The test asset projects this depends on are not strong-named. -->
<SignAssembly>false</SignAssembly> <SignAssembly>false</SignAssembly>
<!-- https://github.com/aspnet/AspNetCore/issues/6549 --> <!-- https://github.com/aspnet/AspNetCore/issues/10423 -->
<BuildHelixPayload>false</BuildHelixPayload> <BuildHelixPayload>false</BuildHelixPayload>
</PropertyGroup> </PropertyGroup>

View File

@ -49,7 +49,7 @@ namespace Microsoft.AspNetCore.Authentication.DataHandler
} }
[ConditionalFact] [ConditionalFact]
[SkipOnHelix] [SkipOnHelix("https://github.com/aspnet/AspNetCore-Internal/issues/1974")]
public void UnprotectWithDifferentPurposeFails() public void UnprotectWithDifferentPurposeFails()
{ {
var provider = ServiceProvider.GetRequiredService<IDataProtectionProvider>(); var provider = ServiceProvider.GetRequiredService<IDataProtectionProvider>();

View File

@ -20,11 +20,15 @@ namespace Microsoft.AspNetCore.Server.IIS.Performance
[IterationSetup] [IterationSetup]
public void Setup() public void Setup()
{ {
// Deployers do not work in distributed environments
// see https://github.com/aspnet/AspNetCore/issues/10268 and https://github.com/aspnet/Extensions/issues/1697
#pragma warning disable 0618
var deploymentParameters = new DeploymentParameters(Path.Combine(TestPathUtilities.GetSolutionRootDirectory("IISIntegration"), "test/testassets/InProcessWebSite"), var deploymentParameters = new DeploymentParameters(Path.Combine(TestPathUtilities.GetSolutionRootDirectory("IISIntegration"), "test/testassets/InProcessWebSite"),
ServerType.IISExpress, ServerType.IISExpress,
RuntimeFlavor.CoreClr, RuntimeFlavor.CoreClr,
RuntimeArchitecture.x64) RuntimeArchitecture.x64)
{ {
#pragma warning restore 0618
ServerConfigTemplateContent = File.ReadAllText("IISExpress.config"), ServerConfigTemplateContent = File.ReadAllText("IISExpress.config"),
SiteName = "HttpTestSite", SiteName = "HttpTestSite",
TargetFramework = "netcoreapp2.1", TargetFramework = "netcoreapp2.1",

View File

@ -113,8 +113,7 @@ namespace Microsoft.AspNetCore.Server.IISIntegration.FunctionalTests
[SkipIfNotAdmin] [SkipIfNotAdmin]
[RequiresNewShim] [RequiresNewShim]
[RequiresIIS(IISCapability.PoolEnvironmentVariables)] [RequiresIIS(IISCapability.PoolEnvironmentVariables)]
[SkipOnHelix] [SkipOnHelix("https://github.com/aspnet/AspNetCore-Internal/issues/2221")]
[Flaky("https://github.com/aspnet/AspNetCore-Internal/issues/2221", FlakyOn.Helix.All)]
public async Task StartsWithDotnetInstallLocation(RuntimeArchitecture runtimeArchitecture) public async Task StartsWithDotnetInstallLocation(RuntimeArchitecture runtimeArchitecture)
{ {
var deploymentParameters = Fixture.GetBaseDeploymentParameters(); var deploymentParameters = Fixture.GetBaseDeploymentParameters();

View File

@ -42,7 +42,11 @@ namespace Microsoft.AspNetCore.Server.IISIntegration.FunctionalTests
private string GetProjectReferencePublishLocation(DeploymentParameters deploymentParameters) private string GetProjectReferencePublishLocation(DeploymentParameters deploymentParameters)
{ {
// Deployers do not work in distributed environments
// see https://github.com/aspnet/AspNetCore/issues/10268 and https://github.com/aspnet/Extensions/issues/1697
#pragma warning disable 0618
var testAssetsBasePath = Path.Combine(TestPathUtilities.GetSolutionRootDirectory("IISIntegration"), "IIS", "test", "testassets", _applicationName); var testAssetsBasePath = Path.Combine(TestPathUtilities.GetSolutionRootDirectory("IISIntegration"), "IIS", "test", "testassets", _applicationName);
#pragma warning restore 0618
var configuration = this.GetType().GetTypeInfo().Assembly.GetCustomAttribute<AssemblyConfigurationAttribute>().Configuration; var configuration = this.GetType().GetTypeInfo().Assembly.GetCustomAttribute<AssemblyConfigurationAttribute>().Configuration;
var path = Path.Combine(testAssetsBasePath, "bin", configuration, deploymentParameters.TargetFramework, "publish", GetProfileName(deploymentParameters)); var path = Path.Combine(testAssetsBasePath, "bin", configuration, deploymentParameters.TargetFramework, "publish", GetProfileName(deploymentParameters));
return path; return path;

View File

@ -15,11 +15,14 @@ namespace IIS.FunctionalTests
[ConditionalFact] [ConditionalFact]
[OSSkipCondition(OperatingSystems.Linux | OperatingSystems.MacOSX)] [OSSkipCondition(OperatingSystems.Linux | OperatingSystems.MacOSX)]
[RequiresIIS(IISCapability.TracingModule)] [RequiresIIS(IISCapability.TracingModule)]
[Flaky("https://github.com/aspnet/AspNetCore-Internal/issues/2222", FlakyOn.Helix.All)] [SkipOnHelix("https://github.com/aspnet/AspNetCore-Internal/issues/2222")]
[SkipOnHelix]
public void CheckMofFile() public void CheckMofFile()
{ {
// This test code needs to be updated to support distributed testing.
// See https://github.com/aspnet/AspNetCore-Internal/issues/2222
#pragma warning disable 0618
var path = Path.Combine(TestPathUtilities.GetSolutionRootDirectory("IISIntegration"), "aspnetcoremodulev2", "aspnetcore", "ancm.mof"); var path = Path.Combine(TestPathUtilities.GetSolutionRootDirectory("IISIntegration"), "aspnetcoremodulev2", "aspnetcore", "ancm.mof");
#pragma warning restore 0618
var process = Process.Start("mofcomp.exe", path); var process = Process.Start("mofcomp.exe", path);
process.WaitForExit(); process.WaitForExit();
Assert.Equal(0, process.ExitCode); Assert.Equal(0, process.ExitCode);

View File

@ -34,7 +34,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.FunctionalTests
[ConditionalFact] [ConditionalFact]
[HostNameIsReachable] [HostNameIsReachable]
[SkipOnHelix] // https://github.com/aspnet/AspNetCore/issues/7267 [SkipOnHelix("https://github.com/aspnet/AspNetCore/issues/7267")]
public async Task RegisterAddresses_HostName_Success() public async Task RegisterAddresses_HostName_Success()
{ {
var hostName = Dns.GetHostName(); var hostName = Dns.GetHostName();
@ -335,7 +335,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.FunctionalTests
[ConditionalFact] [ConditionalFact]
[HostNameIsReachable] [HostNameIsReachable]
[SkipOnHelix] // https://github.com/aspnet/AspNetCore/issues/7267 [SkipOnHelix("https://github.com/aspnet/AspNetCore/issues/7267")]
public async Task ListenAnyIP_HostName_Success() public async Task ListenAnyIP_HostName_Success()
{ {
var hostName = Dns.GetHostName(); var hostName = Dns.GetHostName();

View File

@ -20,7 +20,7 @@ using Xunit;
namespace Microsoft.AspNetCore.Server.Kestrel.FunctionalTests.Http2 namespace Microsoft.AspNetCore.Server.Kestrel.FunctionalTests.Http2
{ {
[OSSkipCondition(OperatingSystems.MacOSX, SkipReason = "Missing SslStream ALPN support: https://github.com/dotnet/corefx/issues/30492")] [OSSkipCondition(OperatingSystems.MacOSX, SkipReason = "Missing SslStream ALPN support: https://github.com/dotnet/corefx/issues/30492")]
[SkipOnHelix(Queues = "Debian.8.Amd64.Open")] // Debian 8 uses OpenSSL 1.0.1 which does not support HTTP/2 [SkipOnHelix("https://github.com/aspnet/AspNetCore/issues/10428", Queues = "Debian.8.Amd64.Open")] // Debian 8 uses OpenSSL 1.0.1 which does not support HTTP/2
[MinimumOSVersion(OperatingSystems.Windows, WindowsVersions.Win10)] [MinimumOSVersion(OperatingSystems.Windows, WindowsVersions.Win10)]
public class HandshakeTests : LoggedTest public class HandshakeTests : LoggedTest
{ {

View File

@ -23,7 +23,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.FunctionalTests.Http2
{ {
[OSSkipCondition(OperatingSystems.MacOSX, SkipReason = "Missing SslStream ALPN support: https://github.com/dotnet/corefx/issues/30492")] [OSSkipCondition(OperatingSystems.MacOSX, SkipReason = "Missing SslStream ALPN support: https://github.com/dotnet/corefx/issues/30492")]
[MinimumOSVersion(OperatingSystems.Windows, WindowsVersions.Win10)] [MinimumOSVersion(OperatingSystems.Windows, WindowsVersions.Win10)]
[SkipOnHelix(Queues = "Debian.8.Amd64.Open")] // Debian 8 uses OpenSSL 1.0.1 which does not support HTTP/2 [SkipOnHelix("https://github.com/aspnet/AspNetCore/issues/10428", Queues = "Debian.8.Amd64.Open")] // Debian 8 uses OpenSSL 1.0.1 which does not support HTTP/2
public class ShutdownTests : TestApplicationErrorLoggerLoggedTest public class ShutdownTests : TestApplicationErrorLoggerLoggedTest
{ {
private static X509Certificate2 _x509Certificate2 = TestResources.GetTestCertificate(); private static X509Certificate2 _x509Certificate2 = TestResources.GetTestCertificate();
@ -43,7 +43,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.FunctionalTests.Http2
} }
[ConditionalFact] [ConditionalFact]
[SkipOnHelix(Queues = "Fedora.28.Amd64.Open")] // https://github.com/aspnet/AspNetCore/issues/9985 [SkipOnHelix("https://github.com/aspnet/AspNetCore/issues/9985", Queues = "Fedora.28.Amd64.Open")] // https://github.com/aspnet/AspNetCore/issues/9985
[Flaky("https://github.com/aspnet/AspNetCore/issues/9985", FlakyOn.All)] [Flaky("https://github.com/aspnet/AspNetCore/issues/9985", FlakyOn.All)]
public async Task GracefulShutdownWaitsForRequestsToFinish() public async Task GracefulShutdownWaitsForRequestsToFinish()
{ {

View File

@ -30,7 +30,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.InMemory.FunctionalTests.Http2
private static X509Certificate2 _x509Certificate2 = TestResources.GetTestCertificate(); private static X509Certificate2 _x509Certificate2 = TestResources.GetTestCertificate();
[ConditionalFact] [ConditionalFact]
[SkipOnHelix] // https://github.com/aspnet/AspNetCore/issues/7000 [SkipOnHelix("https://github.com/aspnet/AspNetCore/issues/7000 ")]
public async Task TlsHandshakeRejectsTlsLessThan12() public async Task TlsHandshakeRejectsTlsLessThan12()
{ {
using (var server = new TestServer(context => using (var server = new TestServer(context =>

View File

@ -21,7 +21,7 @@ namespace Interop.FunctionalTests
[OSSkipCondition(OperatingSystems.MacOSX, SkipReason = "Missing SslStream ALPN support: https://github.com/dotnet/corefx/issues/30492")] [OSSkipCondition(OperatingSystems.MacOSX, SkipReason = "Missing SslStream ALPN support: https://github.com/dotnet/corefx/issues/30492")]
[MinimumOSVersion(OperatingSystems.Windows, WindowsVersions.Win81, [MinimumOSVersion(OperatingSystems.Windows, WindowsVersions.Win81,
SkipReason = "Missing Windows ALPN support: https://en.wikipedia.org/wiki/Application-Layer_Protocol_Negotiation#Support")] SkipReason = "Missing Windows ALPN support: https://en.wikipedia.org/wiki/Application-Layer_Protocol_Negotiation#Support")]
[SkipOnHelix(Queues = "Debian.8.Amd64.Open")] // Debian 8 uses OpenSSL 1.0.1 which does not support HTTP/2 [SkipOnHelix("https://github.com/aspnet/AspNetCore/issues/10428", Queues = "Debian.8.Amd64.Open")] // Debian 8 uses OpenSSL 1.0.1 which does not support HTTP/2
public class H2SpecTests : LoggedTest public class H2SpecTests : LoggedTest
{ {
[ConditionalTheory] [ConditionalTheory]

View File

@ -12,6 +12,17 @@ namespace Microsoft.AspNetCore.Testing.xunit
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Class, AllowMultiple = false)] [AttributeUsage(AttributeTargets.Method | AttributeTargets.Class, AllowMultiple = false)]
public class SkipOnHelixAttribute : Attribute, ITestCondition public class SkipOnHelixAttribute : Attribute, ITestCondition
{ {
public SkipOnHelixAttribute(string issueUrl)
{
if (string.IsNullOrEmpty(issueUrl))
{
throw new ArgumentException();
}
IssueUrl = issueUrl;
}
public string IssueUrl { get; }
public bool IsMet public bool IsMet
{ {
get get
@ -33,7 +44,7 @@ namespace Microsoft.AspNetCore.Testing.xunit
} }
public static bool OnHelix() => !string.IsNullOrEmpty(GetTargetHelixQueue()); public static bool OnHelix() => !string.IsNullOrEmpty(GetTargetHelixQueue());
public static string GetTargetHelixQueue() => Environment.GetEnvironmentVariable("helix"); public static string GetTargetHelixQueue() => Environment.GetEnvironmentVariable("helix");
} }
} }

View File

@ -109,7 +109,7 @@ namespace Microsoft.AspNetCore.Certificates.Generation.Tests
} }
[ConditionalFact] [ConditionalFact]
[SkipOnHelix] // https://github.com/aspnet/AspNetCore/issues/6721 [SkipOnHelix("https://github.com/aspnet/AspNetCore/issues/6721")]
public void EnsureCreateHttpsCertificate2_CreatesACertificate_WhenThereAreNoHttpsCertificates() public void EnsureCreateHttpsCertificate2_CreatesACertificate_WhenThereAreNoHttpsCertificates()
{ {
try try

View File

@ -24,7 +24,7 @@ namespace Microsoft.DotNet.Watcher.Tools.FunctionalTests
} }
[ConditionalFact] [ConditionalFact]
[SkipOnHelix] // https://github.com/aspnet/AspNetCore/issues/8267 [SkipOnHelix("https://github.com/aspnet/AspNetCore/issues/8267")]
public async Task RunsWithDotnetWatchEnvVariable() public async Task RunsWithDotnetWatchEnvVariable()
{ {
Assert.True(string.IsNullOrEmpty(Environment.GetEnvironmentVariable("DOTNET_WATCH")), "DOTNET_WATCH cannot be set already when this test is running"); Assert.True(string.IsNullOrEmpty(Environment.GetEnvironmentVariable("DOTNET_WATCH")), "DOTNET_WATCH cannot be set already when this test is running");

View File

@ -87,7 +87,7 @@ namespace Microsoft.DotNet.Watcher.Tools.FunctionalTests
} }
[ConditionalFact] [ConditionalFact]
[SkipOnHelix] // https://github.com/aspnet/AspNetCore/issues/8267 [SkipOnHelix("https://github.com/aspnet/AspNetCore/issues/8267")]
public async Task ChangeExcludedFile() public async Task ChangeExcludedFile()
{ {
await _app.StartWatcherAsync(); await _app.StartWatcherAsync();
@ -101,7 +101,7 @@ namespace Microsoft.DotNet.Watcher.Tools.FunctionalTests
} }
[ConditionalFact] [ConditionalFact]
[SkipOnHelix] // https://github.com/aspnet/AspNetCore/issues/8267 [SkipOnHelix("https://github.com/aspnet/AspNetCore/issues/8267")]
public async Task ListsFiles() public async Task ListsFiles()
{ {
await _app.PrepareAsync(); await _app.PrepareAsync();

View File

@ -44,7 +44,7 @@ namespace Microsoft.DotNet.Watcher.Tools.FunctionalTests
} }
[ConditionalFact] [ConditionalFact]
[SkipOnHelix] // https://github.com/aspnet/AspNetCore/issues/8267 [SkipOnHelix("https://github.com/aspnet/AspNetCore/issues/8267")]
public async Task RestartProcessThatTerminatesAfterFileChange() public async Task RestartProcessThatTerminatesAfterFileChange()
{ {
await _app.StartWatcherAsync(); await _app.StartWatcherAsync();