summaryrefslogtreecommitdiff
path: root/src/mongo/s/config_server_test_fixture.h
diff options
context:
space:
mode:
authorRandolph Tan <randolph@10gen.com>2016-06-17 12:59:02 -0400
committerRandolph Tan <randolph@10gen.com>2016-06-21 14:01:49 -0400
commit435048a90c6f5587cb565a4131f3d11c8ee4130d (patch)
treeba16e098235162a0bfe6138a97be974a1b632c6c /src/mongo/s/config_server_test_fixture.h
parent42d38ba1fc71a2c0f7cbd19d58da120aa22925bb (diff)
downloadmongo-435048a90c6f5587cb565a4131f3d11c8ee4130d.tar.gz
SERVER-24379 Implement ShardingCatalogMangerImpl::addShardToZone
Diffstat (limited to 'src/mongo/s/config_server_test_fixture.h')
-rw-r--r--src/mongo/s/config_server_test_fixture.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mongo/s/config_server_test_fixture.h b/src/mongo/s/config_server_test_fixture.h
index 9bee4bb5ea7..9ad3c2f0de2 100644
--- a/src/mongo/s/config_server_test_fixture.h
+++ b/src/mongo/s/config_server_test_fixture.h
@@ -124,6 +124,17 @@ public:
void onFindWithMetadataCommand(
executor::NetworkTestEnv::OnFindCommandWithMetadataFunction func);
+ /**
+ * Setup the config.shards collection to contain the given shards.
+ */
+ Status setupShards(const std::vector<ShardType>& shards);
+
+ /**
+ * Retrieves the shard document from the config server.
+ * Returns {ErrorCodes::ShardNotFound} if the given shard does not exists.
+ */
+ StatusWith<ShardType> getShardDoc(OperationContext* txn, const std::string& shardId);
+
void setUp() override;
void tearDown() override;