summaryrefslogtreecommitdiff
path: root/jstests/auth/lib
diff options
context:
space:
mode:
authorJason Zhang <jason.zhang@mongodb.com>2022-09-19 15:59:03 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-09-19 17:20:54 +0000
commitd99780adf52c65a2c30727d92b534e6d2190d289 (patch)
tree48efd05dbb1f8d936542e6d0cfdc9253edf6a27c /jstests/auth/lib
parentdc9011293fca02542b98ffe1468b62a1f37f4a7f (diff)
downloadmongo-d99780adf52c65a2c30727d92b534e6d2190d289.tar.gz
SERVER-69624 Add _clusterWriteWithoutShardKey command stub
Diffstat (limited to 'jstests/auth/lib')
-rw-r--r--jstests/auth/lib/commands_lib.js25
1 files changed, 25 insertions, 0 deletions
diff --git a/jstests/auth/lib/commands_lib.js b/jstests/auth/lib/commands_lib.js
index 1bb03846890..078df02e720 100644
--- a/jstests/auth/lib/commands_lib.js
+++ b/jstests/auth/lib/commands_lib.js
@@ -248,6 +248,31 @@ var authCommandsLib = {
]
},
{
+ testname: "_clusterWriteWithoutShardKey",
+ command: {_clusterWriteWithoutShardKey: 1, writeCmd: {}, shardId: ""},
+ skipUnlessSharded: true,
+ skipTest: (conn) => {
+ return !TestData.setParameters.featureFlagUpdateOneWithoutShardKey;
+ },
+ testcases: [
+ {
+ runOnDb: adminDbName,
+ roles: {__system: 1},
+ privileges: [{resource: {cluster: true}, actions: ["internal"]}],
+ },
+ {
+ runOnDb: firstDbName,
+ roles: {__system: 1},
+ privileges: [{resource: {cluster: true}, actions: ["internal"]}],
+ },
+ {
+ runOnDb: secondDbName,
+ roles: {__system: 1},
+ privileges: [{resource: {cluster: true}, actions: ["internal"]}],
+ }
+ ]
+ },
+ {
testname: "_configsvrAbortReshardCollection",
command: {_configsvrAbortReshardCollection: "test.x"},
skipSharded: true,