Skip to content

Commit

Permalink
skip Manual_CertificateOnlySentWhenValid_Success for WinHttpHandler (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
antonfirsov authored Aug 5, 2022
1 parent 9d93fb0 commit 421a9cf
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
using System.Security.Cryptography.X509Certificates;
using System.Threading.Tasks;
using Microsoft.DotNet.RemoteExecutor;
using Microsoft.DotNet.XUnitExtensions;
using Xunit;
using Xunit.Abstractions;

Expand Down Expand Up @@ -75,13 +76,16 @@ private HttpClient CreateHttpClientWithCert(X509Certificate2 cert)

return CreateHttpClient(handler);
}
[Theory]

[ConditionalTheory]
[InlineData(1, true)]
[InlineData(2, true)]
[InlineData(3, false)]
public async Task Manual_CertificateOnlySentWhenValid_Success(int certIndex, bool serverExpectsClientCertificate)
{
// [ActiveIssue("https:/dotnet/runtime/issues/69238")]
if (IsWinHttpHandler) throw new SkipTestException("https:/dotnet/runtime/issues/69238");

var options = new LoopbackServer.Options { UseSsl = true };

X509Certificate2 GetClientCertificate(int certIndex) => certIndex switch
Expand Down

0 comments on commit 421a9cf

Please sign in to comment.