From dc4a0797603401f7560199f15bd9dd29bd17b3a0 Mon Sep 17 00:00:00 2001 From: Tess Avitabile Date: Wed, 10 Aug 2016 14:18:33 -0400 Subject: SERVER-25155 Create setFeatureCompatibilityVersion command --- jstests/auth/lib/commands_lib.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'jstests/auth/lib/commands_lib.js') 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 @@ -2732,6 +2732,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}, -- cgit v1.2.1