namespace System.Security.Cryptography.X509Certificates.Tests.RevocationTests
{
[OuterLoop("These tests run serially at about 1 second each, and the code shouldn't change that often.")]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/31249", TestPlatforms.OSX)]
public static class DynamicRevocationTests
{
// The CI machines are doing an awful lot of things at once, be generous with the timeout;
private static readonly Oid s_tlsServerOid = new Oid("1.3.6.1.5.5.7.3.1", null);
private static readonly X509ChainStatusFlags ThisOsRevocationStatusUnknown =
+ PlatformDetection.IsOSX ?
+ X509ChainStatusFlags.RevocationStatusUnknown :
X509ChainStatusFlags.RevocationStatusUnknown | X509ChainStatusFlags.OfflineRevocation;
continue;
}
+ // https://github.com/dotnet/runtime/issues/31249
+ // not all scenarios are working on macOS.
+ if (PlatformDetection.IsOSX)
+ {
+ if (!endEntityRevocation.HasFlag(PkiOptions.EndEntityRevocationViaOcsp))
+ {
+ continue;
+ }
+ }
+
yield return new object[] { designationOptions | issuerRevocation | endEntityRevocation };
}
}
[Theory]
[MemberData(nameof(AllViableRevocation))]
+ [ActiveIssue("https://github.com/dotnet/runtime/issues/31249", TestPlatforms.OSX)]
public static void RevokeIntermediate(PkiOptions pkiOptions)
{
SimpleTest(
[Theory]
[MemberData(nameof(AllViableRevocation))]
+ [ActiveIssue("https://github.com/dotnet/runtime/issues/31249", TestPlatforms.OSX)]
public static void RevokeIntermediateAndEndEntity(PkiOptions pkiOptions)
{
SimpleTest(
[Theory]
[MemberData(nameof(AllViableRevocation))]
+ [ActiveIssue("https://github.com/dotnet/runtime/issues/31249", TestPlatforms.OSX)]
public static void RevokeRoot(PkiOptions pkiOptions)
{
SimpleTest(
[Theory]
[MemberData(nameof(AllViableRevocation))]
+ [ActiveIssue("https://github.com/dotnet/runtime/issues/31249", TestPlatforms.OSX)]
public static void RevokeRootAndEndEntity(PkiOptions pkiOptions)
{
SimpleTest(
[Theory]
[MemberData(nameof(AllViableRevocation))]
+ [ActiveIssue("https://github.com/dotnet/runtime/issues/31249", TestPlatforms.OSX)]
public static void RevokeRootAndIntermediate(PkiOptions pkiOptions)
{
SimpleTest(
[Theory]
[MemberData(nameof(AllViableRevocation))]
+ [ActiveIssue("https://github.com/dotnet/runtime/issues/31249", TestPlatforms.OSX)]
public static void RevokeEverything(PkiOptions pkiOptions)
{
SimpleTest(
[Theory]
[InlineData(PkiOptions.OcspEverywhere)]
[InlineData(PkiOptions.IssuerRevocationViaOcsp | PkiOptions.AllEndEntityRevocation)]
+ [ActiveIssue("https://github.com/dotnet/runtime/issues/31249", TestPlatforms.OSX)]
public static void RevokeEndEntity_RootUnrelatedOcsp(PkiOptions pkiOptions)
{
SimpleTest(
[InlineData(false, true)]
[InlineData(true, false)]
[InlineData(true, true)]
+ [ActiveIssue("https://github.com/dotnet/runtime/issues/31249", TestPlatforms.OSX)]
public static void RevokeIntermediate_PolicyErrors_NotTimeValid(bool policyErrors, bool notTimeValid)
{
SimpleTest(
[InlineData(false, true)]
[InlineData(true, false)]
[InlineData(true, true)]
+ [ActiveIssue("https://github.com/dotnet/runtime/issues/31249", TestPlatforms.OSX)]
public static void RevokeEndEntity_PolicyErrors_NotTimeValid(bool policyErrors, bool notTimeValid)
{
SimpleTest(
[Theory]
[MemberData(nameof(AllViableRevocation))]
+ [ActiveIssue("https://github.com/dotnet/runtime/issues/31249", TestPlatforms.OSX)]
public static void RevokeEndEntity_RootRevocationOffline(PkiOptions pkiOptions)
{
BuildPrivatePki(
[Theory]
[MemberData(nameof(AllViableRevocation))]
+ [ActiveIssue("https://github.com/dotnet/runtime/issues/31249", TestPlatforms.OSX)]
public static void NothingRevoked_RootRevocationOffline(PkiOptions pkiOptions)
{
BuildPrivatePki(
[Theory]
[MemberData(nameof(AllViableRevocation))]
+ [ActiveIssue("https://github.com/dotnet/runtime/issues/31249", TestPlatforms.OSX)]
public static void RevokeIntermediateWithInvalidRevocationSignature(PkiOptions pkiOptions)
{
SimpleTest(
[Theory]
[MemberData(nameof(AllViableRevocation))]
+ [ActiveIssue("https://github.com/dotnet/runtime/issues/31249", TestPlatforms.OSX)]
public static void RevokeIntermediateWithInvalidRevocationName(PkiOptions pkiOptions)
{
SimpleTest(
[Theory]
[MemberData(nameof(AllViableRevocation))]
+ [ActiveIssue("https://github.com/dotnet/runtime/issues/31249", TestPlatforms.OSX)]
public static void RevokeIntermediateWithExpiredRevocation(PkiOptions pkiOptions)
{
SimpleTest(
[Theory]
[MemberData(nameof(AllViableRevocation))]
+ [ActiveIssue("https://github.com/dotnet/runtime/issues/31249", TestPlatforms.OSX)]
public static void CheckIntermediateWithExpiredRevocation(PkiOptions pkiOptions)
{
SimpleTest(