27
27
import com .arangodb .entity .ArangoDBVersion ;
28
28
import com .arangodb .util .TestUtils ;
29
29
import org .junit .jupiter .api .BeforeAll ;
30
+ import org .junit .jupiter .api .Disabled ;
30
31
import org .junit .jupiter .api .Tag ;
31
32
import org .junit .jupiter .api .condition .EnabledIfSystemProperty ;
32
33
import org .junit .jupiter .params .ParameterizedTest ;
@@ -67,15 +68,17 @@ class SslExampleTest {
67
68
@ BeforeAll
68
69
static void fetchVersion () throws Exception {
69
70
ArangoDB adb = new ArangoDB .Builder ()
70
- .host ("localhost " , 8529 )
71
+ .host ("172.28.0.1 " , 8529 )
71
72
.password ("test" )
72
73
.useSsl (true )
73
74
.sslContext (createSslContext ())
75
+ .verifyHost (false )
74
76
.build ();
75
77
version = adb .getVersion ();
76
78
adb .shutdown ();
77
79
}
78
80
81
+ @ Disabled ("Only local execution, in CircleCI port 8529 exposed to localhost" )
79
82
@ ParameterizedTest
80
83
@ EnumSource (Protocol .class )
81
84
void connect (Protocol protocol ) throws Exception {
@@ -96,7 +99,7 @@ void connect(Protocol protocol) throws Exception {
96
99
void noopHostnameVerifier (Protocol protocol ) throws Exception {
97
100
assumeTrue (!protocol .equals (Protocol .VST ) || TestUtils .isLessThanVersion (version .getVersion (), 3 , 12 , 0 ));
98
101
final ArangoDB arangoDB = new ArangoDB .Builder ()
99
- .host ("127.0 .0.1" , 8529 )
102
+ .host ("172.28 .0.1" , 8529 )
100
103
.password ("test" )
101
104
.useSsl (true )
102
105
.sslContext (createSslContext ())
@@ -112,7 +115,7 @@ void noopHostnameVerifier(Protocol protocol) throws Exception {
112
115
void hostnameVerifierFailure (Protocol protocol ) throws Exception {
113
116
assumeTrue (protocol != Protocol .VST , "VST does not support hostname verification" );
114
117
final ArangoDB arangoDB = new ArangoDB .Builder ()
115
- .host ("127.0 .0.1" , 8529 )
118
+ .host ("172.28 .0.1" , 8529 )
116
119
.password ("test" )
117
120
.useSsl (true )
118
121
.sslContext (createSslContext ())
0 commit comments