0
0
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:
Spencer T Brody 2011-11-11 16:15:11 -05:00
parent 58dcee3a00
commit 805982794d

View File

@ -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]