diff options
author | Kyle Suarez <kyle.suarez@mongodb.com> | 2018-05-25 15:24:17 -0400 |
---|---|---|
committer | Kyle Suarez <kyle.suarez@mongodb.com> | 2018-05-30 09:45:28 -0400 |
commit | 190fc58164d3076e1c3a72b7dcca8748dbe40d1f (patch) | |
tree | 5ad560c8a3f04618e455620dcf3ceae7d0811cd5 /jstests/auth/auth1.js | |
parent | 774af67d1d2115d9a89a45643b42e931bec9aa82 (diff) | |
download | mongo-190fc58164d3076e1c3a72b7dcca8748dbe40d1f.tar.gz |
SERVER-28524 remove group command
Users should use the aggregation $group stage instead.
Diffstat (limited to 'jstests/auth/auth1.js')
-rw-r--r-- | jstests/auth/auth1.js | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/jstests/auth/auth1.js b/jstests/auth/auth1.js index 183317414df..cbf1139744f 100644 --- a/jstests/auth/auth1.js +++ b/jstests/auth/auth1.js @@ -60,16 +60,6 @@ function runTest(m) { db.setProfilingLevel(0); assert.lt(0, db.system.profile.find({user: "eliot@test"}).count(), "AP1"); - var p = { - key: {i: true}, - reduce: function(obj, prev) { - prev.count++; - }, - initial: {count: 0} - }; - - assert.eq(1000, t.group(p).length, "A5"); - assert(dbRO.auth("guest", "guest"), "auth failed 2"); assert.eq(1000, tRO.count(), "B1"); @@ -79,23 +69,6 @@ function runTest(m) { assert.writeError(tRO.save({})); assert.eq(1000, tRO.count(), "B6"); - - assert.eq(1000, tRO.group(p).length, "C1"); - - var p = { - key: {i: true}, - reduce: function(obj, prev) { - db.jstests_auth_auth1.save({i: 10000}); - prev.count++; - }, - initial: {count: 0} - }; - - assert.throws(function() { - return t.group(p); - }, [], "write reduce didn't fail"); - assert.eq(1000, dbRO.jstests_auth_auth1.count(), "C3"); - db.getSiblingDB('admin').auth('super', 'super'); assert.eq(1000, |