summaryrefslogtreecommitdiff
path: root/jstests/auth/lib/commands_lib.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/auth/lib/commands_lib.js')
-rw-r--r--jstests/auth/lib/commands_lib.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/jstests/auth/lib/commands_lib.js b/jstests/auth/lib/commands_lib.js
index 5ac0a0c717f..1751a33cb37 100644
--- a/jstests/auth/lib/commands_lib.js
+++ b/jstests/auth/lib/commands_lib.js
@@ -638,6 +638,30 @@ var authCommandsLib = {
]
},
{
+ testname: "aggregate_currentOp_allUsers_true",
+ command: {aggregate: 1, pipeline: [{$currentOp: {allUsers: true}}], cursor: {}},
+ skipSharded: true,
+ testcases: [
+ {
+ runOnDb: adminDbName,
+ roles: roles_monitoring,
+ privileges: [{resource: {cluster: true}, actions: ["inprog"]}]
+ },
+ {
+ runOnDb: firstDbName,
+ roles: roles_monitoring,
+ privileges: [{resource: {cluster: true}, actions: ["inprog"]}],
+ expectFail: true
+ }
+ ]
+ },
+ {
+ testname: "aggregate_currentOp_allUsers_false",
+ command: {aggregate: 1, pipeline: [{$currentOp: {allUsers: false}}], cursor: {}},
+ skipSharded: true,
+ testcases: [{runOnDb: adminDbName, roles: roles_all}]
+ },
+ {
testname: "aggregate_lookup",
command: {
aggregate: "foo",