Skip to content

Commit

Permalink
Re-enable tests skipped for old reasons
Browse files Browse the repository at this point in the history
  • Loading branch information
dougbu committed Aug 30, 2020
1 parent b4a198c commit e7d02dc
Show file tree
Hide file tree
Showing 15 changed files with 23 additions and 46 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public WebAssemblyStringComparisonTest(
{
}

[Fact(Skip = "https://github.com/dotnet/runtime/issues/38126")]
[Fact]
public void InvariantCultureWorksAsExpected()
{
Navigate(ServerPathBase, noReload: false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public async Task Index_ReturnsNoCartItems_WhenNoItemsInCart()
Assert.Equal(0, model.CartTotal);
}

[Fact(Skip = "https://github.com/dotnet/aspnetcore/issues/12097")]
[Fact]
public async Task Index_ReturnsCartItems_WhenItemsInCart()
{
// Arrange
Expand Down Expand Up @@ -113,7 +113,7 @@ public async Task Index_ReturnsCartItems_WhenItemsInCart()
Assert.Equal(5 * 10, model.CartTotal);
}

[Fact(Skip = "https://github.com/dotnet/aspnetcore/issues/12097")]
[Fact]
public async Task AddToCart_AddsItemToCart()
{
// Arrange
Expand Down Expand Up @@ -155,7 +155,7 @@ public async Task AddToCart_AddsItemToCart()
Assert.Equal("Index", redirectResult.ActionName);
}

[Fact(Skip = "https://github.com/dotnet/aspnetcore/issues/12097")]
[Fact]
public async Task RemoveFromCart_RemovesItemFromCart()
{
// Arrange
Expand Down
2 changes: 1 addition & 1 deletion src/Mvc/test/Mvc.FunctionalTests/RazorPagesTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@ public async Task PolymorphicPropertiesOnPageModelsAreBound()
Assert.Equal(expected, content);
}

[Fact(Skip = "https://github.com/dotnet/corefx/issues/36024")]
[Fact]
public async Task PolymorphicPropertiesOnPageModelsAreValidated()
{
// Arrange
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public SystemTextJsonInputFormatterTest(MvcTestFixture<FormatterWebSite.StartupW
{
}

[Fact(Skip = "https://github.com/dotnet/runtime/issues/38539")]
[Fact]
public override Task JsonInputFormatter_RoundtripsRecordType()
=> base.JsonInputFormatter_RoundtripsRecordType();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1852,7 +1852,7 @@ public async Task ComplexBinder_BindsKeyValuePairProperty_EmptyPrefix_Success()
Assert.Equal("10", entry.RawValue);
}

[Fact(Skip = "https://github.com/dotnet/aspnetcore/issues/11813")]
[Fact]
public async Task ComplexBinder_BindsKeyValuePairProperty_NoCollectionData()
{
// Arrange
Expand Down Expand Up @@ -1901,7 +1901,7 @@ public async Task ComplexBinder_BindsKeyValuePairProperty_NoCollectionData()
Assert.Single(entry.Errors);
}

[Fact(Skip = "https://github.com/dotnet/aspnetcore/issues/11813")]
[Fact]
public async Task ComplexBinder_BindsKeyValuePairProperty_NoData()
{
// Arrange
Expand Down Expand Up @@ -3768,7 +3768,7 @@ private IModelBinder GetModelBinder(
protected virtual ModelBindingTestContext GetTestContext(
Action<HttpRequest> updateRequest = null,
Action<MvcOptions> updateOptions = null,
IModelMetadataProvider metadataProvider = null)
IModelMetadataProvider metadataProvider = null)
=> ModelBindingTestHelper.GetTestContext(updateRequest, updateOptions, actionDescriptor: null, metadataProvider);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ public async Task KeyValuePairModelBinder_BindsKeyValuePairOfSimpleType_EmptyPre
Assert.Equal("10", entry.RawValue);
}

[Fact(Skip = "https://github.com/dotnet/aspnetcore/issues/11813")]
[Fact]
public async Task KeyValuePairModelBinder_BindsKeyValuePairOfSimpleType_NoData()
{
// Arrange
Expand Down Expand Up @@ -476,7 +476,7 @@ public async Task KeyValuePairModelBinder_BindsKeyValuePairOfComplexType_EmptyPr
Assert.Equal("10", entry.RawValue);
}

[Fact(Skip = "https://github.com/dotnet/aspnetcore/issues/11813")]
[Fact]
public async Task KeyValuePairModelBinder_BindsKeyValuePairOfComplexType_NoData()
{
// Arrange
Expand Down
9 changes: 2 additions & 7 deletions src/ProjectTemplates/test/EmptyWebTemplateTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ public async Task EmptyWebTemplateCSharp()
await EmtpyTemplateCore(languageOverride: null);
}

[Fact]
[ConditionalFact]
[SkipOnHelix("Cert failures", Queues = "OSX.1014.Amd64;OSX.1014.Amd64.Open")]
public async Task EmptyWebTemplateFSharp()
{
await EmtpyTemplateCore("F#");
Expand All @@ -43,12 +44,6 @@ private async Task EmtpyTemplateCore(string languageOverride)
var createResult = await Project.RunDotNetNewAsync("web", language: languageOverride);
Assert.True(0 == createResult.ExitCode, ErrorMessages.GetFailedProcessMessage("create/restore", Project, createResult));

// Avoid the F# compiler. See https://github.com/dotnet/aspnetcore/issues/14022
if (languageOverride != null)
{
return;
}

var publishResult = await Project.RunDotNetPublishAsync();
Assert.True(0 == publishResult.ExitCode, ErrorMessages.GetFailedProcessMessage("publish", Project, publishResult));

Expand Down
9 changes: 2 additions & 7 deletions src/ProjectTemplates/test/MvcTemplateTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ public MvcTemplateTest(ProjectFactoryFixture projectFactory, ITestOutputHelper o
public ProjectFactoryFixture ProjectFactory { get; }
public ITestOutputHelper Output { get; }

[Fact]
[ConditionalFact]
[SkipOnHelix("cert failure", Queues = "OSX.1014.Amd64;OSX.1014.Amd64.Open")]
public async Task MvcTemplate_NoAuthFSharp() => await MvcTemplateCore(languageOverride: "F#");

[ConditionalFact]
Expand All @@ -48,12 +49,6 @@ private async Task MvcTemplateCore(string languageOverride)
Assert.DoesNotContain("Microsoft.EntityFrameworkCore.Tools.DotNet", projectFileContents);
Assert.DoesNotContain("Microsoft.Extensions.SecretManager.Tools", projectFileContents);

// Avoid the F# compiler. See https://github.com/dotnet/aspnetcore/issues/14022
if (languageOverride != null)
{
return;
}

var publishResult = await Project.RunDotNetPublishAsync();
Assert.True(0 == publishResult.ExitCode, ErrorMessages.GetFailedProcessMessage("publish", Project, publishResult));

Expand Down
15 changes: 2 additions & 13 deletions src/ProjectTemplates/test/WebApiTemplateTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ public WebApiTemplateTest(ProjectFactoryFixture factoryFixture, ITestOutputHelpe
[InlineData("SingleOrg", new string[] { "--calls-graph" })]
public Task WebApiTemplateCSharp_IdentityWeb_BuildsAndPublishes(string auth, string[] args) => PublishAndBuildWebApiTemplate(languageOverride: null, auth: auth, args: args);

[Fact]
[ConditionalFact]
[SkipOnHelix("Cert failures", Queues = "OSX.1014.Amd64;OSX.1014.Amd64.Open")]
public Task WebApiTemplateFSharp() => WebApiTemplateCore(languageOverride: "F#");

[ConditionalFact]
Expand Down Expand Up @@ -66,12 +67,6 @@ private async Task PublishAndBuildWebApiTemplate(string languageOverride, string
var createResult = await Project.RunDotNetNewAsync("webapi", language: languageOverride, auth: auth, args: args);
Assert.True(0 == createResult.ExitCode, ErrorMessages.GetFailedProcessMessage("create/restore", Project, createResult));

// Avoid the F# compiler. See https://github.com/dotnet/aspnetcore/issues/14022
if (languageOverride != null)
{
return;
}

var publishResult = await Project.RunDotNetPublishAsync();
Assert.True(0 == publishResult.ExitCode, ErrorMessages.GetFailedProcessMessage("publish", Project, publishResult));

Expand All @@ -87,12 +82,6 @@ private async Task WebApiTemplateCore(string languageOverride)
{
await PublishAndBuildWebApiTemplate(languageOverride, null, null);

// Avoid the F# compiler. See https://github.com/dotnet/aspnetcore/issues/14022
if (languageOverride != null)
{
return;
}

using (var aspNetProcess = Project.StartBuiltProjectAsync())
{
Assert.False(
Expand Down
4 changes: 1 addition & 3 deletions src/ProjectTemplates/test/WorkerTemplateTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
using Templates.Test.Helpers;
using Xunit;
using Xunit.Abstractions;
using Microsoft.AspNetCore.Testing;

namespace Templates.Test
{
Expand All @@ -21,8 +20,7 @@ public WorkerTemplateTest(ProjectFactoryFixture projectFactory, ITestOutputHelpe
public ProjectFactoryFixture ProjectFactory { get; }
public ITestOutputHelper Output { get; }

[ConditionalTheory]
[OSSkipCondition(OperatingSystems.Linux, SkipReason = "https://github.com/dotnet/sdk/issues/12831")]
[Theory]
[InlineData("C#")]
[InlineData("F#")]
public async Task WorkerTemplateAsync(string language)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public ApplicationPartDiscoveryIntegrationTest(BuildServerTestFixture buildServe
public Task Build_ProjectWithDependencyThatReferencesMvc_AddsAttribute_WhenBuildingUsingDotnetMsbuild()
=> Build_ProjectWithDependencyThatReferencesMvc_AddsAttribute(MSBuildProcessKind.Dotnet);

[ConditionalFact(Skip = "net5.0 TFM is not recognized on Desktop MSBuild. A VS update will be needed.")]
[ConditionalFact]
[OSSkipCondition(OperatingSystems.Linux | OperatingSystems.MacOSX)]
[InitializeTestProject("AppWithP2PReference", additionalProjects: "ClassLibrary")]
public Task Build_ProjectWithDependencyThatReferencesMvc_AddsAttribute_WhenBuildingUsingDesktopMsbuild()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public async Task DefaultReturns200()
Assert.Equal(HttpStatusCode.OK, response.StatusCode);
}

[Fact(Skip = "https://github.com/dotnet/aspnetcore/issues/8387")]
[Fact]
public async Task MyClaimsRedirectsToLoginPageWhenNotLoggedIn()
{
// Arrange & Act
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public async Task AppOfflineDroppedWhileSiteFailedToStartInShim_AppOfflineServed
DeletePublishOutput(deploymentResult);
}

[ConditionalFact(Skip = "https://github.com/dotnet/aspnetcore/issues/3835")]
[ConditionalFact]
public async Task AppOfflineDroppedWhileSiteFailedToStartInRequestHandler_SiteStops_InProcess()
{
var deploymentResult = await DeployApp(HostingModel.InProcess);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ await connection.Send(
await _fixture.Client.RetryRequestAsync("/WaitingRequestCount", async message => await message.Content.ReadAsStringAsync() == "0");
}

[ConditionalFact(Skip = "https://github.com/dotnet/aspnetcore/issues/24695")]
[ConditionalFact]
public async Task ClientDisconnectCallbackStress()
{
// Fixture initialization fails if inside of the Task.Run, so send an
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ private void InitializeArgs()
};
}

[ConditionalTheory(Skip = "Disabling while debugging. https://github.com/dotnet/aspnetcore-internal/issues/1363")]
[ConditionalTheory]
[OSSkipCondition(OperatingSystems.MacOSX, SkipReason = "Missing SslStream ALPN support: https://github.com/dotnet/corefx/issues/30492")]
[MinimumOSVersion(OperatingSystems.Windows, WindowsVersions.Win81, SkipReason = "Missing Windows ALPN support: https://en.wikipedia.org/wiki/Application-Layer_Protocol_Negotiation#Support")]
[InlineData("", "Interop HTTP/2 GET")]
Expand Down

0 comments on commit e7d02dc

Please sign in to comment.