summaryrefslogtreecommitdiff
path: root/jstests/auth/localhostAuthBypass.js
diff options
context:
space:
mode:
authorSpencer T Brody <spencer@10gen.com>2013-11-06 14:49:35 -0500
committerSpencer T Brody <spencer@10gen.com>2013-11-06 17:11:39 -0500
commit49fd6dbb2b6d9432cb4d94aaf3e06ca6943042d6 (patch)
tree202e0c261a8fbac00b2f08e91849d1de04f0ffe3 /jstests/auth/localhostAuthBypass.js
parentf2ae6a0732ce5fdfe1a2aac8f2fc12e5a04a650c (diff)
downloadmongo-49fd6dbb2b6d9432cb4d94aaf3e06ca6943042d6.tar.gz
SERVER-11555 Replace all occurrences of addUser with createUser in jstests
Diffstat (limited to 'jstests/auth/localhostAuthBypass.js')
-rw-r--r--jstests/auth/localhostAuthBypass.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/jstests/auth/localhostAuthBypass.js b/jstests/auth/localhostAuthBypass.js
index 8d5c140fdc8..2df205d4489 100644
--- a/jstests/auth/localhostAuthBypass.js
+++ b/jstests/auth/localhostAuthBypass.js
@@ -10,9 +10,9 @@ var password = "bar";
var port = allocatePorts(1)[0];
var host = "localhost:" + port;
-var addUser = function(mongo) {
+var createUser = function(mongo) {
print("============ adding a user.");
- mongo.getDB("admin").addUser({user:username,pwd: password, roles: jsTest.adminUserRoles});
+ mongo.getDB("admin").createUser({user:username,pwd: password, roles: jsTest.adminUserRoles});
};
var assertCannotRunCommands = function(mongo) {
@@ -83,7 +83,7 @@ var runTest = function(useHostName) {
assertCanRunCommands(mongo);
- addUser(mongo);
+ createUser(mongo);
assertCannotRunCommands(mongo);