diff options
author | Spencer T Brody <spencer@10gen.com> | 2013-09-04 15:00:54 -0400 |
---|---|---|
committer | Spencer T Brody <spencer@10gen.com> | 2013-09-06 12:31:22 -0400 |
commit | ec23a4a3587f83c603b36b7761881c9edb8c503b (patch) | |
tree | 3e25e86f2743ddc909c14f31c93e70dd5071b311 /jstests/repl | |
parent | 1a2d5ede29501a063f66da108fbb3d9a57eb1289 (diff) | |
download | mongo-ec23a4a3587f83c603b36b7761881c9edb8c503b.tar.gz |
SERVER-9517 Update tests to pass with new user schema
Diffstat (limited to 'jstests/repl')
-rw-r--r-- | jstests/repl/repl_auth.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/jstests/repl/repl_auth.js b/jstests/repl/repl_auth.js index 8c3318373ec..56658e5ccfb 100644 --- a/jstests/repl/repl_auth.js +++ b/jstests/repl/repl_auth.js @@ -4,7 +4,7 @@ var baseName = "jstests_repl11test"; var keyFilePath = "jstests/libs/key1"; setAdmin = function( n ) { - n.getDB( "admin" ).addUser( "super", "super", false, 3 ); + n.getDB( "admin" ).addUser( "super", "super", jsTest.adminUserRoles, 3 ); } auth = function( n ) { @@ -16,12 +16,12 @@ doTest = function(signal, extraOpts) { rt = new ReplTest( baseName ); m = rt.start( true, {}, false, true ); - m.getDB( baseName ).addUser( "test", "test", false, 3 ); + m.getDB( baseName ).addUser( "test", "test", jsTest.basicUserRoles, 3 ); + setAdmin( m ); rt.stop( true ); s = rt.start( false, {}, false, true ); - setAdmin( s ); rt.stop( false ); m = rt.start( true, { auth:null, keyFile: keyFilePath }, true ); |