diff options
Diffstat (limited to 'src/mongo/db/s/config/sharding_catalog_manager_assign_key_range_to_zone_test.cpp')
-rw-r--r-- | src/mongo/db/s/config/sharding_catalog_manager_assign_key_range_to_zone_test.cpp | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/mongo/db/s/config/sharding_catalog_manager_assign_key_range_to_zone_test.cpp b/src/mongo/db/s/config/sharding_catalog_manager_assign_key_range_to_zone_test.cpp index 297a4aa04d8..377d17292ff 100644 --- a/src/mongo/db/s/config/sharding_catalog_manager_assign_key_range_to_zone_test.cpp +++ b/src/mongo/db/s/config/sharding_catalog_manager_assign_key_range_to_zone_test.cpp @@ -117,11 +117,11 @@ public: } NamespaceString shardedNS() const { - return NamespaceString("test.foo"); + return NamespaceString::createNamespaceString_forTest("test.foo"); } NamespaceString unshardedNS() const { - return NamespaceString("unsharded.coll"); + return NamespaceString::createNamespaceString_forTest("unsharded.coll"); } std::string zoneName() const { @@ -258,7 +258,7 @@ TEST_F(AssignKeyRangeToZoneTestFixture, RemoveZoneWithDollarPrefixedShardKeysSho } TEST_F(AssignKeyRangeToZoneTestFixture, MinThatIsAShardKeyPrefixShouldConvertToFullShardKey) { - NamespaceString ns("compound.shard"); + NamespaceString ns = NamespaceString::createNamespaceString_forTest("compound.shard"); CollectionType shardedCollection( ns, OID::gen(), Timestamp(1, 1), Date_t::now(), UUID::gen(), BSON("x" << 1 << "y" << 1)); @@ -275,7 +275,7 @@ TEST_F(AssignKeyRangeToZoneTestFixture, MinThatIsAShardKeyPrefixShouldConvertToF } TEST_F(AssignKeyRangeToZoneTestFixture, MaxThatIsAShardKeyPrefixShouldConvertToFullShardKey) { - NamespaceString ns("compound.shard"); + NamespaceString ns = NamespaceString::createNamespaceString_forTest("compound.shard"); CollectionType shardedCollection( ns, OID::gen(), Timestamp(1, 1), Date_t::now(), UUID::gen(), BSON("x" << 1 << "y" << 1)); @@ -327,7 +327,7 @@ TEST_F(AssignKeyRangeToZoneTestFixture, MinMaxThatIsNotAShardKeyPrefixShouldFail } TEST_F(AssignKeyRangeToZoneTestFixture, MinMaxThatIsAShardKeyPrefixShouldSucceed) { - NamespaceString ns("compound.shard"); + NamespaceString ns = NamespaceString::createNamespaceString_forTest("compound.shard"); CollectionType shardedCollection( ns, OID::gen(), Timestamp(1, 1), Date_t::now(), UUID::gen(), BSON("x" << 1 << "y" << 1)); @@ -365,7 +365,8 @@ TEST_F(AssignKeyRangeToZoneTestFixture, PrefixIsNotAllowedOnUnshardedColl) { } TEST_F(AssignKeyRangeToZoneTestFixture, TimeseriesCollMustHaveTimeKeyRangeMinKey) { - const NamespaceString ns("test.system.buckets.timeseries"); + const NamespaceString ns = + NamespaceString::createNamespaceString_forTest("test.system.buckets.timeseries"); const StringData metaField = "meta"_sd; const StringData timeField = "time"_sd; const std::string controlTimeField = @@ -525,7 +526,7 @@ TEST_F(AssignKeyRangeWithOneRangeFixture, NewRangeOverlappingInsideExistingShoul * 0123456789 */ TEST_F(AssignKeyRangeWithOneRangeFixture, NewRangeOverlappingWithDifferentNSShouldSucceed) { - CollectionType shardedCollection(NamespaceString("other.coll"), + CollectionType shardedCollection(NamespaceString::createNamespaceString_forTest("other.coll"), OID::gen(), Timestamp(1, 1), Date_t::now(), @@ -749,7 +750,7 @@ TEST_F(AssignKeyRangeWithOneRangeFixture, RemoveWithInvalidMaxShardKeyShouldFail } TEST_F(AssignKeyRangeWithOneRangeFixture, RemoveWithPartialMinPrefixShouldRemoveRange) { - NamespaceString ns("compound.shard"); + NamespaceString ns = NamespaceString::createNamespaceString_forTest("compound.shard"); CollectionType shardedCollection( ns, OID::gen(), Timestamp(1, 1), Date_t::now(), UUID::gen(), BSON("x" << 1 << "y" << 1)); @@ -772,7 +773,7 @@ TEST_F(AssignKeyRangeWithOneRangeFixture, RemoveWithPartialMinPrefixShouldRemove } TEST_F(AssignKeyRangeWithOneRangeFixture, RemoveWithPartialMaxPrefixShouldRemoveRange) { - NamespaceString ns("compound.shard"); + NamespaceString ns = NamespaceString::createNamespaceString_forTest("compound.shard"); CollectionType shardedCollection( ns, OID::gen(), Timestamp(1, 1), Date_t::now(), UUID::gen(), BSON("x" << 1 << "y" << 1)); |