diff options
author | Spencer T Brody <spencer@10gen.com> | 2013-11-06 14:49:35 -0500 |
---|---|---|
committer | Spencer T Brody <spencer@10gen.com> | 2013-11-06 17:11:39 -0500 |
commit | 49fd6dbb2b6d9432cb4d94aaf3e06ca6943042d6 (patch) | |
tree | 202e0c261a8fbac00b2f08e91849d1de04f0ffe3 /jstests/auth/commands_builtin_roles.js | |
parent | f2ae6a0732ce5fdfe1a2aac8f2fc12e5a04a650c (diff) | |
download | mongo-49fd6dbb2b6d9432cb4d94aaf3e06ca6943042d6.tar.gz |
SERVER-11555 Replace all occurrences of addUser with createUser in jstests
Diffstat (limited to 'jstests/auth/commands_builtin_roles.js')
-rw-r--r-- | jstests/auth/commands_builtin_roles.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/auth/commands_builtin_roles.js b/jstests/auth/commands_builtin_roles.js index 11dd02819a0..aa627ec4091 100644 --- a/jstests/auth/commands_builtin_roles.js +++ b/jstests/auth/commands_builtin_roles.js @@ -97,7 +97,7 @@ function runOneTest(conn, t) { function createUsers(conn) { var adminDb = conn.getDB(adminDbName); - adminDb.addUser({ + adminDb.createUser({ user: "admin", pwd: "password", roles: ["__system"] @@ -107,7 +107,7 @@ function createUsers(conn) { for (var i = 0; i < roles.length; i++) { r = roles[i]; r.db = conn.getDB(r.dbname); - r.db.addUser({user: "user|" + r.role, pwd: "password", roles: [r.role]}); + r.db.createUser({user: "user|" + r.role, pwd: "password", roles: [r.role]}); } adminDb.logout(); } |