summaryrefslogtreecommitdiff
path: root/jstests/auth
diff options
context:
space:
mode:
authorYoonsoo Kim <yoonsoo.kim@mongodb.com>2021-06-28 07:00:07 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-06-30 23:41:39 +0000
commit0d37de1e3f89c6257f2cd66f9bf530cc80859717 (patch)
tree591d2c96007d9e7eb04a1ad06086ad804fadc477 /jstests/auth
parentd635f733ad873fd469cf3e35e27452c45f1597c9 (diff)
downloadmongo-0d37de1e3f89c6257f2cd66f9bf530cc80859717.tar.gz
SERVER-58103 Remove test cases which test legacy op behaviors
Diffstat (limited to 'jstests/auth')
-rw-r--r--jstests/auth/getMore.js14
1 files changed, 0 insertions, 14 deletions
diff --git a/jstests/auth/getMore.js b/jstests/auth/getMore.js
index 00c150d59a0..83e427accd6 100644
--- a/jstests/auth/getMore.js
+++ b/jstests/auth/getMore.js
@@ -47,20 +47,6 @@ function runTest(conn) {
"read from another user's find cursor");
testDB.logout();
- // Test that "Mallory" cannot use a legacy find cursor created by "Alice".
- testDB.getMongo().forceReadMode("legacy");
- assert.eq(1, testDB.auth("Alice", "pwd"));
- let cursor = testDB.foo.find().batchSize(2);
- cursor.next();
- cursor.next();
- testDB.logout();
- assert.eq(1, testDB.auth("Mallory", "pwd"));
- assert.throws(function() {
- cursor.next();
- }, [], "read from another user's legacy find cursor");
- testDB.logout();
- testDB.getMongo().forceReadMode("commands");
-
// Test that "Mallory" cannot use an aggregation cursor created by "Alice".
assert.eq(1, testDB.auth("Alice", "pwd"));
res = assert.commandWorked(