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/rename.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/rename.js')
-rw-r--r-- | jstests/auth/rename.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/jstests/auth/rename.js b/jstests/auth/rename.js index 0cdf191ef26..1ed0e584811 100644 --- a/jstests/auth/rename.js +++ b/jstests/auth/rename.js @@ -10,11 +10,11 @@ db2 = m.getDB( baseName + '_other' ) admin = m.getDB( 'admin' ) // Setup initial data -admin.addUser({user:'admin', pwd: 'password', roles: jsTest.adminUserRoles}); +admin.createUser({user:'admin', pwd: 'password', roles: jsTest.adminUserRoles}); admin.auth('admin', 'password') -db1.addUser({user: "foo", pwd: "bar", roles: jsTest.basicUserRoles}); -db2.addUser({user: "bar", pwd: "foo", roles: jsTest.basicUserRoles}); +db1.createUser({user: "foo", pwd: "bar", roles: jsTest.basicUserRoles}); +db2.createUser({user: "bar", pwd: "foo", roles: jsTest.basicUserRoles}); printjson(db1.a.count()); db1.a.save({}); |