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

Allow MongoRunner.runMongod Take In Environment Variables

    XMLWordPrintable

    Details

    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      Security 6 07/17/15, Security 7 08/10/15, Security 12 (04/01/16), Security 13 (04/22/16), Security 14 (05/13/16)

      Description

      Currently it's possible to set environment variables when starting a mongod from the mongo shell in the following fashion.

      _startMongoProgram("env", "ABCD=123", "mongo", "--nodb");
      

      MongoRunner.runMongod should be able to take in environment variables as options and format it as environment variables to _startMongoProgram. This would enable shardingtest, replsettest and possibly other higher-level abstractions that use runMongod to also take in environment variables in their options.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              spencer.jackson Spencer Jackson
              Reporter:
              robert.guo Robert Guo
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: