Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-7356

Make disk tests pass with auth

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Gone away
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Security
    • Labels:
      None

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: