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

Allow unittests to explicitly set feature flags for certain tests

    • Fully Compatible
    • Sharding 2021-02-22, Sharding 2021-03-08

      We should have a RAII type that allows for enabling or disabling a feature flag during execution of a unit test, or part of a unit test.

      While in general unit tests should not rely on environmental settings such as command line arguments or setParameter values, some of our C++ unit tests for high level sharding or replication behavior do in fact depend on subsystems involving such parameters. Using an RAII type allows specific unit tests to select required behavior or even iterate over multiple settings where appropriate, while still maintaining the property that the unit test itself does not depend on command line arguments or similar.

            Assignee:
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Reporter:
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: