diff options
author | Marcos Jose Grillo Ramirez <marcos.grillo@mongodb.com> | 2022-03-18 10:51:00 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-03-18 11:43:05 +0000 |
commit | b1dc7f546a006efa5edf063286e4368ca603fe48 (patch) | |
tree | 43624a20b5d81f23a1936bec88a91ce388992dd8 /jstests/auth | |
parent | ebb1f3900176b9df1f3c20646f349c9785914c43 (diff) | |
download | mongo-b1dc7f546a006efa5edf063286e4368ca603fe48.tar.gz |
SERVER-62265 Add setClusterParameter command to mongos
Diffstat (limited to 'jstests/auth')
-rw-r--r-- | jstests/auth/lib/commands_lib.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/jstests/auth/lib/commands_lib.js b/jstests/auth/lib/commands_lib.js index 6a3be948448..95b93b31fdb 100644 --- a/jstests/auth/lib/commands_lib.js +++ b/jstests/auth/lib/commands_lib.js @@ -5589,6 +5589,18 @@ var authCommandsLib = { ] }, { + testname: "setClusterParameter", + command: {setClusterParameter: {param: true}}, + skipTest: (conn) => !TestData.setParameters.featureFlagClusterWideConfig, + testcases: [ + { + runOnDb: adminDbName, + roles: {clusterManager: 1, clusterAdmin: 1, root:1, __system:1}, + privileges: [{resource: {cluster: true}, actions: ["setClusterParameter"]}] + } + ] + }, + { testname: "setDefaultRWConcern", command: { setDefaultRWConcern: 1, |