diff options
author | Spencer T Brody <spencer@10gen.com> | 2012-08-03 14:55:20 -0400 |
---|---|---|
committer | Spencer T Brody <spencer@10gen.com> | 2012-08-06 14:49:49 -0400 |
commit | 8cf562cc844a83849ca6d91f2680761c8f70d739 (patch) | |
tree | 78b36fd9b6afa6b86ec84e9da021e842f93c0440 /jstests/sharding/gridfs.js | |
parent | dc89f587c0e4dbfacde71ad2f1e25ac5f8bf9509 (diff) | |
download | mongo-8cf562cc844a83849ca6d91f2680761c8f70d739.tar.gz |
SERVER-4237 Move auth handling out of gridfs.js and into test infrastructure
Diffstat (limited to 'jstests/sharding/gridfs.js')
-rw-r--r-- | jstests/sharding/gridfs.js | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/jstests/sharding/gridfs.js b/jstests/sharding/gridfs.js index 75e39671587..8c834d332c8 100644 --- a/jstests/sharding/gridfs.js +++ b/jstests/sharding/gridfs.js @@ -19,12 +19,7 @@ function testGridFS(name) { var rawmd5 = md5sumFile(filename) // upload file (currently calls filemd5 internally) - var mongofiles_args = ["mongofiles", "--port", mongos.port, "put", filename, '--db', name]; - if (jsTestOptions().auth) { // SERVER-4237 - mongofiles_args.push.apply(mongofiles_args, ['-u', jsTestOptions().adminUser, - "-p", jsTestOptions().adminPassword]); - } - runMongoProgram.apply(null, mongofiles_args); + runMongoProgram.apply(null, ["mongofiles", "--port", mongos.port, "put", filename, '--db', name]); assert.eq(d.fs.files.count(), 1) var fileObj = d.fs.files.findOne() |