Skip to content

Commit 17374cc

Browse files
author
a-brandt
committed
using config file for ssl
1 parent 6074319 commit 17374cc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/test/java/com/arangodb/ArangoConfigureTest.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,7 @@ public void sslWithSelfSignedCertificateTest() throws ArangoException, KeyManage
166166
SSLContext sslContext = SSLContexts.custom()
167167
.loadTrustMaterial(Paths.get(resource.toURI()).toFile(), SSL_TRUSTSTORE_PASSWORD.toCharArray()).build();
168168

169-
ArangoConfigure configuration = new ArangoConfigure();
170-
configuration.setArangoHost(new ArangoHost("localhost", 8530));
171-
configuration.setUseSsl(true);
169+
ArangoConfigure configuration = new ArangoConfigure("/ssl-arangodb.properties");
172170
configuration.setSslContext(sslContext);
173171
configuration.init();
174172

0 commit comments

Comments
 (0)