|
|
@@ -24,7 +24,7 @@ namespace Microsoft.AspNetCore.ApiAuthorization.IdentityServer.Configuration
|
|
|
[Fact]
|
|
|
public void LoadFromFile_ThrowsIfFileDoesNotExist()
|
|
|
{
|
|
|
- // Arrange, Act & Assert
|
|
|
+ // Arrange, Act & Assert
|
|
|
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);
|
|
|
}
|
|
|
@@ -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);
|
|
|
}
|
|
|
|
|
|
- [ConditionalFact]
|
|
|
- [SkipOnHelix] // https://github.com/aspnet/AspNetCore/issues/6720
|
|
|
+ [ConditionalFact]
|
|
|
+ [SkipOnHelix("https://github.com/aspnet/AspNetCore/issues/6720")]
|
|
|
public static void LoadFromStoreCert_SkipsCertificatesNotYetValid()
|
|
|
{
|
|
|
try
|
|
|
@@ -81,8 +81,8 @@ namespace Microsoft.AspNetCore.ApiAuthorization.IdentityServer.Configuration
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- [ConditionalFact]
|
|
|
- [SkipOnHelix] // https://github.com/aspnet/AspNetCore/issues/6720
|
|
|
+ [ConditionalFact]
|
|
|
+ [SkipOnHelix("https://github.com/aspnet/AspNetCore/issues/6720")]
|
|
|
public static void LoadFromStoreCert_PrefersCertificatesCloserToExpirationDate()
|
|
|
{
|
|
|
try
|
|
|
@@ -104,8 +104,8 @@ namespace Microsoft.AspNetCore.ApiAuthorization.IdentityServer.Configuration
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- [ConditionalFact]
|
|
|
- [SkipOnHelix] // https://github.com/aspnet/AspNetCore/issues/6720
|
|
|
+ [ConditionalFact]
|
|
|
+ [SkipOnHelix("https://github.com/aspnet/AspNetCore/issues/6720")]
|
|
|
public static void LoadFromStoreCert_SkipsExpiredCertificates()
|
|
|
{
|
|
|
try
|