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

Allow MongoRunner.runMongod Take In Environment Variables

    • 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)

      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@mongodb.com Spencer Jackson
            Reporter:
            robert.guo@mongodb.com Robert Guo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: