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

Implicitly setup the database in ConfigServerTestFixture::setupCollection

    XMLWordPrintable

Details

    Description

      Some tests using the ConfigServerTestFixture are currently relying on inconsistent metadata not emulating a real context:
      ConfigServerTestFixture::setupCollection is populating config.collections with a collection document. However,
      it must also check whether a database entry already exists in config.databases and - if not - implicitly initialize it by calling ConfigServerTestFixture::setupDatabase.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: