Skip to content

Commit 60c6663

Browse files
georgeajitgeorgeajit
georgeajit
authored and
georgeajit
committed
No Task - Added user with invoke privs to check for document existence.
1 parent 1fe799b commit 60c6663

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

+6-1
Original file line numberDiff line numberDiff line change
@@ -53,17 +53,22 @@ public class TestPOJOReadWriteWithTransactions extends BasicJavaClientREST {
5353
public static void setUpBeforeClass() throws Exception {
5454
System.out.println("In setup");
5555
configureRESTServer(dbName, fNames);
56+
createUserRolesWithPrevilages("pojoRole", "xdmp:eval", "xdmp:eval-in", "xdbc:eval", "xdbc:eval-in", "any-uri", "xdbc:invoke", "xdbc:invoke-in", "xdmp:invoke", "xdmp:invoke-in");
57+
createRESTUser("pojoUser", "pojoUser", "tde-admin", "tde-view", "pojoRole", "rest-admin", "rest-writer",
58+
"rest-reader", "rest-extension-user", "manage-user", "query-view-admin");
5659
}
5760

5861
@AfterClass
5962
public static void tearDownAfterClass() throws Exception {
6063
System.out.println("In tear down");
64+
deleteUserRole("pojoRole");
65+
deleteRESTUser("pojoUser");
6166
cleanupRESTServer(dbName, fNames);
6267
}
6368

6469
@Before
6570
public void setUp() throws KeyManagementException, NoSuchAlgorithmException, Exception {
66-
client = getDatabaseClient("rest-admin", "x", getConnType());
71+
client = getDatabaseClient("pojoUser", "pojoUser", getConnType());
6772
}
6873

6974
@After

0 commit comments

Comments
 (0)