summaryrefslogtreecommitdiff
path: root/jstests/auth
diff options
context:
space:
mode:
authorJames Wahlin <james@mongodb.com>2017-07-03 15:33:36 -0400
committerJames Wahlin <james@mongodb.com>2017-07-25 12:24:49 -0400
commit5dcaad5f137eebc1915c0fc7b5078da4aa86f915 (patch)
tree3994b41708bce7cf5cbc5b7c9ba422db77f9bfb3 /jstests/auth
parent079763d2cd06776edf81f3ecf6c32ab66d1742ec (diff)
downloadmongo-5dcaad5f137eebc1915c0fc7b5078da4aa86f915.tar.gz
SERVER-29371 DocumentSource classes should provide auth requirements
Diffstat (limited to 'jstests/auth')
-rw-r--r--jstests/auth/getMore.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/jstests/auth/getMore.js b/jstests/auth/getMore.js
index d8795278cbc..8e59070391d 100644
--- a/jstests/auth/getMore.js
+++ b/jstests/auth/getMore.js
@@ -145,7 +145,8 @@
adminDB.logout();
assert.eq(1, testDB.auth("Alice", "pwd"));
assert.commandFailedWithCode(
- testDB.runCommand({aggregate: "foo", pipeline: [{$match: {_id: 0}}, {$out: "out"}]}),
+ testDB.runCommand(
+ {aggregate: "foo", pipeline: [{$match: {_id: 0}}, {$out: "out"}], cursor: {}}),
ErrorCodes.Unauthorized,
"user should no longer have write privileges");
res = assert.commandWorked(testDB.runCommand({getMore: cursorId, collection: "foo"}));