summaryrefslogtreecommitdiff
path: root/jstests/auth/lib
diff options
context:
space:
mode:
authorSiyuan Zhou <siyuan.zhou@mongodb.com>2016-05-17 15:43:35 -0400
committerSiyuan Zhou <siyuan.zhou@mongodb.com>2016-07-05 16:51:04 -0400
commite3ee305be314d8109ec1f1fd558b7011817dbfe7 (patch)
treeb831be96e3a66c52336d2e4a7ca382e5c8a3206f /jstests/auth/lib
parent71424c1c4b87c5819b1fc5cf114078a6f33c6078 (diff)
downloadmongo-e3ee305be314d8109ec1f1fd558b7011817dbfe7.tar.gz
SERVER-24881 Add StepUp Command.
Diffstat (limited to 'jstests/auth/lib')
-rw-r--r--jstests/auth/lib/commands_lib.js15
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,