diff options
author | mathisbessamdb <mathis.bessa@mongodb.com> | 2022-11-18 23:04:18 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-11-18 23:58:48 +0000 |
commit | 4fd85ab061c1b31af3d641d743420d66ce25cf5c (patch) | |
tree | ac715e5637d6aee1523be2fdc8bf185058910c60 /jstests/serverless/shard_split_rejects_multiple_ops.js | |
parent | 0d9b3912cee0897af35ec529a687d886f2b5a06d (diff) | |
download | mongo-4fd85ab061c1b31af3d641d743420d66ce25cf5c.tar.gz |
SERVER-71179 Update the ShardSplitCommands to use the TenantId class
Diffstat (limited to 'jstests/serverless/shard_split_rejects_multiple_ops.js')
-rw-r--r-- | jstests/serverless/shard_split_rejects_multiple_ops.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/jstests/serverless/shard_split_rejects_multiple_ops.js b/jstests/serverless/shard_split_rejects_multiple_ops.js index ca8bed73777..1a6f23c0fad 100644 --- a/jstests/serverless/shard_split_rejects_multiple_ops.js +++ b/jstests/serverless/shard_split_rejects_multiple_ops.js @@ -11,7 +11,7 @@ load("jstests/serverless/libs/shard_split_test.js"); (function() { "use strict"; -const tenantIds = ["tenant1", "tenant2"]; +const tenantIds = [ObjectId(), ObjectId()]; function commitShardSplitConcurrently() { const test = new ShardSplitTest({quickGarbageCollection: true}); @@ -32,7 +32,7 @@ function commitShardSplitConcurrently() { assert.commandFailedWithCode(donorPrimary.adminCommand({ commitShardSplit: 1, migrationId: UUID(), - tenantIds: ["tenant3", "tenant4"], + tenantIds: [ObjectId(), ObjectId()], recipientTagName: test.recipientTagName, recipientSetName: test.recipientSetName }), @@ -48,7 +48,7 @@ function commitShardSplitConcurrently() { assert.commandFailedWithCode(donorPrimary.adminCommand({ commitShardSplit: 1, migrationId: UUID(), - tenantIds: ["tenant1", "tenant3"], // re use one tenantid + tenantIds: [ObjectId(), ObjectId()], // re use one tenantid recipientTagName: test.recipientTagName, recipientSetName: test.recipientSetName }), @@ -64,7 +64,7 @@ function commitShardSplitConcurrently() { assert.commandWorked(donorPrimary.adminCommand({ commitShardSplit: 1, migrationId: UUID(), - tenantIds: ["tenant10", "tenant11"], + tenantIds: [ObjectId(), ObjectId()], recipientTagName: test.recipientTagName, recipientSetName: test.recipientSetName })); |