9
9
import com .marklogic .client .eval .EvalResultIterator ;
10
10
import com .marklogic .client .io .StringHandle ;
11
11
import com .marklogic .client .test .Common ;
12
+ import com .marklogic .client .test .junit5 .DisabledWhenUsingReverseProxyServer ;
12
13
import com .marklogic .client .test .junit5 .RequireSSLExtension ;
13
14
import com .marklogic .mgmt .ManageClient ;
14
15
import com .marklogic .mgmt .resource .appservers .ServerManager ;
35
36
36
37
import static org .junit .jupiter .api .Assertions .*;
37
38
38
- @ ExtendWith (RequireSSLExtension .class )
39
+ @ ExtendWith ({
40
+ DisabledWhenUsingReverseProxyServer .class ,
41
+ RequireSSLExtension .class
42
+ })
39
43
public class TwoWaySSLTest {
40
44
41
45
private final static String TEST_DOCUMENT_URI = "/optic/test/musician1.json" ;
@@ -54,9 +58,6 @@ public class TwoWaySSLTest {
54
58
55
59
@ BeforeAll
56
60
public static void setup () throws Exception {
57
- if (Common .USE_REVERSE_PROXY_SERVER ) {
58
- return ;
59
- }
60
61
// Create a client using the java-unittest app server - which requires SSL via RequiresSSLExtension - and that
61
62
// talks to the Security database.
62
63
securityClient = Common .newClientBuilder ()
@@ -82,9 +83,6 @@ public static void setup() throws Exception {
82
83
83
84
@ AfterAll
84
85
public static void teardown () {
85
- if (Common .USE_REVERSE_PROXY_SERVER ) {
86
- return ;
87
- }
88
86
removeTwoWaySSLConfig ();
89
87
deleteCertificateAuthority ();
90
88
}
@@ -101,10 +99,6 @@ public static void teardown() {
101
99
*/
102
100
@ Test
103
101
void digestAuthentication () {
104
- if (Common .USE_REVERSE_PROXY_SERVER ) {
105
- return ;
106
- }
107
-
108
102
// This client uses our Java KeyStore file with a client certificate in it, so it should work.
109
103
DatabaseClient clientWithCert = Common .newClientBuilder ()
110
104
.withKeyStorePath (keyStoreFile .getAbsolutePath ())
@@ -199,10 +193,6 @@ void invalidKeyStoreAlgorithm() {
199
193
*/
200
194
@ Test
201
195
void certificateAuthenticationWithSSLContext () throws Exception {
202
- if (Common .USE_REVERSE_PROXY_SERVER ) {
203
- return ;
204
- }
205
-
206
196
setAuthenticationToCertificate ();
207
197
try {
208
198
SSLContext sslContext = createSSLContextWithClientCertificate (keyStoreFile );
@@ -223,10 +213,6 @@ void certificateAuthenticationWithSSLContext() throws Exception {
223
213
*/
224
214
@ Test
225
215
void certificateAuthenticationWithCertificateFileAndPassword () {
226
- if (Common .USE_REVERSE_PROXY_SERVER ) {
227
- return ;
228
- }
229
-
230
216
setAuthenticationToCertificate ();
231
217
try {
232
218
DatabaseClient client = Common .newClientBuilder ()
0 commit comments