summaryrefslogtreecommitdiff
path: root/jstests/auth/lib
diff options
context:
space:
mode:
authorTess Avitabile <tess.avitabile@mongodb.com>2016-08-10 14:18:33 -0400
committerTess Avitabile <tess.avitabile@mongodb.com>2016-08-19 17:57:33 -0400
commitdc4a0797603401f7560199f15bd9dd29bd17b3a0 (patch)
tree6442bee3f873585b3bc46bbcdeee6806d34ddb7c /jstests/auth/lib
parent9efbffec2c4be8c597a6d39ba3474f5d4a110454 (diff)
downloadmongo-dc4a0797603401f7560199f15bd9dd29bd17b3a0.tar.gz
SERVER-25155 Create setFeatureCompatibilityVersion command
Diffstat (limited to 'jstests/auth/lib')
-rw-r--r--jstests/auth/lib/commands_lib.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/jstests/auth/lib/commands_lib.js b/jstests/auth/lib/commands_lib.js
index 35c43c3889b..7a6b52c125d 100644
--- a/jstests/auth/lib/commands_lib.js
+++ b/jstests/auth/lib/commands_lib.js
@@ -2733,6 +2733,23 @@ var authCommandsLib = {
]
},
{
+ testname: "setFeatureCompatibilityVersion",
+ command: {setFeatureCompatibilityVersion: "x"},
+ testcases: [
+ {
+ runOnDb: adminDbName,
+ roles: Object.extend({readWriteAnyDatabase: 1}, roles_clusterManager),
+ privileges: [{
+ resource: {db: '$setFeatureCompatibilityVersion', collection: 'version'},
+ actions: ['update']
+ }],
+ expectFail: true
+ },
+ {runOnDb: firstDbName, roles: {}},
+ {runOnDb: secondDbName, roles: {}}
+ ]
+ },
+ {
testname: "setParameter",
command: {setParameter: 1, quiet: 1},
testcases: [