diff options
author | Spencer T Brody <spencer@mongodb.com> | 2016-09-06 13:27:11 -0400 |
---|---|---|
committer | Spencer T Brody <spencer@mongodb.com> | 2016-09-08 13:19:05 -0400 |
commit | 528fd4de717fefdd6ab652bed4f1996a95c12a35 (patch) | |
tree | f4d950a5b255d4e5143350ae6549862d75f03199 /jstests/auth | |
parent | cb08672b2e759f4a63a114a171e009ea95925fca (diff) | |
download | mongo-528fd4de717fefdd6ab652bed4f1996a95c12a35.tar.gz |
SERVER-25968 Add access control test for _configsvrCommitChunk{Split,Merge}
Diffstat (limited to 'jstests/auth')
-rw-r--r-- | jstests/auth/lib/commands_lib.js | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/jstests/auth/lib/commands_lib.js b/jstests/auth/lib/commands_lib.js index 5bc9583f253..f6cd9ee75b7 100644 --- a/jstests/auth/lib/commands_lib.js +++ b/jstests/auth/lib/commands_lib.js @@ -1385,6 +1385,42 @@ var authCommandsLib = { ] }, { + testname: "_configsvrCommitChunkMerge", + command: {_configsvrCommitChunkMerge: "x.y"}, + skipSharded: true, + expectFail: true, + testcases: [ + {runOnDb: adminDbName, + roles: {__system: 1}, + privileges: [{resource: {cluster: true}, actions: ["internal"]}], + expectFail: true}, + ] + }, + { + testname: "_configsvrCommitChunkMigration", + command: {_configsvrCommitChunkMigration: "x.y"}, + skipSharded: true, + expectFail: true, + testcases: [ + {runOnDb: adminDbName, + roles: {__system: 1}, + privileges: [{resource: {cluster: true}, actions: ["internal"]}], + expectFail: true}, + ] + }, + { + testname: "_configsvrCommitChunkSplit", + command: {_configsvrCommitChunkSplit: "x.y"}, + skipSharded: true, + expectFail: true, + testcases: [ + {runOnDb: adminDbName, + roles: {__system: 1}, + privileges: [{resource: {cluster: true}, actions: ["internal"]}], + expectFail: true}, + ] + }, + { testname: "create", command: {create: "x"}, teardown: function(db) { |