summaryrefslogtreecommitdiff
path: root/jstests/replsets
diff options
context:
space:
mode:
authorLingzhi Deng <lingzhi.deng@mongodb.com>2020-05-21 00:03:53 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-05-27 01:45:55 +0000
commit9babe7f5e70ca7bfba4366268d1759ff1480ff18 (patch)
tree5fedda94c24a67506f6b7f78c37d72197fdbb5ec /jstests/replsets
parent5d4fa084c332dc996edd5a7060188d926e56653e (diff)
downloadmongo-9babe7f5e70ca7bfba4366268d1759ff1480ff18.tar.gz
SERVER-47947: Test snapshot $lookup, $unionWith, $out and $merge
Diffstat (limited to 'jstests/replsets')
-rw-r--r--jstests/replsets/non_transaction_snapshot_reads.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/jstests/replsets/non_transaction_snapshot_reads.js b/jstests/replsets/non_transaction_snapshot_reads.js
index 79f8aff1f91..ce561d3daec 100644
--- a/jstests/replsets/non_transaction_snapshot_reads.js
+++ b/jstests/replsets/non_transaction_snapshot_reads.js
@@ -36,6 +36,10 @@ const snapshotReadsTest = new SnapshotReadsTest({
snapshotReadsTest.cursorTest({testScenarioName: jsTestName(), collName: "test"});
snapshotReadsTest.distinctTest({testScenarioName: jsTestName(), collName: "test"});
+snapshotReadsTest.outAndMergeTest(
+ {testScenarioName: jsTestName(), coll: "test", outColl: "testOut", isOutCollSharded: false});
+snapshotReadsTest.lookupAndUnionWithTest(
+ {testScenarioName: jsTestName(), coll1: "test1", coll2: "test2", isColl2Sharded: false});
// Ensure "atClusterTime" is omitted from a regular (non-snapshot) read.
primaryDB["collection"].insertOne({});