mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
Authenticate at the beginning of every test.
This commit is contained in:
parent
58dcee3a00
commit
805982794d
@ -318,6 +318,7 @@ def runTest(test):
|
||||
'TestData.keyFile = ' + ( '"' + keyFile + '"' if keyFile else 'null' ) + ";" + \
|
||||
'TestData.keyFileData = ' + ( '"' + keyFileData + '"' if keyFile else 'null' ) + ";"
|
||||
if auth and usedb:
|
||||
evalString += 'db.getSiblingDB("admin").addUser("admin","password");'
|
||||
evalString += 'jsTest.authenticate(db.getMongo());'
|
||||
argv = argv + [ '--eval', evalString]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user