diff options
Diffstat (limited to 'jstests/auth/lib')
-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: [ |