summaryrefslogtreecommitdiff
path: root/buildscripts
diff options
context:
space:
mode:
authorSpencer T Brody <spencer@10gen.com>2011-11-11 16:15:11 -0500
committerSpencer T Brody <spencer@10gen.com>2011-11-11 16:32:18 -0500
commit805982794d33711f538713e193835a405a6293f4 (patch)
treef6f51d215fe914c9a0c8e256683344e0413c6718 /buildscripts
parent58dcee3a0000a3bafc49afb074bba4fd20f6bbde (diff)
downloadmongo-805982794d33711f538713e193835a405a6293f4.tar.gz
Authenticate at the beginning of every test.
Diffstat (limited to 'buildscripts')
-rwxr-xr-xbuildscripts/smoke.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/buildscripts/smoke.py b/buildscripts/smoke.py
index a1086291550..be3d5917acc 100755
--- a/buildscripts/smoke.py
+++ b/buildscripts/smoke.py
@@ -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]