You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by pt...@apache.org on 2021/11/15 07:38:33 UTC
[ignite] branch gg-34169 updated: update TestSslConnectionWithClientAuth
This is an automated email from the ASF dual-hosted git repository.
ptupitsyn pushed a commit to branch gg-34169
in repository https://gitbox.apache.org/repos/asf/ignite.git
The following commit(s) were added to refs/heads/gg-34169 by this push:
new 7f46761 update TestSslConnectionWithClientAuth
7f46761 is described below
commit 7f467611e8404e5d85b9810c27a7395defb69f27
Author: Pavel Tupitsyn <pt...@apache.org>
AuthorDate: Mon Nov 15 10:38:15 2021 +0300
update TestSslConnectionWithClientAuth
---
.../dotnet/Apache.Ignite.Core.Tests/Client/ClientConnectionTest.cs | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Client/ClientConnectionTest.cs b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Client/ClientConnectionTest.cs
index 68bbaf9..3315015 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Client/ClientConnectionTest.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Client/ClientConnectionTest.cs
@@ -686,6 +686,10 @@ namespace Apache.Ignite.Core.Tests.Client
{
Assert.AreEqual(1, client.GetCluster().GetNodes().Count);
}
+
+ // Does not connect without client certificate.
+ cfg.SslStreamFactory = new SslStreamFactory { SkipServerCertificateValidation = true };
+ Assert.Throws<IgniteClientException>(() => Ignition.StartClient(cfg));
}
/// <summary>