Disable ConnectWithRevocation_StapledOcsp on RHEL and CentOS 7 (#71397)
authorKevin Jones <kevin@vcsjones.com>
Wed, 29 Jun 2022 09:51:14 +0000 (05:51 -0400)
committerGitHub <noreply@github.com>
Wed, 29 Jun 2022 09:51:14 +0000 (11:51 +0200)
* Disable ConnectWithRevocation_StapledOcsp on RHEL and CentOS 7

* Only skip test when not an offline context

src/libraries/System.Net.Security/tests/FunctionalTests/CertificateValidationRemoteServer.cs

index a6a4019..1da9de4 100644 (file)
@@ -101,12 +101,17 @@ namespace System.Net.Security.Tests
         }
 
         [PlatformSpecific(TestPlatforms.Linux)]
-        [Theory]
+        [ConditionalTheory]
         [OuterLoop("Subject to system load race conditions")]
         [InlineData(false)]
         [InlineData(true)]
         public Task ConnectWithRevocation_StapledOcsp(bool offlineContext)
         {
+            if (PlatformDetection.IsRedHatFamily7 && !offlineContext)
+            {
+                throw new SkipTestException("Active test issue https://github.com/dotnet/runtime/issues/71037");
+            }
+
             // Offline will only work if
             // a) the revocation has been checked recently enough that it is cached, or
             // b) the server stapled the response