summaryrefslogtreecommitdiff
path: root/jstests/tool/dumprestore_auth3.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/tool/dumprestore_auth3.js')
-rw-r--r--jstests/tool/dumprestore_auth3.js20
1 files changed, 8 insertions, 12 deletions
diff --git a/jstests/tool/dumprestore_auth3.js b/jstests/tool/dumprestore_auth3.js
index b59c5c1a951..8fb70d2a91b 100644
--- a/jstests/tool/dumprestore_auth3.js
+++ b/jstests/tool/dumprestore_auth3.js
@@ -4,9 +4,7 @@
// Runs the tool with the given name against the given mongod.
function runTool(toolName, mongod, options) {
- var opts = {
- host: mongod.host
- };
+ var opts = {host: mongod.host};
Object.extend(opts, options);
MongoRunner.runMongoTool(toolName, opts);
}
@@ -138,15 +136,13 @@ var dumpRestoreAuth3 = function(backup_role, restore_role) {
jsTestLog("Restore foo database (and user data) with --drop so it overrides the changes made");
// Restore with --drop to override the changes to user data
- runTool("mongorestore",
- mongod,
- {
- dir: dumpDir + "foo/",
- db: 'foo',
- drop: "",
- restoreDbUsersAndRoles: "",
- writeConcern: "0"
- });
+ runTool("mongorestore", mongod, {
+ dir: dumpDir + "foo/",
+ db: 'foo',
+ drop: "",
+ restoreDbUsersAndRoles: "",
+ writeConcern: "0"
+ });
db = mongod.getDB('foo');
admindb = mongod.getDB('admin');