You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by sp...@apache.org on 2020/05/21 18:16:34 UTC
[tinkerpop] 27/27: Removed two tests from
GremlinServerSslIntegrationTest
This is an automated email from the ASF dual-hosted git repository.
spmallette pushed a commit to branch TINKERPOP-2076
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git
commit fbfce4597a2e41f48b61490b5dba30fec23c6e6c
Author: Justin Chu <ju...@gmail.com>
AuthorDate: Thu Mar 12 15:54:53 2020 -0400
Removed two tests from GremlinServerSslIntegrationTest
Since Java 11 would try to pick and select correct keyStoreType
---
.../server/GremlinServerSslIntegrateTest.java | 40 ----------------------
1 file changed, 40 deletions(-)
diff --git a/gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/server/GremlinServerSslIntegrateTest.java b/gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/server/GremlinServerSslIntegrateTest.java
index ab5020e..dd3aa80 100644
--- a/gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/server/GremlinServerSslIntegrateTest.java
+++ b/gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/server/GremlinServerSslIntegrateTest.java
@@ -303,44 +303,4 @@ public class GremlinServerSslIntegrateTest extends AbstractGremlinServerIntegrat
cluster2.close();
}
}
-
- @Test
- @org.junit.Ignore
- public void shouldEnableSslAndClientCertificateAuthAndFailWithIncorrectKeyStoreType() {
- final Cluster cluster = TestClientFactory.build().enableSsl(true)
- .keyStore(JKS_CLIENT_KEY).keyStorePassword(KEY_PASS).keyStoreType(KEYSTORE_TYPE_PKCS12)
- .trustStore(P12_CLIENT_TRUST).trustStorePassword(KEY_PASS).trustStoreType(TRUSTSTORE_TYPE_PKCS12)
- .create();
- final Client client = cluster.connect();
-
- try {
- String res = client.submit("'test'").one().getString();
- fail("Should throw exception because incorrect keyStoreType is specified");
- } catch (Exception x) {
- final Throwable root = ExceptionUtils.getRootCause(x);
- assertThat(root, instanceOf(TimeoutException.class));
- } finally {
- cluster.close();
- }
- }
-
- @Test
- @org.junit.Ignore
- public void shouldEnableSslAndClientCertificateAuthAndFailWithIncorrectTrustStoreType() {
- final Cluster cluster = TestClientFactory.build().enableSsl(true)
- .keyStore(P12_CLIENT_KEY).keyStorePassword(KEY_PASS).keyStoreType(KEYSTORE_TYPE_PKCS12)
- .trustStore(JKS_CLIENT_TRUST).trustStorePassword(KEY_PASS).trustStoreType(TRUSTSTORE_TYPE_PKCS12)
- .create();
- final Client client = cluster.connect();
-
- try {
- client.submit("'test'").one();
- fail("Should throw exception because incorrect trustStoreType is specified");
- } catch (Exception x) {
- final Throwable root = ExceptionUtils.getRootCause(x);
- assertThat(root, instanceOf(TimeoutException.class));
- } finally {
- cluster.close();
- }
- }
}