File tree Expand file tree Collapse file tree 1 file changed +66
-5
lines changed
tests/UnifiedSpecTests/run-command Expand file tree Collapse file tree 1 file changed +66
-5
lines changed Original file line number Diff line number Diff line change 123
123
}
124
124
]
125
125
},
126
+ {
127
+ "description" : " always gossips the $clusterTime on the sent command" ,
128
+ "runOnRequirements" : [
129
+ {
130
+ "topologies" : [
131
+ " replicaset" ,
132
+ " sharded"
133
+ ]
134
+ }
135
+ ],
136
+ "operations" : [
137
+ {
138
+ "name" : " runCommand" ,
139
+ "object" : " db" ,
140
+ "arguments" : {
141
+ "commandName" : " ping" ,
142
+ "command" : {
143
+ "ping" : 1
144
+ }
145
+ },
146
+ "expectResult" : {
147
+ "ok" : 1
148
+ }
149
+ },
150
+ {
151
+ "name" : " runCommand" ,
152
+ "object" : " db" ,
153
+ "arguments" : {
154
+ "commandName" : " ping" ,
155
+ "command" : {
156
+ "ping" : 1
157
+ }
158
+ },
159
+ "expectResult" : {
160
+ "ok" : 1
161
+ }
162
+ }
163
+ ],
164
+ "expectEvents" : [
165
+ {
166
+ "client" : " client" ,
167
+ "events" : [
168
+ {
169
+ "commandStartedEvent" : {
170
+ "commandName" : " ping"
171
+ }
172
+ },
173
+ {
174
+ "commandStartedEvent" : {
175
+ "command" : {
176
+ "ping" : 1 ,
177
+ "$clusterTime" : {
178
+ "$$exists" : true
179
+ }
180
+ },
181
+ "commandName" : " ping"
182
+ }
183
+ }
184
+ ]
185
+ }
186
+ ]
187
+ },
126
188
{
127
189
"description" : " attaches the provided session lsid to given command" ,
128
190
"operations" : [
167
229
{
168
230
"topologies" : [
169
231
" replicaset" ,
170
- " sharded-replicaset" ,
171
232
" load-balanced" ,
172
233
" sharded"
173
234
]
346
407
"insert" : " collection" ,
347
408
"documents" : [
348
409
{
349
- "_id " : 1
410
+ "foo " : " bar "
350
411
}
351
412
],
352
413
"ordered" : true
431
492
{
432
493
"minServerVersion" : " 4.2" ,
433
494
"topologies" : [
434
- " sharded-replicaset " ,
495
+ " sharded" ,
435
496
" load-balanced"
436
497
]
437
498
}
452
513
"insert" : " collection" ,
453
514
"documents" : [
454
515
{
455
- "_id " : 2
516
+ "foo " : " transaction "
456
517
}
457
518
],
458
519
"ordered" : true
480
541
"insert" : " collection" ,
481
542
"documents" : [
482
543
{
483
- "_id " : 2
544
+ "foo " : " transaction "
484
545
}
485
546
],
486
547
"ordered" : true ,
You can’t perform that action at this time.
0 commit comments