File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
src/test/java/com/arangodb/example/ssl Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 99
1010docker pull " $1 "
1111
12- docker run -d --network arangodb --ip 172.28.4.1 - e ARANGO_ROOT_PASSWORD=test -e ARANGO_LICENSE_KEY=" $ARANGO_LICENSE_KEY " -v $( pwd) /server.pem:/server.pem " $1 " arangod --ssl.keyfile /server.pem --server.endpoint ssl://172.28.4.1 :8529
12+ docker run -d -p 8529:8529 - e ARANGO_ROOT_PASSWORD=test -e ARANGO_LICENSE_KEY=" $ARANGO_LICENSE_KEY " -v $( pwd) /server.pem:/server.pem " $1 " arangod --ssl.keyfile /server.pem --server.endpoint ssl://0.0.0.0 :8529
1313
1414echo " waiting for arangodb ..."
1515
1616# shellcheck disable=SC2091
17- until $( curl --output /dev/null --silent --head --fail -i --insecure -u root:test ' https://172.28.4 .1:8529/_api/version' ) ; do
17+ until $( curl --output /dev/null --silent --head --fail -i --insecure -u root:test ' https://127.0.0 .1:8529/_api/version' ) ; do
1818 printf ' .'
1919 sleep 1
2020done
Original file line number Diff line number Diff line change 2121package com .arangodb .example .ssl ;
2222
2323import com .arangodb .ArangoDB ;
24+ import com .arangodb .Protocol ;
2425import com .arangodb .entity .ArangoDBVersion ;
2526import org .junit .Ignore ;
2627import org .junit .Test ;
@@ -68,10 +69,11 @@ public void connect() throws Exception {
6869
6970
7071 final ArangoDB arangoDB = new ArangoDB .Builder ()
71- .host ("172.28.4 .1" , 8529 )
72+ .host ("127.0.0 .1" , 8529 )
7273 .password ("test" )
7374 .useSsl (true )
7475 .sslContext (sc )
76+ .useProtocol (Protocol .HTTP_JSON )
7577 .build ();
7678 final ArangoDBVersion version = arangoDB .getVersion ();
7779 assertThat (version , is (notNullValue ()));
You can’t perform that action at this time.
0 commit comments