Commit Graph

15 Commits

Author SHA1 Message Date
Max Hirschhorn
01dfe61a6c SERVER-23741 Use MongoRunner.runMongoTool() to run tools from JS tests.
Changes all usages of runMongoProgram(<mongo tool>, ...) to
MongoRunner.runMongoTool(<mongo tool>, {...}) to take advantage of the
--dialTimeout command line option supported by the mongo tools.

Adds support for specifying positional arguments to
MongoRunner.runMongoTool() in order to support all invocations of the
bsondump and mongofiles tools.
2016-06-07 16:01:44 -04:00
Jonathan Abrahams
4ae691e8ed SERVER-22468 Format JS code with approved style in jstests/ 2016-03-09 12:18:14 -05:00
Mike Grundy
55b5ad8723 SERVER-22341 fix jslint errors in jstests/tool with eslint --fix 2016-02-05 15:00:52 -05:00
Spencer Jackson
21bcf6b127 SERVER-21724 Let backup role read system.profile 2015-12-15 15:59:58 -05:00
Gabriel Russell
223b4e28b6 TOOLS-833 disable unreliable dump to stdout test
o Its actually not ok to run any programs with runMongoProgram
  that write binary data to standard output
2015-07-23 15:25:36 -04:00
mike o'brien
3140bfa914 SERVER-18239 dumpauth.js should use correct db/collection names
Signed-off-by: Ernie Hershey <ernie.hershey@10gen.com>
2015-04-28 13:22:20 -04:00
Spencer T Brody
6ccb82c987 SERVER-17450 Standardize on a single way to start mongod in tests 2015-04-06 18:19:21 -04:00
Amalia Hawkins
1b4b52a9d4 SERVER-12621 narrow the localhost exception when auth is enabled 2014-05-22 20:29:39 -04:00
Spencer T Brody
49fd6dbb2b SERVER-11555 Replace all occurrences of addUser with createUser in jstests 2013-11-06 17:11:39 -05:00
Benety Goh
2e10439eba SERVER-9579 fixed dbpath prefix for all smoke tests that start (multiple) mongod processes through the mongo shell 2013-10-29 13:11:41 -04:00
Spencer T Brody
f0c6cebd73 SERVER-10794 Maintain backwards-compatible form of addUser for one more release 2013-10-11 18:14:12 -04:00
Spencer T Brody
ec23a4a358 SERVER-9517 Update tests to pass with new user schema 2013-09-06 12:31:22 -04:00
Spencer T Brody
211099e4bb SERVER-6246 Restrict direct removes from system.users, add a shell helper to use the removeUser command, and update tests to use the helper 2013-08-01 14:12:09 -04:00
Andy Schwerin
00ac54a1d2 SERVER-8429 Fix tests in jstests/tool.
The affected tests depended on a behavior of mongodump and mongorestore in 2.2
and prior, whereby the tools would attempt authentication via the users'
credentials against several databases, until one matched.  This behavior is
risky, because it could leave the tool authenticating as a user with
insufficient privilege to do its task, and it is inconsistent with other tools.

The tool behavior in 2.4 is to authenticate against the target database if one
is supplied, or admin if none is supplied, unless the user overrides this
behavior by passing --authenticationDatabase=dbname to the tool.
2013-02-13 10:34:54 -05:00
Brandon Diamond
9739a55166 SERVER-5233: fix mongodump with authentication + test 2012-05-25 13:34:27 -04:00