diff options
author | Cheahuychou Mao <mao.cheahuychou@gmail.com> | 2022-09-15 19:54:35 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-09-15 22:34:59 +0000 |
commit | 6d10aea7079ac0f73c443346f929c2989c97532a (patch) | |
tree | 6de108b18c63b6fe3226f5af0ffdda3756f3327d /jstests/auth/lib/commands_lib.js | |
parent | 7fca187deec6b2b28339bbb8613a9f8809ab07c8 (diff) | |
download | mongo-6d10aea7079ac0f73c443346f929c2989c97532a.tar.gz |
SERVER-69528 Link cluster count command into mongod
Diffstat (limited to 'jstests/auth/lib/commands_lib.js')
-rw-r--r-- | jstests/auth/lib/commands_lib.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/jstests/auth/lib/commands_lib.js b/jstests/auth/lib/commands_lib.js index 8e7fe629ea1..1bb03846890 100644 --- a/jstests/auth/lib/commands_lib.js +++ b/jstests/auth/lib/commands_lib.js @@ -3076,6 +3076,21 @@ var authCommandsLib = { ] }, { + testname: "clusterCount", + command: {clusterCount: "x"}, + skipSharded: true, + testcases: [ + { + runOnDb: firstDbName, + roles: {__system: 1}, + privileges: [{resource: {cluster: true}, actions: ["internal"]}, {resource: {db: firstDbName, collection: "x"}, actions: ["find"]}], + // clusterCount is only supported on a shardsvr mongod so this test case is expected + // to fail when it runs against a standalone mongod. + expectFail: true, + }, + ] + }, + { testname: "count", command: {count: "x"}, testcases: [ |