diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2016-11-11 15:16:02 -0500 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2016-11-15 10:08:45 -0500 |
commit | 19449d2883f2a97b622102935a63606d950573ad (patch) | |
tree | 722847867f0dcdeb7e86dee382cfccfc5afff0dc /src/mongo/db/s/collection_sharding_state_test.cpp | |
parent | 57ed82f0692bfb4e7a045a0108d029e53b21e3f8 (diff) | |
download | mongo-19449d2883f2a97b622102935a63606d950573ad.tar.gz |
SERVER-22657 Cleanup CollectionShardingState test and configsvr commands
Diffstat (limited to 'src/mongo/db/s/collection_sharding_state_test.cpp')
-rw-r--r-- | src/mongo/db/s/collection_sharding_state_test.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mongo/db/s/collection_sharding_state_test.cpp b/src/mongo/db/s/collection_sharding_state_test.cpp index 8a7ca715141..c8d86bd7140 100644 --- a/src/mongo/db/s/collection_sharding_state_test.cpp +++ b/src/mongo/db/s/collection_sharding_state_test.cpp @@ -47,7 +47,7 @@ namespace mongo { namespace { -class CollShardingStateTest : public mongo::unittest::Test { +class CollectionShardingStateTest : public mongo::unittest::Test { public: void setUp() override { _service.setFastClockSource(stdx::make_unique<ClockSourceMock>()); @@ -92,7 +92,7 @@ private: int _initCallCount = 0; }; -TEST_F(CollShardingStateTest, GlobalInitGetsCalledAfterWriteCommits) { +TEST_F(CollectionShardingStateTest, GlobalInitGetsCalledAfterWriteCommits) { CollectionShardingState collShardingState(&_service, NamespaceString::kConfigCollectionNamespace); @@ -112,7 +112,7 @@ TEST_F(CollShardingStateTest, GlobalInitGetsCalledAfterWriteCommits) { ASSERT_EQ(1, getInitCallCount()); } -TEST_F(CollShardingStateTest, GlobalInitDoesntGetCalledIfWriteAborts) { +TEST_F(CollectionShardingStateTest, GlobalInitDoesntGetCalledIfWriteAborts) { CollectionShardingState collShardingState(getServiceContext(), NamespaceString::kConfigCollectionNamespace); @@ -132,7 +132,7 @@ TEST_F(CollShardingStateTest, GlobalInitDoesntGetCalledIfWriteAborts) { ASSERT_EQ(0, getInitCallCount()); } -TEST_F(CollShardingStateTest, GlobalInitDoesntGetsCalledIfNSIsNotForShardIdentity) { +TEST_F(CollectionShardingStateTest, GlobalInitDoesntGetCalledIfNSIsNotForShardIdentity) { CollectionShardingState collShardingState(getServiceContext(), NamespaceString("admin.user")); ShardIdentityType shardIdentity; @@ -151,7 +151,7 @@ TEST_F(CollShardingStateTest, GlobalInitDoesntGetsCalledIfNSIsNotForShardIdentit ASSERT_EQ(0, getInitCallCount()); } -TEST_F(CollShardingStateTest, OnInsertOpThrowWithIncompleteShardIdentityDocument) { +TEST_F(CollectionShardingStateTest, OnInsertOpThrowWithIncompleteShardIdentityDocument) { CollectionShardingState collShardingState(getServiceContext(), NamespaceString::kConfigCollectionNamespace); @@ -161,7 +161,7 @@ TEST_F(CollShardingStateTest, OnInsertOpThrowWithIncompleteShardIdentityDocument ASSERT_THROWS(collShardingState.onInsertOp(txn(), shardIdentity.toBSON()), AssertionException); } -TEST_F(CollShardingStateTest, GlobalInitDoesntGetsCalledIfShardIdentityDocWasNotInserted) { +TEST_F(CollectionShardingStateTest, GlobalInitDoesntGetCalledIfShardIdentityDocWasNotInserted) { CollectionShardingState collShardingState(getServiceContext(), NamespaceString::kConfigCollectionNamespace); |