summaryrefslogtreecommitdiff
path: root/jstests/auth
diff options
context:
space:
mode:
authorTyler Brock <tyler.brock@gmail.com>2014-12-15 11:27:03 -0500
committerTyler Brock <tyler.brock@gmail.com>2014-12-16 14:36:30 -0500
commitde16932890952898881673fdd76c5f45d6dc49e1 (patch)
tree87afa887b4fdbefb0e4afd5afc08bffc62e3554f /jstests/auth
parent0aede468dc2ea475aa83bddd8be1e56a19ca6a3a (diff)
downloadmongo-de16932890952898881673fdd76c5f45d6dc49e1.tar.gz
SERVER-16518 listIndexes response changed to cursor object form
As a temporary compatibility measure, the legacy behavior is preserved if the "cursor" option is not sent with the command. This compatibility layer will be removed as part of work for the parent ticket.
Diffstat (limited to 'jstests/auth')
-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 4d606ae63d3..eb4b2694539 100644
--- a/jstests/auth/lib/commands_lib.js
+++ b/jstests/auth/lib/commands_lib.js
@@ -1419,7 +1419,7 @@ var authCommandsLib = {
},
{
testname: "listCollections",
- command: {listCollections: 1},
+ command: {listCollections: 1, cursor: {}},
setup: function (db) {
db.x.insert({_id: 5});
db.y.insert({_id: 6});
@@ -1458,7 +1458,7 @@ var authCommandsLib = {
},
{
testname: "listIndexes",
- command: {listIndexes: "x"},
+ command: {listIndexes: "x", cursor: {}},
setup: function (db) {
db.x.insert({_id: 5});
db.x.insert({_id: 6});