Skip to content

Commit e070436

Browse files
committed
Temporary changes to debug proxy tests on Jenkins
1 parent eb61568 commit e070436

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

Jenkinsfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,6 @@ pipeline{
172172
export GRADLE_USER_HOME=$WORKSPACE/$GRADLE_DIR
173173
export PATH=$GRADLE_USER_HOME:$JAVA_HOME/bin:$PATH
174174
cd java-client-api
175-
./gradlew cleanTest marklogic-client-api:test
176175
./gradlew -PtestUseReverseProxyServer=true test-app:runReverseProxyServer marklogic-client-api-functionaltests:runFastFunctionalTests || true
177176
'''
178177
junit '**/build/**/TEST*.xml'

marklogic-client-api-functionaltests/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ tasks.register("runFastFunctionalTests", Test) {
5353
description = "Run all fast functional tests that don't setup/teardown custom app servers / databases"
5454
testClassesDirs = sourceSets.test.output.classesDirs
5555
classpath = sourceSets.test.runtimeClasspath
56-
include "com/marklogic/client/fastfunctest/**"
56+
include "com/marklogic/client/fastfunctest/TestAgg*"
5757
// Exclude the "fragile" ones
5858
exclude "com/marklogic/client/fastfunctest/TestQueryOptionBuilder.class"
5959
exclude "com/marklogic/client/fastfunctest/TestRawCombinedQuery.class"

marklogic-client-api-functionaltests/src/test/java/com/marklogic/client/functionaltest/ConnectedRESTQA.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -950,6 +950,7 @@ private static void overrideTestPropertiesWithSystemProperties(Properties testPr
950950
if ("true".equals(System.getProperty("TEST_USE_REVERSE_PROXY_SERVER"))) {
951951
System.out.println("TEST_USE_REVERSE_PROXY_SERVER is true, so overriding properties to use reverse proxy server");
952952
testProperties.setProperty("httpPort", "8020");
953+
testProperties.setProperty("marklogic.client.host", "127.0.0.1");
953954
testProperties.setProperty("marklogic.client.port", "8020");
954955
testProperties.setProperty("marklogic.client.basePath", "testFunctional");
955956
testProperties.setProperty("marklogic.client.authType", "basic");

test-app/src/main/java/com/marklogic/client/test/ReverseProxyServer.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@ public static void main(final String[] args) throws Exception {
101101
}
102102

103103
public ReverseProxyServer(String markLogicHost, String serverHost, int serverPort, int secureServerPort, List<String> customMappings) throws Exception {
104+
System.out.println("MarkLogic host: " + markLogicHost);
105+
System.out.println("Proxy server host: " + serverHost);
106+
System.out.println("Proxy server HTTP port: " + serverPort);
107+
System.out.println("Proxy server HTTPS port: " + secureServerPort);
104108
logger.info("MarkLogic host: {}", markLogicHost);
105109
logger.info("Proxy server host: {}", serverHost);
106110
logger.info("Proxy server HTTP port: {}", serverPort);

0 commit comments

Comments
 (0)