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

unit tests for ShardingState::initializeShardingAwarenessIfNeeded

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

      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@mongodb.com Esha Maharishi (Inactive)
            Reporter:
            esha.maharishi@mongodb.com Esha Maharishi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: