summaryrefslogtreecommitdiff
path: root/jstests/auth/getMore.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/auth/getMore.js')
-rw-r--r--jstests/auth/getMore.js18
1 files changed, 0 insertions, 18 deletions
diff --git a/jstests/auth/getMore.js b/jstests/auth/getMore.js
index cbb84c4a687..0c728b8fc14 100644
--- a/jstests/auth/getMore.js
+++ b/jstests/auth/getMore.js
@@ -17,11 +17,6 @@
adminDB.runCommand({createUser: "admin", pwd: "admin", roles: ["root"]}));
assert.eq(1, adminDB.auth("admin", "admin"));
- let ismmap = false;
- if (!isMongos) {
- ismmap = assert.commandWorked(adminDB.serverStatus()).storageEngine.name == "mmapv1";
- }
-
// Set up the test database.
const testDBName = "auth_getMore";
let testDB = adminDB.getSiblingDB(testDBName);
@@ -117,19 +112,6 @@
testDB.logout();
}
- // Test that "Mallory" cannot use a repairCursor cursor created by "Alice".
- if (!isMongos && ismmap) {
- assert.eq(1, testDB.auth("Alice", "pwd"));
- res = assert.commandWorked(testDB.runCommand({repairCursor: "foo"}));
- cursorId = res.cursor.id;
- testDB.logout();
- assert.eq(1, testDB.auth("Mallory", "pwd"));
- assert.commandFailedWithCode(testDB.runCommand({getMore: cursorId, collection: "foo"}),
- ErrorCodes.Unauthorized,
- "read from another user's repairCursor cursor");
- testDB.logout();
- }
-
//
// Test that a user can call getMore on an indexStats cursor they created, even if the
// indexStats privilege has been revoked in the meantime.