summaryrefslogtreecommitdiff
path: root/jstests/auth/rename.js
diff options
context:
space:
mode:
authorSpencer T Brody <spencer@mongodb.com>2015-03-22 12:08:21 -0400
committerSpencer T Brody <spencer@mongodb.com>2015-04-06 18:19:21 -0400
commit6ccb82c987a47995fd7d8019d7fd4d1e557478b4 (patch)
tree2542816a69e9faaaff840754b42f0229dc905ccd /jstests/auth/rename.js
parent7baac52f05a3e0cbdb7168e51836f507eda99dff (diff)
downloadmongo-6ccb82c987a47995fd7d8019d7fd4d1e557478b4.tar.gz
SERVER-17450 Standardize on a single way to start mongod in tests
Diffstat (limited to 'jstests/auth/rename.js')
-rw-r--r--jstests/auth/rename.js11
1 files changed, 4 insertions, 7 deletions
diff --git a/jstests/auth/rename.js b/jstests/auth/rename.js
index 1ed0e584811..1e6b0092a65 100644
--- a/jstests/auth/rename.js
+++ b/jstests/auth/rename.js
@@ -1,13 +1,10 @@
// test renameCollection with auth
-port = allocatePorts( 1 )[ 0 ];
+var m = MongoRunner.runMongod({auth: ""});
-baseName = "jstests_rename_auth";
-m = startMongod( "--auth", "--port", port, "--dbpath", MongoRunner.dataPath + baseName, "--nohttpinterface" );
-
-db1 = m.getDB( baseName )
-db2 = m.getDB( baseName + '_other' )
-admin = m.getDB( 'admin' )
+var db1 = m.getDB("foo");
+var db2 = m.getDB("bar");
+var admin = m.getDB( 'admin' );
// Setup initial data
admin.createUser({user:'admin', pwd: 'password', roles: jsTest.adminUserRoles});