Skip to content

Commit 4e817c6

Browse files
georgeajitgeorgeajit
georgeajit
authored and
georgeajit
committed
No Task - Create unique user to avoid privilege mismatches with other
tests.
1 parent 03ad61e commit 4e817c6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2014-2019 MarkLogic Corporation
2+
* Copyright 2014-2020 MarkLogic Corporation
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -78,22 +78,22 @@ public static void setUpBeforeClass() throws Exception {
7878
configureRESTServer(dbName, fNames, false);
7979
TestEvalXquery.createUserRolesWithPrevilages("test-js-eval", "xdbc:eval", "xdbc:eval-in", "xdmp:eval-in", "xdmp:invoke-in", "xdmp:invoke", "xdbc:invoke-in", "any-uri",
8080
"xdbc:invoke");
81-
TestEvalXquery.createRESTUser("eval-user", "x", "test-js-eval");
81+
TestEvalXquery.createRESTUser("eval-userJS", "x", "test-js-eval");
8282
appServerHostname = getRestAppServerHostName();
8383
}
8484

8585
@AfterClass
8686
public static void tearDownAfterClass() throws Exception {
8787
System.out.println("In tear down");
8888
cleanupRESTServer(dbName, fNames);
89-
TestEvalXquery.deleteRESTUser("eval-user");
89+
TestEvalXquery.deleteRESTUser("eval-userJS");
9090
TestEvalXquery.deleteUserRole("test-js-eval");
9191
}
9292

9393
@Before
9494
public void setUp() throws KeyManagementException, NoSuchAlgorithmException, Exception {
9595
int restPort = getRestServerPort();
96-
client = getDatabaseClientOnDatabase(appServerHostname, restPort, dbName, "eval-user", "x", getConnType());
96+
client = getDatabaseClientOnDatabase(appServerHostname, restPort, dbName, "eval-userJS", "x", getConnType());
9797
}
9898

9999
@After
@@ -579,8 +579,8 @@ public void testJSReturningDifferentTypesOrder3fromModules() throws Exception {
579579
Capability.UPDATE, Capability.READ, Capability.EXECUTE);
580580
DocumentManager dm = moduleClient.newDocumentManager();
581581
dm.write("/data/javascriptQueries.sjs", metadataHandle, ish);
582-
DocumentBuilder db = DocumentBuilderFactory.newInstance()
583-
.newDocumentBuilder();
582+
/*DocumentBuilder db = DocumentBuilderFactory.newInstance()
583+
.newDocumentBuilder();*/
584584
InputSource is = new InputSource();
585585
is.setCharacterStream(new StringReader(
586586
"<foo attr=\"attribute\"><?processing instruction?><!--comment-->test1</foo>"));

0 commit comments

Comments
 (0)