summaryrefslogtreecommitdiff
path: root/jstests
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2014-02-03 16:00:24 -0500
committerMathias Stearn <mathias@10gen.com>2014-02-12 11:39:44 -0500
commitbfb1b6e84fe2ea27efd4966fe35d3f6078738a9c (patch)
treed70d5662505bd009f795f09a6a315fb482278e30 /jstests
parent6244c5e5ef1a285ea0a6a28a411caa41a2691197 (diff)
downloadmongo-bfb1b6e84fe2ea27efd4966fe35d3f6078738a9c.tar.gz
SERVER-12586 Don't allow $out to special collections
Diffstat (limited to 'jstests')
-rw-r--r--jstests/aggregation/bugs/server3253.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/jstests/aggregation/bugs/server3253.js b/jstests/aggregation/bugs/server3253.js
index a689f4e321e..68c3f988965 100644
--- a/jstests/aggregation/bugs/server3253.js
+++ b/jstests/aggregation/bugs/server3253.js
@@ -84,12 +84,10 @@ test(inputDoesntExist,
[],
[]);
-if (0) { // SERVER-12586
// ensure we cant do dangerous things to system collections
-outputInSystem = db.system.server3253_out;
-assertErrorCode(input, {$out: outputInSystem.getName()}, 16994);
+var outputInSystem = db.system.server3253_out;
+assertErrorCode(input, {$out: outputInSystem.getName()}, 17385);
assert(!collectionExists(outputInSystem));
-}
// shoudn't leave temp collections laying around
assert.eq([], db.system.namespaces.find({name: /tmp\.agg_out/}).toArray());