diff options
author | Siyuan Zhou <siyuan.zhou@mongodb.com> | 2016-05-17 15:43:35 -0400 |
---|---|---|
committer | Siyuan Zhou <siyuan.zhou@mongodb.com> | 2016-07-05 16:51:04 -0400 |
commit | e3ee305be314d8109ec1f1fd558b7011817dbfe7 (patch) | |
tree | b831be96e3a66c52336d2e4a7ca382e5c8a3206f /jstests/auth/lib | |
parent | 71424c1c4b87c5819b1fc5cf114078a6f33c6078 (diff) | |
download | mongo-e3ee305be314d8109ec1f1fd558b7011817dbfe7.tar.gz |
SERVER-24881 Add StepUp Command.
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 10fe4cd0216..d7aae4fb70d 100644 --- a/jstests/auth/lib/commands_lib.js +++ b/jstests/auth/lib/commands_lib.js @@ -2377,6 +2377,21 @@ var authCommandsLib = { ] }, { + testname: "replSetStepUp", + command: {replSetStepUp: "x"}, + skipSharded: true, + testcases: [ + { + runOnDb: adminDbName, + roles: roles_clusterManager, + privileges: [{resource: {cluster: true}, actions: ["replSetStateChange"]}], + expectFail: true + }, + {runOnDb: firstDbName, roles: {}}, + {runOnDb: secondDbName, roles: {}} + ] + }, + { testname: "replSetSyncFrom", command: {replSetSyncFrom: "x"}, skipSharded: true, |