File tree 2 files changed +54
-0
lines changed
source/unified-test-format/tests/valid-pass
2 files changed +54
-0
lines changed Original file line number Diff line number Diff line change 94
94
}
95
95
],
96
96
"tests" : [
97
+ {
98
+ "description" : " saveResultAsEntity is optional for createChangeStream" ,
99
+ "runOnRequirements" : [
100
+ {
101
+ "minServerVersion" : " 3.8.0" ,
102
+ "topologies" : [
103
+ " replicaset"
104
+ ]
105
+ }
106
+ ],
107
+ "operations" : [
108
+ {
109
+ "name" : " createChangeStream" ,
110
+ "object" : " client0" ,
111
+ "arguments" : {
112
+ "pipeline" : []
113
+ }
114
+ }
115
+ ],
116
+ "expectEvents" : [
117
+ {
118
+ "client" : " client0" ,
119
+ "events" : [
120
+ {
121
+ "commandStartedEvent" : {
122
+ "command" : {
123
+ "aggregate" : 1
124
+ },
125
+ "commandName" : " aggregate" ,
126
+ "databaseName" : " admin"
127
+ }
128
+ }
129
+ ]
130
+ }
131
+ ]
132
+ },
97
133
{
98
134
"description" : " Executing a watch helper on a MongoClient results in notifications for changes to all collections in all databases in the cluster." ,
99
135
"runOnRequirements" : [
Original file line number Diff line number Diff line change @@ -59,6 +59,24 @@ initialData:
59
59
documents : []
60
60
61
61
tests :
62
+ - description : " saveResultAsEntity is optional for createChangeStream"
63
+ runOnRequirements :
64
+ - minServerVersion : " 3.8.0"
65
+ topologies : [ replicaset ]
66
+ operations :
67
+ - name : createChangeStream
68
+ object : *client0
69
+ arguments :
70
+ pipeline : []
71
+ expectEvents :
72
+ - client : *client0
73
+ events :
74
+ - commandStartedEvent :
75
+ command :
76
+ aggregate : 1
77
+ commandName : aggregate
78
+ databaseName : admin
79
+
62
80
- description : " Executing a watch helper on a MongoClient results in notifications for changes to all collections in all databases in the cluster."
63
81
runOnRequirements :
64
82
- minServerVersion : " 3.8.0"
You can’t perform that action at this time.
0 commit comments