diff options
author | Alya Berciu <alyacarina@gmail.com> | 2021-07-20 19:18:21 +0300 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-07-22 13:44:00 +0000 |
commit | adecbaa346c6e8d8dbf292a3c08aa22b0350b62e (patch) | |
tree | ef25633e817aafe8653aead235ee3b4627791c84 | |
parent | cdb43efd361b20a0c6a9bf7ad6e14dd307b6a1a4 (diff) | |
download | mongo-adecbaa346c6e8d8dbf292a3c08aa22b0350b62e.tar.gz |
SERVER-32536 Enable collation test for sharded $lookup
-rw-r--r-- | jstests/sharding/query/collation_lookup.js | 39 |
1 files changed, 19 insertions, 20 deletions
diff --git a/jstests/sharding/query/collation_lookup.js b/jstests/sharding/query/collation_lookup.js index 106597ff986..7101179acb6 100644 --- a/jstests/sharding/query/collation_lookup.js +++ b/jstests/sharding/query/collation_lookup.js @@ -606,30 +606,29 @@ assert.commandWorked(mongosDB.adminCommand({ runTests(withDefaultCollationColl, withoutDefaultCollationColl, caseInsensitive); -// TODO: Enable the following tests once SERVER-32536 is fixed. // -// Sharded collection with default collation and sharded collection without a default -// collation. +// Sharded collection with default collation and sharded collection without a default collation. // // Shard the collection without a default collation. -// assert.commandWorked(mongosDB.adminCommand({ -// shardCollection: withoutDefaultCollationColl.getFullName(), -// key: {_id: 1}, -// })); - -// // Split the collection into 2 chunks. -// assert.commandWorked(mongosDB.adminCommand( -// {split: withoutDefaultCollationColl.getFullName(), middle: {_id: "unmatched"}})); - -// // Move the chunk containing {_id: "lowercase"} to shard0001. -// assert.commandWorked(mongosDB.adminCommand({ -// moveChunk: withoutDefaultCollationColl.getFullName(), -// find: {_id: "lowercase"}, -// to: st.shard1.shardName -// })); - -// runTests(withDefaultCollationColl, withoutDefaultCollationColl, caseInsensitive); +assert.commandWorked(mongosDB.adminCommand({ + shardCollection: withoutDefaultCollationColl.getFullName(), + key: {_id: 1}, +})); + +// Split the collection into 2 chunks. +assert.commandWorked(mongosDB.adminCommand( + {split: withoutDefaultCollationColl.getFullName(), middle: {_id: "unmatched"}})); + +// Move the chunk containing {_id: "lowercase"} to shard0001. +assert.commandWorked(mongosDB.adminCommand({ + moveChunk: withoutDefaultCollationColl.getFullName(), + find: {_id: "lowercase"}, + to: st.shard1.shardName, + _waitForDelete: true +})); + +runTests(withDefaultCollationColl, withoutDefaultCollationColl, caseInsensitive); st.stop(); })(); |