unit tests for ShardingState::initializeShardingAwarenessIfNeeded

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Major - P3
    • 3.3.14
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • Sharding 2016-08-29, Sharding 2016-09-19, Sharding 2016-10-10
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Esha Maharishi (Inactive)
            Reporter:
            Esha Maharishi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: