summaryrefslogtreecommitdiff
path: root/jstests/tool/dumprestore_auth2.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/tool/dumprestore_auth2.js')
-rw-r--r--jstests/tool/dumprestore_auth2.js9
1 files changed, 3 insertions, 6 deletions
diff --git a/jstests/tool/dumprestore_auth2.js b/jstests/tool/dumprestore_auth2.js
index 39dcaa19b6e..7e3c8c10238 100644
--- a/jstests/tool/dumprestore_auth2.js
+++ b/jstests/tool/dumprestore_auth2.js
@@ -3,7 +3,6 @@
// Tests that the default auth roles of backup and restore work properly.
var dumpRestoreAuth2 = function(backup_role, restore_role) {
-
t = new ToolTest("dumprestore_auth2", {auth: ""});
coll = t.startDB("foo");
@@ -18,10 +17,9 @@ var dumpRestoreAuth2 = function(backup_role, restore_role) {
admindb.createRole({
role: "customRole",
- privileges: [{
- resource: {db: "jstests_tool_dumprestore_auth2", collection: "foo"},
- actions: ["find"]
- }],
+ privileges: [
+ {resource: {db: "jstests_tool_dumprestore_auth2", collection: "foo"}, actions: ["find"]}
+ ],
roles: []
});
admindb.createUser({user: "test", pwd: "pass", roles: ["customRole"]});
@@ -118,7 +116,6 @@ var dumpRestoreAuth2 = function(backup_role, restore_role) {
admindb.logout();
t.stop();
-
};
// Tests that the default auth roles of backup and restore work properly.