File tree Expand file tree Collapse file tree 2 files changed +241
-0
lines changed
source/crud/tests/unified Expand file tree Collapse file tree 2 files changed +241
-0
lines changed Original file line number Diff line number Diff line change 1+ description : " db-aggregate-rawdata"
2+
3+ schemaVersion : " 1.4"
4+
5+ createEntities :
6+ - client :
7+ id : &client0 client0
8+ observeEvents : [ commandStartedEvent ]
9+ - database :
10+ id : &database0 database0
11+ client : *client0
12+ databaseName : &database0Name admin
13+ - collection :
14+ id : &collection0 collection0
15+ database : *database0
16+ collectionName : &collectionName crud-v2
17+
18+ tests :
19+ - description : " Aggregate with rawData option"
20+ runOnRequirements :
21+ - minServerVersion : " 8.2.0"
22+ serverless : forbid
23+ operations :
24+ - object : *database0
25+ name : aggregate
26+ arguments :
27+ pipeline : &pipeline
28+ - { $listLocalSessions: {} }
29+ - { $limit: 1 }
30+ - { $addFields: { dummy: 'dummy field' } }
31+ - { $project: { _id: 0, dummy: 1 } }
32+ rawData : &rawdata true
33+ expectEvents :
34+ - client : *client0
35+ events :
36+ - commandStartedEvent :
37+ command :
38+ aggregate : 1
39+ pipeline : *pipeline
40+ rawData : *rawdata
41+ - description : " Aggregate with rawData option on less than 8.2.0 - ignore argument"
42+ runOnRequirements :
43+ - maxServerVersion : " 8.1.99"
44+ topologies : [ replicaset ]
45+ serverless : forbid
46+ operations :
47+ - object : *database0
48+ name : aggregate
49+ arguments :
50+ pipeline : &pipeline
51+ - { $listLocalSessions: {} }
52+ - { $limit: 1 }
53+ - { $addFields: { dummy: 'dummy field' } }
54+ - { $project: { _id: 0, dummy: 1 } }
55+ rawData : true
56+ expectEvents :
57+ - client : *client0
58+ events :
59+ - commandStartedEvent :
60+ command :
61+ aggregate : 1
62+ pipeline : *pipeline
63+ rawData :
64+ $$exists : false
You can’t perform that action at this time.
0 commit comments