diff options
author | Spencer T Brody <spencer@10gen.com> | 2013-10-10 20:04:15 -0400 |
---|---|---|
committer | Spencer T Brody <spencer@10gen.com> | 2013-10-11 18:14:12 -0400 |
commit | f0c6cebd73410c711ff2fc1167f7bded692dad1e (patch) | |
tree | d01f5609418387d75701adcd373fd59caa571353 /jstests/auth/server-4892.js | |
parent | 100fc6d278597a4e119ac70b07b0f7c38cd2c4ab (diff) | |
download | mongo-f0c6cebd73410c711ff2fc1167f7bded692dad1e.tar.gz |
SERVER-10794 Maintain backwards-compatible form of addUser for one more release
Diffstat (limited to 'jstests/auth/server-4892.js')
-rw-r--r-- | jstests/auth/server-4892.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/auth/server-4892.js b/jstests/auth/server-4892.js index 6bf745eedd8..ba8236d3d80 100644 --- a/jstests/auth/server-4892.js +++ b/jstests/auth/server-4892.js @@ -49,9 +49,9 @@ with_mongod( ['--noauth'], function setupTest( mongod ) { conn = new Mongo( mongod.host ); admin = conn.getDB( 'admin' ); somedb = conn.getDB( 'somedb' ); - admin.addUser( 'admin', 'admin', jsTest.adminUserRoles ); + admin.addUser({user: 'admin', pwd: 'admin', roles: jsTest.adminUserRoles}); admin.auth('admin', 'admin'); - somedb.addUser( 'frim', 'fram', jsTest.basicUserRoles ); + somedb.addUser({user: 'frim', pwd: 'fram', roles: jsTest.basicUserRoles}); somedb.data.drop(); for (var i = 0; i < 10; ++i) { somedb.data.insert( { val: i } ); |