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

Make disk tests pass with auth

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 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.

            Assignee:
            backlog-server-platform DO NOT USE - Backlog - Platform Team
            Reporter:
            spencer@mongodb.com Spencer Brody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: