Skip to content

Commit 6981c05

Browse files
Ajit GeorgeAjit George
authored andcommitted
Added user and role cleanup to teardown.
1 parent 8bb1d35 commit 6981c05

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

test-complete/src/test/java/com/marklogic/client/functionaltest/TestBulkWriteWithTransformations.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ public static void setUpBeforeClass() throws Exception {
7070
public static void tearDownAfterClass() throws Exception {
7171
System.out.println("In tear down" );
7272
tearDownJavaRESTServer(dbName, fNames, restServerName);
73+
deleteRESTUser("eval-user");
74+
deleteUserRole("test-eval");
7375
}
7476

7577
@Before

test-complete/src/test/java/com/marklogic/client/functionaltest/TestBytesHandle.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,8 @@ public static void tearDown() throws Exception
300300
{
301301
System.out.println("In tear down");
302302
tearDownJavaRESTServer(dbName, fNames, restServerName);
303+
deleteRESTUser("eval-user");
304+
deleteUserRole("test-eval");
303305

304306
}
305307

test-complete/src/test/java/com/marklogic/client/functionaltest/TestPartialUpdate.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1226,5 +1226,7 @@ public void testMetaDataUpdateJSON() throws IOException, JSONException
12261226
public static void tearDown() throws Exception
12271227
{
12281228
tearDownJavaRESTServer(dbName, fNames, restServerName);
1229+
deleteRESTUser("eval-user");
1230+
deleteUserRole("test-eval");
12291231
}
12301232
}

test-complete/src/test/java/com/marklogic/client/functionaltest/TestQueryOptionBuilderSortOrder.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,5 +499,7 @@ public static void tearDown() throws Exception
499499
{
500500
System.out.println("In tear down");
501501
tearDownJavaRESTServer(dbName, fNames,restServerName);
502+
deleteRESTUser("eval-user");
503+
deleteUserRole("test-eval");
502504
}
503505
}

0 commit comments

Comments
 (0)