diff options
author | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2016-07-21 13:16:55 -0400 |
---|---|---|
committer | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2016-07-21 13:16:55 -0400 |
commit | c1042b38c9f6469ddcce2dfdf5dacbff0334cd14 (patch) | |
tree | 1fb45bd9b046a700c986087051abda4eda2903c8 /jstests/auth | |
parent | 28d04fda95321c84c402338c0849155140dc6cff (diff) | |
download | mongo-c1042b38c9f6469ddcce2dfdf5dacbff0334cd14.tar.gz |
SERVER-24616 Add new getDiagnosticData command
Diffstat (limited to 'jstests/auth')
-rw-r--r-- | jstests/auth/lib/commands_lib.js | 18 |
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: [ |