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

unit tests for ShardingState::initializeShardingAwarenessIfNeeded

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.3.14
    • None
    • Sharding
    • None
    • Fully Compatible
    • Sharding 2016-08-29, Sharding 2016-09-19, Sharding 2016-10-10

    Description

      The unit test infrastructure should be reorganized slightly to prevent duplicate code in multiple fixtures.

      Currently, this method is part of the ShardingState class, whose methods are either tested on the ShardingStateTest fixture or not unit tested.

      This is largely because the ShardingStateTest fixture has neither:

      • a network interface mock
      • a storage engine mock

      Rather than making ShardingStateTest yet another test fixture that implements functionality needed to use the NetworkInterfaceMock or ServiceContextMongoDTest (in its setUp() method), the sharding test fixtures should be reorganized for better inheritance and modularity.

      See SERVER-25456 for details.

      Attachments

        Activity

          People

            esha.maharishi@mongodb.com Esha Maharishi (Inactive)
            esha.maharishi@mongodb.com Esha Maharishi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: