summaryrefslogtreecommitdiff
path: root/jstests/auth/commands_user_defined_roles.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/auth/commands_user_defined_roles.js')
-rw-r--r--jstests/auth/commands_user_defined_roles.js15
1 files changed, 3 insertions, 12 deletions
diff --git a/jstests/auth/commands_user_defined_roles.js b/jstests/auth/commands_user_defined_roles.js
index 8a7402f033d..8dff4e050be 100644
--- a/jstests/auth/commands_user_defined_roles.js
+++ b/jstests/auth/commands_user_defined_roles.js
@@ -102,10 +102,7 @@ function runOneTest(conn, t) {
var actions = p.actions;
for (var k = 0; k < actions.length; k++) {
- var privDoc = {
- resource: resource,
- actions: [actions[k]]
- };
+ var privDoc = {resource: resource, actions: [actions[k]]};
msg = testInsufficientPrivileges(conn, t, testcase, [privDoc]);
if (msg) {
failures.push(t.testname + ": " + msg);
@@ -157,14 +154,8 @@ function createUsers(conn) {
adminDb.logout();
}
-var opts = {
- auth: "",
- enableExperimentalStorageDetailsCmd: ""
-};
-var impls = {
- createUsers: createUsers,
- runOneTest: runOneTest
-};
+var opts = {auth: "", enableExperimentalStorageDetailsCmd: ""};
+var impls = {createUsers: createUsers, runOneTest: runOneTest};
// run all tests standalone
var conn = MongoRunner.runMongod(opts);