summaryrefslogtreecommitdiff
path: root/jstests/sharding/gridfs.js
diff options
context:
space:
mode:
authorSpencer T Brody <spencer@10gen.com>2012-08-03 14:55:20 -0400
committerSpencer T Brody <spencer@10gen.com>2012-08-06 14:49:49 -0400
commit8cf562cc844a83849ca6d91f2680761c8f70d739 (patch)
tree78b36fd9b6afa6b86ec84e9da021e842f93c0440 /jstests/sharding/gridfs.js
parentdc89f587c0e4dbfacde71ad2f1e25ac5f8bf9509 (diff)
downloadmongo-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.js7
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()