summaryrefslogtreecommitdiff
path: root/jstests/auth
diff options
context:
space:
mode:
authorDan Pasette <dan@10gen.com>2014-11-01 14:04:56 -0400
committerDan Pasette <dan@mongodb.com>2014-11-01 14:04:56 -0400
commit1e31585822ec9066b43a0709cdb58fcfb49ca308 (patch)
tree0f7fec96332453bbbd00a1687df82b1a0ef93292 /jstests/auth
parentd1ca324125e215237fd05e19507d83e5dfe4303d (diff)
downloadmongo-1e31585822ec9066b43a0709cdb58fcfb49ca308.tar.gz
SERVER-15870 fix up some tests depending on unpruned serverStatus
Diffstat (limited to 'jstests/auth')
-rw-r--r--jstests/auth/user_defined_roles.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/auth/user_defined_roles.js b/jstests/auth/user_defined_roles.js
index 961e2be2aeb..50ab0c8acfc 100644
--- a/jstests/auth/user_defined_roles.js
+++ b/jstests/auth/user_defined_roles.js
@@ -123,7 +123,7 @@ function runTest(conn) {
// Test privileges on the cluster resource
- assert.commandFailed(testDB.serverStatus());
+ assert.commandFailed(testDB.runCommand({serverStatus:1}));
adminUserAdmin.grantPrivilegesToRole('adminRole', [{resource: {cluster: true},
actions:['serverStatus']}]);
assert.commandWorked(testDB.serverStatus());