Skip to content

Commit 8fffcf6

Browse files
authored
Merge pull request #1642 from BillFarber/task/updateProxyForNodeClient
Add configuration to the reverse proxy to handle Node Client test-app requests
2 parents 60baa2e + 5bfd9fe commit 8fffcf6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,11 @@ public ReverseProxyServer(String markLogicHost, String serverHost, int serverPor
136136
mapping.put("/data-hub/final", new URI(String.format("http://%s:8011", markLogicHost)));
137137
mapping.put("/data-hub/jobs", new URI(String.format("http://%s:8013", markLogicHost)));
138138

139+
// Generic mappings for the Node Client test-app
140+
mapping.put("/mlxprs/manage", new URI(String.format("http://%s:8059", markLogicHost)));
141+
mapping.put("/mlxprs/rest", new URI(String.format("http://%s:8055", markLogicHost)));
142+
mapping.put("/mlxprs/test", new URI(String.format("http://%s:8054", markLogicHost)));
143+
139144
// Emulate MarkLogic Cloud "/token" requests by mapping to the handler defined below that can respond to
140145
// these requests in a suitable fashion for manual testing.
141146
mapping.put("/token", new URI(String.format("http://%s:8022", serverHost)));

0 commit comments

Comments
 (0)