summaryrefslogtreecommitdiff
path: root/jstests/auth/commands_user_defined_roles.js
diff options
context:
space:
mode:
authorMark Benvenuto <mark.benvenuto@mongodb.com>2016-05-28 17:55:12 -0400
committerMark Benvenuto <mark.benvenuto@mongodb.com>2016-05-28 17:55:12 -0400
commit6dcdd23dd37ef12c87e71cf59ef01cd82432efe0 (patch)
treec8cfb5acb62c80f375bc37e7d4350382deea6a37 /jstests/auth/commands_user_defined_roles.js
parentd4ac5673ea3f6cef4ce9dbcec90e31813997a528 (diff)
downloadmongo-6dcdd23dd37ef12c87e71cf59ef01cd82432efe0.tar.gz
SERVER-23971 Clang-Format code
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);