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
+ topologies : [ replicaset ]
23
+ serverless : forbid
24
+ operations :
25
+ - object : *database0
26
+ name : aggregate
27
+ arguments :
28
+ pipeline : &pipeline
29
+ - { $listLocalSessions: {} }
30
+ - { $limit: 1 }
31
+ - { $addFields: { dummy: 'dummy field' } }
32
+ - { $project: { _id: 0, dummy: 1 } }
33
+ rawData : &rawdata true
34
+ expectEvents :
35
+ - client : *client0
36
+ events :
37
+ - commandStartedEvent :
38
+ command :
39
+ aggregate : 1
40
+ pipeline : *pipeline
41
+ rawData : *rawdata
42
+ - description : " Aggregate with rawData option on less than 8.2.0 - ignore argument"
43
+ runOnRequirements :
44
+ - maxServerVersion : " 8.1.99"
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