diff options
author | clang-format-7.0.1 <adam.martin@10gen.com> | 2019-07-26 18:20:35 -0400 |
---|---|---|
committer | ADAM David Alan Martin <adam.martin@10gen.com> | 2019-07-27 11:02:23 -0400 |
commit | 134a4083953270e8a11430395357fb70a29047ad (patch) | |
tree | dd428e1230e31d92b20b393dfdc17ffe7fa79cb6 /jstests/auth/auth3.js | |
parent | 1e46b5049003f427047e723ea5fab15b5a9253ca (diff) | |
download | mongo-134a4083953270e8a11430395357fb70a29047ad.tar.gz |
SERVER-41772 Apply clang-format 7.0.1 to the codebase
Diffstat (limited to 'jstests/auth/auth3.js')
-rw-r--r-- | jstests/auth/auth3.js | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/jstests/auth/auth3.js b/jstests/auth/auth3.js index 6ded435c508..29f61f1c7ee 100644 --- a/jstests/auth/auth3.js +++ b/jstests/auth/auth3.js @@ -1,33 +1,33 @@ (function() { - 'use strict'; +'use strict'; - var conn = MongoRunner.runMongod({auth: ""}); +var conn = MongoRunner.runMongod({auth: ""}); - var admin = conn.getDB("admin"); - var errorCodeUnauthorized = 13; +var admin = conn.getDB("admin"); +var errorCodeUnauthorized = 13; - admin.createUser({user: "foo", pwd: "bar", roles: jsTest.adminUserRoles}); +admin.createUser({user: "foo", pwd: "bar", roles: jsTest.adminUserRoles}); - print("make sure curop, killop, and unlock fail"); +print("make sure curop, killop, and unlock fail"); - var x = admin.currentOp(); - assert(!("inprog" in x), tojson(x)); - assert.eq(x.code, errorCodeUnauthorized, tojson(x)); +var x = admin.currentOp(); +assert(!("inprog" in x), tojson(x)); +assert.eq(x.code, errorCodeUnauthorized, tojson(x)); - x = admin.killOp(123); - assert(!("info" in x), tojson(x)); - assert.eq(x.code, errorCodeUnauthorized, tojson(x)); +x = admin.killOp(123); +assert(!("info" in x), tojson(x)); +assert.eq(x.code, errorCodeUnauthorized, tojson(x)); - x = admin.fsyncUnlock(); - assert(x.errmsg != "fsyncUnlock called when not locked", tojson(x)); - assert.eq(x.code, errorCodeUnauthorized, tojson(x)); +x = admin.fsyncUnlock(); +assert(x.errmsg != "fsyncUnlock called when not locked", tojson(x)); +assert.eq(x.code, errorCodeUnauthorized, tojson(x)); - conn.getDB("admin").auth("foo", "bar"); +conn.getDB("admin").auth("foo", "bar"); - assert("inprog" in admin.currentOp()); - assert("info" in admin.killOp(123)); - assert.eq(admin.fsyncUnlock().errmsg, "fsyncUnlock called when not locked"); +assert("inprog" in admin.currentOp()); +assert("info" in admin.killOp(123)); +assert.eq(admin.fsyncUnlock().errmsg, "fsyncUnlock called when not locked"); - MongoRunner.stopMongod(conn, null, {user: "foo", pwd: "bar"}); +MongoRunner.stopMongod(conn, null, {user: "foo", pwd: "bar"}); })(); |