summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Schwerin <schwerin@10gen.com>2013-11-14 10:39:21 -0500
committerAndy Schwerin <schwerin@10gen.com>2013-11-14 10:39:21 -0500
commit58ed9775c96676a8c6dab2a83ea4ee55f1dcaa38 (patch)
treed19c0e1c94412bd7e12698c3011b5c588fdc2381
parent103da34ddbc32d8345655471fc46afc6352a6624 (diff)
downloadmongo-58ed9775c96676a8c6dab2a83ea4ee55f1dcaa38.tar.gz
SERVER-9514 Account for new privileges in clusterManager built-in role in tests.
-rw-r--r--jstests/auth/lib/commands_lib.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/auth/lib/commands_lib.js b/jstests/auth/lib/commands_lib.js
index b5b4be81e74..a33a0965b87 100644
--- a/jstests/auth/lib/commands_lib.js
+++ b/jstests/auth/lib/commands_lib.js
@@ -994,7 +994,7 @@ var authCommandsLib = {
testcases: [
{
runOnDb: adminDbName,
- rolesAllowed: roles_hostManager,
+ rolesAllowed: Object.extend({clusterManager: 1}, roles_hostManager),
requiredPrivileges: [
{ resource: {cluster: true}, actions: ["flushRouterConfig"] }
]
@@ -1317,7 +1317,7 @@ var authCommandsLib = {
testcases: [
{
runOnDb: adminDbName,
- rolesAllowed: roles_monitoring,
+ rolesAllowed: Object.extend({clusterManager: 1}, roles_monitoring),
requiredPrivileges: [
{ resource: {cluster: true}, actions: ["listShards"] }
]