Allow MongoRunner.runMongod Take In Environment Variables

XMLWordPrintableJSON

    • Fully Compatible
    • 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)
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

              Assignee:
              Spencer Jackson
              Reporter:
              Robert Guo (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated:
                Resolved: