-
Type: Task
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Security
-
None
Currently disk/repair.js fails when running with auth because it uses runMongoProgram to start a mongod so that they can get the return code when the process finishes. The problem is that when in auth mode runMongoProgram adds a -u and -p argument to allow tools that are started that way to connect to mongods running with auth, but mongod doesn't have a -u or -p argument.
The ideal fix would be to use startMongodTest which does the right thing with auth, but startMongodTest doesn't currently provide any way to check the return code of the mongod process when it terminates.
To fix this we should add a way to join() to a mongod process started with startMongodTest and get it's return code. Then we can change all disk and dur tests to use startMongodTest instead of runMongoProgram and can get the exit status that way.
- depends on
-
SERVER-7357 Clean up how the shell launches processes
- Closed
- is depended on by
-
SERVER-4237 Enable the full js test suite to run with authentication enabled
- Closed
- is duplicated by
-
SERVER-7351 Command line parsing error -- 'mongod' -- "error command line: unknown option -u"
- Closed
- related to
-
SERVER-7317 Make dur tests pass with auth
- Closed
-
SERVER-13194 Make remaining test suites run in auth passthrough mode
- Closed