Revert "Work around `CryptographicException`s thrown in some full framework test runs"
- no longer support .NET Framework
This reverts commit 192e8073ee
This commit is contained in:
parent
69b5ab9c01
commit
d689eede36
|
|
@ -5,7 +5,6 @@ using System.Net;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Microsoft.AspNetCore.Testing.xunit;
|
|
||||||
using Microsoft.Net.Http.Headers;
|
using Microsoft.Net.Http.Headers;
|
||||||
using Xunit;
|
using Xunit;
|
||||||
|
|
||||||
|
|
@ -57,9 +56,7 @@ namespace Microsoft.AspNetCore.Mvc.FunctionalTests
|
||||||
Assert.Equal(HttpStatusCode.Forbidden, response.StatusCode);
|
Assert.Equal(HttpStatusCode.Forbidden, response.StatusCode);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Tests are conditional to avoid occasional CI failures on Windows 8 and Windows 2012 under full framework.
|
[Fact]
|
||||||
[ConditionalFact]
|
|
||||||
[FrameworkSkipCondition(RuntimeFrameworks.CLR, SkipReason = "See aspnet/Identity#1630")]
|
|
||||||
public async Task Token_WithKnownUser_ReturnsOkAndToken()
|
public async Task Token_WithKnownUser_ReturnsOkAndToken()
|
||||||
{
|
{
|
||||||
// Arrange & Act
|
// Arrange & Act
|
||||||
|
|
@ -84,8 +81,7 @@ namespace Microsoft.AspNetCore.Mvc.FunctionalTests
|
||||||
Assert.Equal(HttpStatusCode.Unauthorized, response.StatusCode);
|
Assert.Equal(HttpStatusCode.Unauthorized, response.StatusCode);
|
||||||
}
|
}
|
||||||
|
|
||||||
[ConditionalTheory]
|
[Theory]
|
||||||
[FrameworkSkipCondition(RuntimeFrameworks.CLR, SkipReason = "See aspnet/Identity#1630")]
|
|
||||||
[InlineData("reader@example.com")]
|
[InlineData("reader@example.com")]
|
||||||
[InlineData("writer@example.com")]
|
[InlineData("writer@example.com")]
|
||||||
public async Task FindByStatus_WithToken_ReturnsOkAndPet(string username)
|
public async Task FindByStatus_WithToken_ReturnsOkAndPet(string username)
|
||||||
|
|
@ -112,8 +108,7 @@ namespace Microsoft.AspNetCore.Mvc.FunctionalTests
|
||||||
Assert.NotEmpty(json);
|
Assert.NotEmpty(json);
|
||||||
}
|
}
|
||||||
|
|
||||||
[ConditionalFact]
|
[Fact]
|
||||||
[FrameworkSkipCondition(RuntimeFrameworks.CLR, SkipReason = "See aspnet/Identity#1630")]
|
|
||||||
public async Task FindById_WithInvalidPetId_ReturnsNotFound()
|
public async Task FindById_WithInvalidPetId_ReturnsNotFound()
|
||||||
{
|
{
|
||||||
// Arrange & Act 1
|
// Arrange & Act 1
|
||||||
|
|
@ -133,8 +128,7 @@ namespace Microsoft.AspNetCore.Mvc.FunctionalTests
|
||||||
Assert.Equal(HttpStatusCode.NotFound, response.StatusCode);
|
Assert.Equal(HttpStatusCode.NotFound, response.StatusCode);
|
||||||
}
|
}
|
||||||
|
|
||||||
[ConditionalFact]
|
[Fact]
|
||||||
[FrameworkSkipCondition(RuntimeFrameworks.CLR, SkipReason = "See aspnet/Identity#1630")]
|
|
||||||
public async Task FindById_WithValidPetId_ReturnsOkAndPet()
|
public async Task FindById_WithValidPetId_ReturnsOkAndPet()
|
||||||
{
|
{
|
||||||
// Arrange & Act 1
|
// Arrange & Act 1
|
||||||
|
|
@ -159,8 +153,7 @@ namespace Microsoft.AspNetCore.Mvc.FunctionalTests
|
||||||
Assert.NotEmpty(json);
|
Assert.NotEmpty(json);
|
||||||
}
|
}
|
||||||
|
|
||||||
[ConditionalFact]
|
[Fact]
|
||||||
[FrameworkSkipCondition(RuntimeFrameworks.CLR, SkipReason = "See aspnet/Identity#1630")]
|
|
||||||
public async Task AddPet_WithInsufficientClaims_ReturnsForbidden()
|
public async Task AddPet_WithInsufficientClaims_ReturnsForbidden()
|
||||||
{
|
{
|
||||||
// Arrange & Act 1
|
// Arrange & Act 1
|
||||||
|
|
@ -192,8 +185,7 @@ namespace Microsoft.AspNetCore.Mvc.FunctionalTests
|
||||||
Assert.Equal(HttpStatusCode.Forbidden, response.StatusCode);
|
Assert.Equal(HttpStatusCode.Forbidden, response.StatusCode);
|
||||||
}
|
}
|
||||||
|
|
||||||
[ConditionalFact]
|
[Fact]
|
||||||
[FrameworkSkipCondition(RuntimeFrameworks.CLR, SkipReason = "See aspnet/Identity#1630")]
|
|
||||||
public async Task AddPet_WithValidClaims_ReturnsCreated()
|
public async Task AddPet_WithValidClaims_ReturnsCreated()
|
||||||
{
|
{
|
||||||
// Arrange & Act 1
|
// Arrange & Act 1
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue