File tree Expand file tree Collapse file tree 6 files changed +193
-59
lines changed
src/libmongoc/tests/json/versioned_api Expand file tree Collapse file tree 6 files changed +193
-59
lines changed Original file line number Diff line number Diff line change 3
3
"schemaVersion" : " 1.1" ,
4
4
"runOnRequirements" : [
5
5
{
6
- "minServerVersion" : " 4.7 "
6
+ "minServerVersion" : " 4.9 "
7
7
}
8
8
],
9
9
"createEntities" : [
301
301
"$inc" : {
302
302
"x" : 1
303
303
}
304
+ },
305
+ "multi" : {
306
+ "$$unsetOrMatches" : false
307
+ },
308
+ "upsert" : {
309
+ "$$unsetOrMatches" : false
304
310
}
305
311
}
306
312
],
353
359
"x" : 1
354
360
}
355
361
},
356
- "multi" : true
362
+ "multi" : true ,
363
+ "upsert" : {
364
+ "$$unsetOrMatches" : false
365
+ }
357
366
}
358
367
],
359
368
"apiVersion" : " 1" ,
397
406
"_id" : 4 ,
398
407
"x" : 44
399
408
},
409
+ "multi" : {
410
+ "$$unsetOrMatches" : false
411
+ },
400
412
"upsert" : true
401
413
}
402
414
],
596
608
},
597
609
{
598
610
"description" : " estimatedDocumentCount appends declared API version" ,
599
- "skipReason" : " DRIVERS-1561 collStats is not in API version 1" ,
600
- "runOnRequirements" : [
601
- {
602
- "minServerVersion" : " 4.9.0"
603
- }
604
- ],
605
611
"operations" : [
606
612
{
607
613
"name" : " estimatedDocumentCount" ,
972
978
"_id" : 4 ,
973
979
"x" : 44
974
980
},
981
+ "multi" : {
982
+ "$$unsetOrMatches" : false
983
+ },
975
984
"upsert" : true
976
985
}
977
986
],
1027
1036
"x" : 1
1028
1037
}
1029
1038
},
1030
- "multi" : true
1039
+ "multi" : true ,
1040
+ "upsert" : {
1041
+ "$$unsetOrMatches" : false
1042
+ }
1031
1043
}
1032
1044
],
1033
1045
"apiVersion" : " 1" ,
1077
1089
"$inc" : {
1078
1090
"x" : 1
1079
1091
}
1092
+ },
1093
+ "multi" : {
1094
+ "$$unsetOrMatches" : false
1095
+ },
1096
+ "upsert" : {
1097
+ "$$unsetOrMatches" : false
1080
1098
}
1081
1099
}
1082
1100
],
1093
1111
]
1094
1112
}
1095
1113
]
1096
- }
1114
+ }
Original file line number Diff line number Diff line change 3
3
"schemaVersion" : " 1.1" ,
4
4
"runOnRequirements" : [
5
5
{
6
- "minServerVersion" : " 4.7 "
6
+ "minServerVersion" : " 4.9 "
7
7
}
8
8
],
9
9
"createEntities" : [
298
298
"$inc" : {
299
299
"x" : 1
300
300
}
301
+ },
302
+ "multi" : {
303
+ "$$unsetOrMatches" : false
304
+ },
305
+ "upsert" : {
306
+ "$$unsetOrMatches" : false
301
307
}
302
308
}
303
309
],
350
356
"x" : 1
351
357
}
352
358
},
353
- "multi" : true
359
+ "multi" : true ,
360
+ "upsert" : {
361
+ "$$unsetOrMatches" : false
362
+ }
354
363
}
355
364
],
356
365
"apiVersion" : " 1" ,
394
403
"_id" : 4 ,
395
404
"x" : 44
396
405
},
406
+ "multi" : {
407
+ "$$unsetOrMatches" : false
408
+ },
397
409
"upsert" : true
398
410
}
399
411
],
587
599
]
588
600
},
589
601
{
590
- "description" : " estimatedDocumentCount appends declared API version on less than 4.9.0" ,
591
- "runOnRequirements" : [
592
- {
593
- "maxServerVersion" : " 4.8.99"
594
- }
595
- ],
596
- "operations" : [
597
- {
598
- "name" : " estimatedDocumentCount" ,
599
- "object" : " collection" ,
600
- "arguments" : {}
601
- }
602
- ],
603
- "expectEvents" : [
604
- {
605
- "client" : " client" ,
606
- "events" : [
607
- {
608
- "commandStartedEvent" : {
609
- "command" : {
610
- "count" : " test" ,
611
- "apiVersion" : " 1" ,
612
- "apiStrict" : {
613
- "$$unsetOrMatches" : false
614
- },
615
- "apiDeprecationErrors" : true
616
- }
617
- }
618
- }
619
- ]
620
- }
621
- ]
622
- },
623
- {
624
- "description" : " estimatedDocumentCount appends declared API version on 4.9.0 or greater" ,
625
- "runOnRequirements" : [
626
- {
627
- "minServerVersion" : " 4.9.0"
628
- }
629
- ],
602
+ "description" : " estimatedDocumentCount appends declared API version" ,
630
603
"operations" : [
631
604
{
632
605
"name" : " estimatedDocumentCount" ,
997
970
"_id" : 4 ,
998
971
"x" : 44
999
972
},
973
+ "multi" : {
974
+ "$$unsetOrMatches" : false
975
+ },
1000
976
"upsert" : true
1001
977
}
1002
978
],
1052
1028
"x" : 1
1053
1029
}
1054
1030
},
1055
- "multi" : true
1031
+ "multi" : true ,
1032
+ "upsert" : {
1033
+ "$$unsetOrMatches" : false
1034
+ }
1056
1035
}
1057
1036
],
1058
1037
"apiVersion" : " 1" ,
1102
1081
"$inc" : {
1103
1082
"x" : 1
1104
1083
}
1084
+ },
1085
+ "multi" : {
1086
+ "$$unsetOrMatches" : false
1087
+ },
1088
+ "upsert" : {
1089
+ "$$unsetOrMatches" : false
1105
1090
}
1106
1091
}
1107
1092
],
1118
1103
]
1119
1104
}
1120
1105
]
1121
- }
1106
+ }
Original file line number Diff line number Diff line change 3
3
"schemaVersion" : " 1.1" ,
4
4
"runOnRequirements" : [
5
5
{
6
- "minServerVersion" : " 4.7 " ,
6
+ "minServerVersion" : " 4.9 " ,
7
7
"serverParameters" : {
8
8
"requireApiVersion" : false
9
9
}
Original file line number Diff line number Diff line change 3
3
"schemaVersion" : " 1.1" ,
4
4
"runOnRequirements" : [
5
5
{
6
- "minServerVersion" : " 4.7 " ,
6
+ "minServerVersion" : " 4.9 " ,
7
7
"serverParameters" : {
8
8
"enableTestCommands" : true ,
9
9
"acceptAPIVersion2" : true ,
Original file line number Diff line number Diff line change 3
3
"schemaVersion" : " 1.1" ,
4
4
"runOnRequirements" : [
5
5
{
6
- "minServerVersion" : " 4.7 " ,
6
+ "minServerVersion" : " 4.9 " ,
7
7
"serverParameters" : {
8
8
"enableTestCommands" : true
9
9
}
You can’t perform that action at this time.
0 commit comments