Skip to content

Commit 6fb98a8

Browse files
Ajit GeorgeAjit George
authored andcommitted
Adding Uber functionality on transformations tests
1 parent 53405f7 commit 6fb98a8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test-complete/src/test/java/com/marklogic/javaclient/TestBulkWriteWithTransformations.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ public class TestBulkWriteWithTransformations extends BasicJavaClientREST{
4040
private static String restServerName = "REST-Java-Client-API-Server";
4141
private static int restPort = 8011;
4242
private DatabaseClient client ;
43+
// Additional port to test for Uber port
44+
private static int uberPort = 8000;
4345

4446
@BeforeClass
4547
public static void setUpBeforeClass() throws Exception {
@@ -58,7 +60,9 @@ public static void tearDownAfterClass() throws Exception {
5860
public void setUp() throws Exception {
5961
// System.setProperty("org.apache.commons.logging.simplelog.log.org.apache.http.wire", "debug");
6062
// create new connection for each test below
61-
client = DatabaseClientFactory.newClient("localhost", restPort, "rest-admin", "x", Authentication.DIGEST);
63+
createUserRolesWithPrevilages("test-eval","xdbc:eval", "xdbc:eval-in","xdmp:eval-in","any-uri","xdbc:invoke");
64+
createRESTUser("eval-user", "x", "test-eval","rest-admin","rest-writer","rest-reader");
65+
client = DatabaseClientFactory.newClient("localhost", uberPort, dbName, "eval-user", "x", Authentication.DIGEST);
6266
}
6367

6468
@After

0 commit comments

Comments
 (0)