summaryrefslogtreecommitdiff
path: root/jstests/auth
diff options
context:
space:
mode:
authorMark Benvenuto <mark.benvenuto@mongodb.com>2016-07-21 13:16:55 -0400
committerMark Benvenuto <mark.benvenuto@mongodb.com>2016-07-21 13:16:55 -0400
commitc1042b38c9f6469ddcce2dfdf5dacbff0334cd14 (patch)
tree1fb45bd9b046a700c986087051abda4eda2903c8 /jstests/auth
parent28d04fda95321c84c402338c0849155140dc6cff (diff)
downloadmongo-c1042b38c9f6469ddcce2dfdf5dacbff0334cd14.tar.gz
SERVER-24616 Add new getDiagnosticData command
Diffstat (limited to 'jstests/auth')
-rw-r--r--jstests/auth/lib/commands_lib.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/jstests/auth/lib/commands_lib.js b/jstests/auth/lib/commands_lib.js
index d7aae4fb70d..78240ec1a12 100644
--- a/jstests/auth/lib/commands_lib.js
+++ b/jstests/auth/lib/commands_lib.js
@@ -1356,6 +1356,24 @@ var authCommandsLib = {
]
},
{
+ testname: "getDiagnosticData",
+ command: {getDiagnosticData: 1},
+ skipSharded: true,
+ testcases: [
+ {
+ runOnDb: adminDbName,
+ roles: roles_monitoring,
+ privileges: [
+ {resource: {cluster: true}, actions: ["serverStatus"]},
+ {resource: {cluster: true}, actions: ["replSetGetStatus"]},
+ {resource: {db: "local", collection: "oplog.rs"}, actions: ["collStats"]},
+ ]
+ },
+ {runOnDb: firstDbName, roles: {}},
+ {runOnDb: secondDbName, roles: {}}
+ ]
+ },
+ {
testname: "getLastError",
command: {getLastError: 1},
testcases: [