Skip to content

Commit 4ead807

Browse files
authored
enable ntlm tests on RHEL7 again (#85633)
1 parent c240ade commit 4ead807

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

src/libraries/Common/tests/System/Net/Capability.Security.Unix.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public static bool IsNtlmInstalled()
99
{
1010
// GSS on Linux does not work with OpenSSL 3.0. Fix was submitted to gss-ntlm but it will take a while to make to
1111
// all supported distributions. The second part of the check should be removed when it does.
12-
return Interop.NetSecurityNative.IsNtlmInstalled() && (!PlatformDetection.IsOpenSslSupported || PlatformDetection.OpenSslVersion.Major < 3) && !PlatformDetection.IsRedHatFamily7;
12+
return Interop.NetSecurityNative.IsNtlmInstalled() && (!PlatformDetection.IsOpenSslSupported || PlatformDetection.OpenSslVersion.Major < 3);
1313
}
1414
}
1515
}

src/libraries/System.Net.Security/tests/UnitTests/NegotiateAuthenticationTests.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
using System.Security.Principal;
1111
using System.Text;
1212
using System.Threading.Tasks;
13-
using Microsoft.DotNet.XUnitExtensions;
1413
using Xunit;
1514

1615
namespace System.Net.Security.Tests
@@ -87,10 +86,6 @@ public void Package_Supported_NTLM()
8786
[ConditionalFact(nameof(IsNtlmUnavailable))]
8887
public void Package_Unsupported_NTLM()
8988
{
90-
if (PlatformDetection.IsRedHatFamily7)
91-
{
92-
throw new SkipTestException("https://github.com/dotnet/runtime/issues/83540");
93-
}
9489
NegotiateAuthenticationClientOptions clientOptions = new NegotiateAuthenticationClientOptions { Package = "NTLM", Credential = s_testCredentialRight, TargetName = "HTTP/foo" };
9590
NegotiateAuthentication negotiateAuthentication = new NegotiateAuthentication(clientOptions);
9691
NegotiateAuthenticationStatusCode statusCode;

0 commit comments

Comments
 (0)