未验证 提交 421a9cf4 编写于 作者: A Anton Firszov 提交者: GitHub

skip Manual_CertificateOnlySentWhenValid_Success for WinHttpHandler (#73378)

上级 9d93fb0e
......@@ -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;
......@@ -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://github.com/dotnet/runtime/issues/69238")]
if (IsWinHttpHandler) throw new SkipTestException("https://github.com/dotnet/runtime/issues/69238");
var options = new LoopbackServer.Options { UseSsl = true };
X509Certificate2 GetClientCertificate(int certIndex) => certIndex switch
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册