Skip to content

Commit 3d75ded

Browse files
committed
Made basePath configurable for debug tool for cloud auth
1 parent 80ae55b commit 3d75ded

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

gradle.properties

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@ mlPassword=admin
1212
testUseReverseProxyServer=false
1313

1414
# For testing cloud-based authentication; define in gradle-local.properties with valid values for a MarkLogic Cloud instance
15-
tokenKey=
16-
tokenHost=
15+
cloudHost=
16+
cloudKey=
17+
cloudBasePath=

marklogic-client-api/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,5 +241,5 @@ task debugCloudAuth(type: JavaExec) {
241241
description = "Test program for manual testing of cloud-based authentication against a MarkLogic Cloud instance"
242242
main = 'com.marklogic.client.test.MarkLogicCloudAuthenticationDebugger'
243243
classpath = sourceSets.test.runtimeClasspath
244-
args = [tokenHost, tokenKey]
244+
args = [cloudHost, cloudKey, cloudBasePath]
245245
}

marklogic-client-api/src/test/java/com/marklogic/client/test/MarkLogicCloudAuthenticationDebugger.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ public class MarkLogicCloudAuthenticationDebugger {
1717
public static void main(String[] args) throws Exception {
1818
String cloudHost = args[0];
1919
String apiKey = args[1];
20+
String basePath = args[2];
2021
int port = 443;
2122
String database = null;
2223
DatabaseClient.ConnectionType connectionType = null;
23-
String basePath = "/ml/etest/ml/manage/";
2424
X509TrustManager trustManager = Common.TRUST_ALL_MANAGER;
2525
SSLContext sslContext = SSLContext.getInstance("TLSv1.2");
2626
sslContext.init(null, new TrustManager[]{trustManager}, null);

0 commit comments

Comments
 (0)