summaryrefslogtreecommitdiff
path: root/jstests/repl
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/repl')
-rw-r--r--jstests/repl/repl_auth.js6
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 );