File tree Expand file tree Collapse file tree 1 file changed +118
-4
lines changed
test/collection_management Expand file tree Collapse file tree 1 file changed +118
-4
lines changed Original file line number Diff line number Diff line change 10
10
"createEntities" : [
11
11
{
12
12
"client" : {
13
- "id" : " client0"
13
+ "id" : " client0" ,
14
+ "observeEvents" : [
15
+ " commandStartedEvent"
16
+ ]
14
17
}
15
18
},
16
19
{
17
20
"database" : {
18
21
"id" : " database0" ,
19
22
"client" : " client0" ,
20
- "databaseName" : " ts -tests"
23
+ "databaseName" : " ci -tests"
21
24
}
22
25
},
23
26
{
31
34
"initialData" : [
32
35
{
33
36
"collectionName" : " test" ,
34
- "databaseName" : " ts -tests" ,
37
+ "databaseName" : " ci -tests" ,
35
38
"documents" : []
36
39
}
37
40
],
64
67
"name" : " assertCollectionExists" ,
65
68
"object" : " testRunner" ,
66
69
"arguments" : {
67
- "databaseName" : " ts -tests" ,
70
+ "databaseName" : " ci -tests" ,
68
71
"collectionName" : " test"
69
72
}
70
73
}
74
+ ],
75
+ "expectEvents" : [
76
+ {
77
+ "client" : " client0" ,
78
+ "events" : [
79
+ {
80
+ "commandStartedEvent" : {
81
+ "command" : {
82
+ "drop" : " test"
83
+ },
84
+ "databaseName" : " ci-tests"
85
+ }
86
+ },
87
+ {
88
+ "commandStartedEvent" : {
89
+ "command" : {
90
+ "create" : " test" ,
91
+ "clusteredIndex" : {
92
+ "key" : {
93
+ "_id" : 1
94
+ },
95
+ "unique" : true ,
96
+ "name" : " test index"
97
+ }
98
+ },
99
+ "databaseName" : " ci-tests"
100
+ }
101
+ }
102
+ ]
103
+ }
71
104
]
72
105
},
73
106
{
125
158
}
126
159
]
127
160
}
161
+ ],
162
+ "expectEvents" : [
163
+ {
164
+ "client" : " client0" ,
165
+ "events" : [
166
+ {
167
+ "commandStartedEvent" : {
168
+ "command" : {
169
+ "drop" : " test"
170
+ },
171
+ "databaseName" : " ci-tests"
172
+ }
173
+ },
174
+ {
175
+ "commandStartedEvent" : {
176
+ "command" : {
177
+ "create" : " test" ,
178
+ "clusteredIndex" : {
179
+ "key" : {
180
+ "_id" : 1
181
+ },
182
+ "unique" : true ,
183
+ "name" : " test index"
184
+ }
185
+ },
186
+ "databaseName" : " ci-tests"
187
+ }
188
+ },
189
+ {
190
+ "commandStartedEvent" : {
191
+ "command" : {
192
+ "listCollections" : 1 ,
193
+ "filter" : {
194
+ "name" : {
195
+ "$eq" : " test"
196
+ }
197
+ }
198
+ },
199
+ "databaseName" : " ci-tests"
200
+ }
201
+ }
202
+ ]
203
+ }
128
204
]
129
205
},
130
206
{
171
247
}
172
248
]
173
249
}
250
+ ],
251
+ "expectEvents" : [
252
+ {
253
+ "client" : " client0" ,
254
+ "events" : [
255
+ {
256
+ "commandStartedEvent" : {
257
+ "command" : {
258
+ "drop" : " test"
259
+ },
260
+ "databaseName" : " ci-tests"
261
+ }
262
+ },
263
+ {
264
+ "commandStartedEvent" : {
265
+ "command" : {
266
+ "create" : " test" ,
267
+ "clusteredIndex" : {
268
+ "key" : {
269
+ "_id" : 1
270
+ },
271
+ "unique" : true ,
272
+ "name" : " test index"
273
+ }
274
+ },
275
+ "databaseName" : " ci-tests"
276
+ }
277
+ },
278
+ {
279
+ "commandStartedEvent" : {
280
+ "command" : {
281
+ "listIndexes" : " test"
282
+ },
283
+ "databaseName" : " ci-tests"
284
+ }
285
+ }
286
+ ]
287
+ }
174
288
]
175
289
}
176
290
]
You can’t perform that action at this time.
0 commit comments