summaryrefslogtreecommitdiff
path: root/jstests/auth
diff options
context:
space:
mode:
authorEnrico Golfieri <enrico.golfieri@mongodb.com>2022-06-22 08:41:11 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-06-22 09:30:27 +0000
commitad2b9ae23ad19f871f2033dc338c96ad9aa8d161 (patch)
treeba9f2630e6a06aa55e9ea210dfca76164c9f536d /jstests/auth
parentb987618f40153ceaeeed328fffb07991f8c6a7cf (diff)
downloadmongo-ad2b9ae23ad19f871f2033dc338c96ad9aa8d161.tar.gz
SERVER-65645 IDL-ify all commands on the chunk migration path
Diffstat (limited to 'jstests/auth')
-rw-r--r--jstests/auth/lib/commands_lib.js25
1 files changed, 22 insertions, 3 deletions
diff --git a/jstests/auth/lib/commands_lib.js b/jstests/auth/lib/commands_lib.js
index d4941a18b1f..f67108737f0 100644
--- a/jstests/auth/lib/commands_lib.js
+++ b/jstests/auth/lib/commands_lib.js
@@ -3028,8 +3028,27 @@ var authCommandsLib = {
]
},
{
- testname: "_configsvrCommitChunkMigration",
- command: {_configsvrCommitChunkMigration: "x.y"},
+ testname: "_configsvrCommitChunkMigration",
+ command: {
+ _configsvrCommitChunkMigration: "db.fooHashed",
+ fromShard: "move_chunk_basic-rs0",
+ toShard: "move_chunk_basic-rs1",
+ migratedChunk: {
+ lastmod: {
+ e: new ObjectId('62b052ac7f5653479a67a54f'),
+ t: new Timestamp(1655722668, 22),
+ v: new Timestamp(1, 0)
+ },
+ min: {_id: MinKey},
+ max: {_id: -4611686018427387902}
+ },
+ fromShardCollectionVersion: {
+ e: new ObjectId('62b052ac7f5653479a67a54f'),
+ t: new Timestamp(1655722668, 22),
+ v: new Timestamp(1, 3)
+ },
+ validAfter: new Timestamp(1655722670, 6)
+ },
skipSharded: true,
expectFail: true,
testcases: [
@@ -5010,7 +5029,7 @@ var authCommandsLib = {
},
{
testname: "s_moveChunk",
- command: {moveChunk: "test.x"},
+ command: {moveChunk: "test.x", find:{}, to:"a"},
skipUnlessSharded: true,
testcases: [
{