1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
|
# Copyright (C) 2021-present MongoDB, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the Server Side Public License, version 1,
# as published by MongoDB, Inc.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# Server Side Public License for more details.
#
# You should have received a copy of the Server Side Public License
# along with this program. If not, see
# <http://www.mongodb.com/licensing/server-side-public-license>.
#
# As a special exception, the copyright holders give permission to link the
# code of portions of this program with the OpenSSL library under certain
# conditions as described in each individual source file and distribute
# linked combinations including the program with the OpenSSL library. You
# must comply with the Server Side Public License in all respects for
# all of the code used other than as permitted herein. If you modify file(s)
# with this exception, you may extend this exception to your version of the
# file(s), but you are not obligated to do so. If you do not wish to do so,
# delete this exception statement from your version. If you delete this
# exception statement from all source files in the program, then also delete
# it in the license file.
#
global:
cpp_namespace: "mongo"
imports:
- "mongo/idl/basic_types.idl"
- "../buildscripts/idl/tests/compatibility_test_pass/new/imports.idl"
types:
intStringToInt:
bson_serialization_type: int
description: "The bson_serialization_type changes from [int, string] in the old command's
reply field type to int in the new command's reply field type"
cpp_type: "std::int32_t"
intStringBoolToIntString:
bson_serialization_type:
- int
- string
description: "The bson_serialization_type changes from [int, string, bool] in the old
command's reply field type to [int, string] in the new command's reply
field type"
cpp_type: "std::int32_t"
intStringToIntStringBool:
bson_serialization_type:
- int
- string
- bool
description: "The bson_serialization_type changes from [int, string] in the old command's
reply field type to [int, string, bool] in the new command's reply field
type"
cpp_type: "std::int32_t"
intToIntString:
bson_serialization_type:
- int
- string
description: "The bson_serialization_type changes from [int] in the old command
parameter's type to [int, string] in the new command parameter's type"
cpp_type: "std::int32_t"
bsonSerializationTypeAnyAllowed:
bson_serialization_type:
- int
- any
description: "The bson_serialization_type contains 'any'"
cpp_type: "std::int32_t"
enums:
NewReplyFieldEnumSubset:
description: "The new reply type is an enum that is a subset of the old reply type's
enum values"
type: string
values:
valueOne: "one"
valueTwo: "two"
EnumSuperset:
description: "The new enum is a superset of the old enum values"
type: string
values:
valueOne: "one"
valueTwo: "two"
valueThree: "three"
structs:
StableNewFieldReply:
description: "This reply contains a field that is unstable in the old command but is
stable in the new command."
fields:
stableNewField:
type: string
unstable: false
RequiredNewFieldReply:
description: "This reply contains a field that is optional in the old command but is
required in the new command."
fields:
requiredNewField:
type: string
unstable: false
OptionalNewField:
description: "This struct contains a field that is required in the old command but is
optional in the new command."
fields:
optionalNewField:
type: string
optional: true
unstable: false
AddedNewFieldReply:
description: "This reply contains a field that is added in the new command."
fields:
addedNewField:
type: string
unstable: false
UnstableOldFieldReply:
description: "This reply contains a field that is unstable in the old command and is
unstable and optional in the new command."
fields:
unstableOldField:
type: string
unstable: true
optional: true
EnumSubsetReply:
description: "This reply contains an enum field where the new enum values is a subset
of the old reply type's enum values"
fields:
replyField:
type: NewReplyFieldEnumSubset
unstable: false
BsonSubsetReply:
description: "This reply contains a field type where the new bson_serialization_type
is a subset of the old bson_serialization_type"
fields:
bsonSubsetReplyField:
type: intStringToInt
unstable: false
BsonSubsetReplyTwo:
description: "This reply contains a field type where the new bson_serialization_type
is a subset of the old bson_serialization_type"
fields:
bsonSubsetReplyFieldTwo:
type: intStringBoolToIntString
unstable: false
StructFieldTypeRecursiveReplyOne:
description: "This reply contains a field whose new type is a struct that is
compatible with the old field type"
fields:
structReplyField:
type: StableNewFieldReply
unstable: false
StructFieldTypeRecursiveReplyTwo:
description: "This reply contains a field whose new type is a struct that is
compatible with the old field type"
fields:
structReplyField:
type: StructType
unstable: false
StructType:
description: "This struct contains a field whose new type is compatible with the
old field type"
fields:
fieldOne:
type: BsonSubsetReply
unstable: false
OldVariantTypeReply:
description: "This reply contains an old field that has a variant type while the new field
is not a variant type"
fields:
oldVariantTypeReplyField:
type: int
unstable: false
NewVariantSubsetReply:
description: "This reply contains a field whose new variant types are a subset
of the old variant types"
fields:
variantSubsetReplyField:
unstable: false
type:
variant: [int, string, array<string>]
NewVariantSubsetReplyTwo:
description: "This reply contains a field whose new variant types are a subset
of the old variant types"
fields:
variantSubsetReplyFieldTwo:
unstable: false
type:
variant: [int, string, array<string>]
VariantRecursiveReply:
description: "This reply contains a field that has a new variant type that is compatible
with the old variant type"
fields:
variantRecursiveReplyField:
unstable: false
type:
variant: [int, intStringBoolToIntString,
array<intStringBoolToIntString>, array<string>]
OldVariantStructReply:
description: "This reply contains a field whose new variant type does not have a variant
struct type while the old one does"
fields:
variantStructReplyField:
unstable: false
type:
variant: [int, string, array<string>]
VariantStructRecursiveReply:
description: "This reply contains a field that has a new variant struct type that is
compatible with the old variant struct type"
fields:
variantStructRecursiveReplyField:
unstable: false
type:
variant: [int, StructFieldTypeRecursiveReplyTwo,
array<StructFieldTypeRecursiveReplyTwo>, array<string>]
CommandParamStructRecursiveOne:
description: "This command parameter struct type contains a stable and optional
field while the old struct field is unstable"
fields:
unstableToStableOptionalField:
type: string
optional: true
unstable: false
CommandParamStructRecursiveTwo:
description: "This command parameter struct type contains a field whose new type is
a superset of the old field type"
fields:
supersetField:
type: intToIntString
unstable: false
OldValidatorStruct:
description: "This struct contains a field where the old version contains a validator while
the new version does not"
fields:
oldValidatorField:
type: int
unstable: false
ValidatorsEqualStruct:
description: "This struct contains a field where the new and old validator are exactly equal"
fields:
validatorsEqualField:
type: double
unstable: false
validator:
lt: 0.0
gt: -1.1
lte: 2.0
gte: -2.98
callback: "callback"
NewCommandParameterStruct:
description: "The new command parameter's type and the
old command parameter's type are both structs"
AddedOptionalTypeFieldStruct:
description: "This struct contains a field that is added and optional in the new version"
fields:
addedOptionalTypeField:
type: string
optional: true
unstable: false
StableOptionalTypeFieldStruct:
description: "This struct contains a field that is stable and optional in the new version
but unstable in the corresponding old version"
fields:
stableOptionalTypeField:
type: string
optional: true
unstable: false
StableWithDefaultTypeFieldStruct:
description: "This struct contains a field that is stable and required with a default value
in the new version but unstable in the corresponding old version"
fields:
stableWithDefaultTypeField:
type: string
default: ""
unstable: false
RemovedUnstableTypeFieldStruct:
description: "This struct contains a field that is unstable in the old version and
is removed in the new version"
AddedUnstableTypeFieldStruct:
description: "This struct contains a field that is added and unstable in the new version"
fields:
addedUnstableTypeField:
type: string
unstable: true
KeptUnstableTypeFieldStruct:
description: "This struct contains a field that is unstable in the new version and also
exists in the old version"
fields:
keptUnstableTypeField:
type: string
unstable: true
StructCommandParameterTypeRecursive:
description: "This param struct type contains a field that is compatible between the
old and new versions"
fields:
structCommandParameterTypeRecursiveField:
type: intStringToIntStringBool
unstable: false
VariantSupersetStruct:
description: "This struct contains a field where the new variant types are a superset
of the old variant types"
fields:
variantSupersetField:
unstable: false
type:
variant: [int, bool, string, array<string>]
VariantSupersetStructTwo:
description: "This struct contains a field where the new variant types are a superset
of the old variant types"
fields:
variantSupersetFieldTwo:
unstable: false
type:
variant: [int, bool, string, double, array<string>]
OldTypeNotVariantStruct:
description: "This struct contains a field where the new type is variant while the
old one is not"
fields:
variantField:
unstable: false
type:
variant: [int, bool, array<string>]
VariantRecursiveStruct:
description: "This struct contains a field where the new variant types are
compatible with the old variant types"
fields:
variantRecursiveField:
unstable: false
type:
variant: [int, intStringToIntStringBool,
array<intStringToIntStringBool>, array<string>]
VariantStructSupersetStruct:
description: "This struct contains a field where the new variant types contains a struct
while the old one does not"
fields:
variantStructSupersetField:
unstable: false
type:
variant: [int, string, NewCommandParameterStruct,
array<NewCommandParameterStruct>, array<string>]
VariantStructRecursiveStruct:
description: "This struct contains a field where the old variant struct and the new
variant struct are compatible"
fields:
variantStructRecursiveField:
unstable: false
type:
variant: [int, string, StructCommandParameterTypeRecursive,
array<StructCommandParameterTypeRecursive>, array<string>]
BsonSerializationTypeAnyReply:
description: "This reply contains a field whose type is 'any' and is explicitly allowed"
fields:
anyTypeField:
type: bsonSerializationTypeAnyAllowed
unstable: false
NewlyAddedBsonSerializationTypeAnyReply:
description: "This reply contains a newly added field whose type has a bson_serialization_type
that contains 'any' that is explicitly allowed"
fields:
newlyAddedBsonSerializationTypeAnyReplyField:
type: bsonSerializationTypeAnyAllowed
unstable: false
OldUnstableTypeChangesReply:
description: "This reply contains a field that is unstable in the old version and has type changes"
fields:
oldUnstableTypeChangesReplyField:
unstable: true
type: intStringToIntStringBool
validator:
lt: 0
NewlyAddedBsonSerializationTypeAnyStruct:
description: "This struct contains a newly added field whose type has a bson_serialization_type
that contains 'any' that is explicitly allowed"
fields:
newlyAddedBsonSerializationTypeAnyStructField:
type: bsonSerializationTypeAnyAllowed
optional: true
unstable: false
OldUnstableTypeChangesStruct:
description: "This struct contains a field that is unstable in the old version and has type changes"
fields:
oldUnstableTypeChangesField:
type: intStringBoolToIntString
optional: true
unstable: false
validator:
lt: 0
BsonSerializationTypeAnyWithVariantReply:
description: "This reply contains a new reply field with variant types where one of the
bson serialization types is 'any' and is explicitly allowed"
fields:
anyTypeField:
unstable: false
type:
variant: [bsonSerializationTypeAnyAllowed, StructFieldTypeRecursiveReplyTwo,
array<bsonSerializationTypeAnyAllowed>,
array<StructFieldTypeRecursiveReplyTwo>]
ArrayTypeStruct:
description: "Struct with ArrayType field."
fields:
ArrayCommandParameter:
type: array<string>
unstable: false
MissingUnstableFieldNewFieldStruct:
description: "This struct contains a field that missing the 'unstable' field in the new
command."
fields:
missingUnstableFieldNewField:
type: string
MissingUnstableFieldOldFieldStruct:
description: "This struct contains a field that missing the 'unstable' field in the old
command."
fields:
missingUnstableFieldNewField:
type: string
unstable: false
CompatibleChainedStructReply:
description: "This reply contains an compatible chained struct"
chained_structs:
StructFieldTypeRecursiveReplyTwo: StructFieldTypeRecursiveReplyTwo
CompatibleChainedStructType:
description: "This struct type contains an compatible chained struct"
chained_structs:
StructCommandParameterTypeRecursive: StructCommandParameterTypeRecursive
NewOptionalBoolStruct:
description: "This struct gets another field of type optionalBool."
fields:
ok1:
type: bool
unstable: false
optional: true
ok2:
type: optionalBool
unstable: false
OptionalBoolEquivalenceStruct:
description: "First two fields get the types swapped."
fields:
ok1:
type: optionalBool
unstable: false
ok2:
type: bool
unstable: false
optional: true
ok3:
type: optionalBool
unstable: false
OptionalBoolToBoolStruct:
description: "optionalBool field replaced by bool"
fields:
ok:
type: bool
unstable: false
BoolToOptionalBoolStruct:
description: "bool field replaced by optionalBool"
fields:
ok:
type: optionalBool
unstable: false
ReplyWithNewArrayTypeField:
description: "new field is of ArrayType"
fields:
ok:
type: bool
unstable: false
newArrayTypeField:
type: array<int>
optional: true
unstable: false
ReplyWithNewNestedArrayTypeField:
description: "new field is a struct with a field of ArrayType"
fields:
ok:
type: bool
unstable: false
newStructWithArrayTypeField:
type: ArrayTypeStruct
optional: true
unstable: false
commands:
testCommand:
description: "new passing test command, there was no change from the old version"
command_name: testCommand
namespace: ignored
cpp_name: testCommand
strict: true
api_version: "1"
reply_type: OkReply
addedCommand:
description: "new command is added and should pass"
command_name: addedCommand
namespace: ignored
cpp_name: addedCommand
strict: true
api_version: "1"
reply_type: OkReply
strictFalseCommand:
description: "command passes with strict: false in both versions of the command"
command_name: strictFalseCommand
namespace: ignored
cpp_name: strictFalseCommand
strict: false
api_version: "1"
reply_type: OkReply
strictTrueToFalseCommand:
description: "command passes when it switches from strict: true to switch: false"
command_name: strictTrueToFalseCommand
namespace: ignored
cpp_name: strictTrueToFalseCommand
strict: false
api_version: "1"
reply_type: OkReply
addedCommandParameter:
description: "new optional command parameter is added and should pass"
command_name: addedCommandParameter
namespace: ignored
cpp_name: addedCommandParameter
strict: true
api_version: "1"
reply_type: OkReply
fields:
newParameter:
type: string
optional: true
unstable: false
addedCommandParameterStable:
description: "new command has an optional stable parameter that is unstable
in the corresponding old command and still passes"
command_name: addedCommandParameterStable
namespace: ignored
cpp_name: addedCommandParameterStable
strict: true
api_version: "1"
reply_type: OkReply
fields:
newOptionalStableParam:
type: string
optional: true
unstable: false
addedCommandParameterStableWithDefault:
description: "new command has a required stable parameter with a default value
that is unstable in the corresponding old command and still passes"
command_name: addedCommandParameterStableWithDefault
namespace: ignored
cpp_name: addedCommandParameterStableWithDefault
strict: true
api_version: "1"
reply_type: OkReply
fields:
newStableParamWithDefault:
type: string
default: ""
unstable: false
removeCommandParameterUnstable:
description: "new command removes parameter that is unstable
in the corresponding old command and still passes"
command_name: removeCommandParameterUnstable
namespace: ignored
cpp_name: removeCommandParameterUnstable
strict: true
api_version: "1"
reply_type: OkReply
addedCommandParameterOptional:
description: "new command has an optional parameter that is required
in the corresponding old command and still passes"
command_name: addedCommandParameterOptional
namespace: ignored
cpp_name: addedCommandParameterOptional
strict: true
api_version: "1"
reply_type: OkReply
fields:
newOptionalParam:
type: string
optional: true
unstable: false
addedUnstableCommandParameter:
description: "new command has a new unstable parameter that did not
exist in the corresponding old command and still passes"
command_name: addedUnstableCommandParameter
namespace: ignored
cpp_name: addedUnstableCommandParameter
strict: true
api_version: "1"
reply_type: OkReply
fields:
newUnstableParam:
type: string
unstable: true
keptUnstableCommandParameter:
description: "new command has an unstable parameter that also
exists in the corresponding old command and still passes"
command_name: keptUnstableCommandParameter
namespace: ignored
cpp_name: keptUnstableCommandParameter
strict: true
api_version: "1"
reply_type: OkReply
fields:
unstableParam:
type: string
unstable: true
newCommandParameterType:
description: "new command passes because its command parameter type is compatible with
the corresponding old command's parameter type"
command_name: newCommandParameterType
namespace: ignored
cpp_name: newCommandParameterType
strict: true
api_version: "1"
reply_type: OkReply
fields:
compatibleParameter:
type: string
unstable: false
newCommandParameterTypeEnumSuperset:
description: "new command passes because its command parameter type is an enum that is
a superset of the corresponding old command parameter's type's enum values"
command_name: newCommandParameterTypeEnumSuperset
namespace: ignored
cpp_name: newCommandParameterTypeEnumSuperset
strict: true
api_version: "1"
reply_type: OkReply
fields:
parameterEnumSuperset:
type: EnumSuperset
unstable: false
newCommandParameterTypeStruct:
description: "new command passes because its command parameter type is a struct and the
corresponding old command parameter type is also a struct"
command_name: newCommandParameterTypeStruct
namespace: ignored
cpp_name: newCommandParameterTypeStruct
strict: true
api_version: "1"
reply_type: OkReply
fields:
parameterStruct:
type: NewCommandParameterStruct
unstable: false
newCommandParameterTypeBsonSuperset:
description: "new command passes because its parameter type has a bson_serialization_type
that is a superset of the corresponding old command parameter type's
bson_serialization_type"
command_name: newCommandParameterTypeBsonSuperset
namespace: ignored
cpp_name: newCommandParameterTypeBsonSuperset
strict: true
api_version: "1"
reply_type: OkReply
fields:
bsonSupersetParam:
type: intToIntString
unstable: false
newCommandParameterTypeStructRecursiveOne:
description: "new command passes because its parameter type is a struct that is
compatible with the old parameter type struct"
command_name: newCommandParameterTypeStructRecursiveOne
namespace: ignored
cpp_name: newCommandParameterTypeStructRecursiveOne
strict: true
api_version: "1"
reply_type: OkReply
fields:
unstableToStableOptionalStructParameter:
type: CommandParamStructRecursiveOne
unstable: false
newCommandParameterTypeStructRecursiveTwo:
description: "new command passes because its parameter type is a struct that is
compatible with the old parameter type struct"
command_name: newCommandParameterTypeStructRecursiveTwo
namespace: ignored
cpp_name: newCommandParameterTypeStructRecursiveTwo
strict: true
api_version: "1"
reply_type: OkReply
fields:
supersetStructParameter:
type: CommandParamStructRecursiveTwo
unstable: false
newlyAddedParamBsonAnyAllowList:
description: "command passes when its parameter is newly added and has bson type 'any'
that is explicitly allowed"
command_name: newlyAddedParamBsonAnyAllowList
namespace: ignored
cpp_name: newlyAddedParamBsonAnyAllowList
strict: true
api_version: "1"
reply_type: OkReply
fields:
newlyAddedBsonAnyAllowListParam:
type: bsonSerializationTypeAnyAllowed
optional: true
unstable: false
oldUnstableParamTypeChanges:
description: "command passes when it has an old unstable param with incompatible type changes"
command_name: oldUnstableParamTypeChanges
namespace: ignored
cpp_name: oldUnstableParamTypeChanges
strict: true
api_version: "1"
reply_type: OkReply
fields:
oldUnstableTypeChangesParam:
type: intStringBoolToIntString
optional: true
unstable: false
validator:
lt: 0
newlyAddedTypeFieldBsonAnyAllowList:
description: "command passes when its type field is newly added and has bson type 'any'
that is explicitly allowed"
command_name: newlyAddedTypeFieldBsonAnyAllowList
namespace: type
type: NewlyAddedBsonSerializationTypeAnyStruct
cpp_name: newlyAddedTypeFieldBsonAnyAllowList
strict: true
api_version: "1"
reply_type: OkReply
oldUnstableTypeChanges:
description: "command passes when it has an old unstable type field with incompatible type changes"
command_name: oldUnstableTypeChanges
namespace: type
type: OldUnstableTypeChangesStruct
cpp_name: oldUnstableParamTypeChanges
strict: true
api_version: "1"
reply_type: OkReply
oldCommandParameterValidator:
description: "new command passes when it contains a parameter that does not contain a validator
that is present in the old parameter"
command_name: oldCommandParameterValidator
namespace: ignored
cpp_name: oldCommandParameterValidator
strict: true
api_version: "1"
reply_type: OkReply
fields:
newParam:
type: int
unstable: false
commandParameterValidatorsEqual:
description: "new command passes because it contains a parameter that contains a validator
that is exactly equal to the old parameter validator"
command_name: commandParameterValidatorsEqual
namespace: ignored
cpp_name: commandParameterValidatorsEqual
strict: true
api_version: "1"
reply_type: OkReply
fields:
newParam:
type: double
unstable: false
validator:
lt: 0.0
gt: -1.1
lte: 2.0
gte: -2.98
callback: "callback"
oldCommandTypeValidator:
description: "new command passes because it contains a type that does not contain a validator
that is present in the old type"
command_name: oldCommandTypeValidator
namespace: type
type: OldValidatorStruct
cpp_name: oldCommandTypeValidator
strict: true
api_version: "1"
reply_type: OkReply
commandTypeValidatorsEqual:
description: "new command passes because it contains a type that contains a validator
that is exactly equal to the old type validator"
command_name: commandTypeValidatorsEqual
namespace: type
type: ValidatorsEqualStruct
cpp_name: commandTypeValidatorsEqual
strict: true
api_version: "1"
reply_type: OkReply
newReplyFieldStable:
description: "new command contains a stable reply field that is unstable
in the corresponding old command and still passes"
command_name: newReplyFieldStable
namespace: ignored
cpp_name: newReplyFieldStable
strict: true
api_version: "1"
reply_type: StableNewFieldReply
newReplyFieldRequired:
description: "new command contains a required reply field that is optional
in the corresponding old command and still passes"
command_name: newReplyFieldRequired
namespace: ignored
cpp_name: newReplyFieldRequired
strict: true
api_version: "1"
reply_type: RequiredNewFieldReply
newReplyFieldAdded:
description: "new command adds a new reply field and still passes"
command_name: newReplyFieldAdded
namespace: ignored
cpp_name: newReplyFieldAdded
strict: true
api_version: "1"
reply_type: AddedNewFieldReply
oldReplyFieldUnstable:
description: "old reply field is unstable so new commmand passes even if its new reply
field is unstable"
command_name: oldReplyFieldUnstable
namespace: ignored
cpp_name: oldReplyFieldUnstable
strict: true
api_version: "1"
reply_type: UnstableOldFieldReply
importedReplyCommand:
description: "reply is imported and should pass"
command_name: importedReplyCommand
namespace: ignored
cpp_name: importedReplyCommand
strict: true
api_version: "1"
reply_type: ImportedStableNewFieldReply
newReplyFieldTypeEnumSubset:
description: "new command passes because its reply field type is an enum that is
a subset of the corresponding old reply field type's enum values"
command_name: newReplyFieldTypeEnumSubset
namespace: ignored
cpp_name: newReplyFieldTypeEnumSubset
strict: true
api_version: "1"
reply_type: EnumSubsetReply
newReplyFieldTypeBsonSubset:
description: "new command passes because its reply field type has a
bson_serialization_type that is a subset of the corresponding
old reply field type's bson_serialization_type"
command_name: newReplyFieldTypeBsonSubset
namespace: ignored
cpp_name: newReplyFieldTypeBsonSubset
strict: true
api_version: "1"
reply_type: BsonSubsetReply
newReplyFieldTypeBsonSubsetTwo:
description: "new command passes because its reply field type has a
bson_serialization_type that is a subset of the corresponding
old reply field type's bson_serialization_type"
command_name: newReplyFieldTypeBsonSubsetTwo
namespace: ignored
cpp_name: newReplyFieldTypeBsonSubsetTwo
strict: true
api_version: "1"
reply_type: BsonSubsetReplyTwo
newReplyFieldTypeStructRecursiveOne:
description: "new command passes because its reply field type is a struct that is
compatible with the old reply field type struct"
command_name: newReplyFieldTypeStructRecursiveOne
namespace: ignored
cpp_name: newReplyFieldTypeStructRecursiveOne
strict: true
api_version: "1"
reply_type: StructFieldTypeRecursiveReplyOne
newReplyFieldTypeStructRecursiveTwo:
description: "new command passes because its reply field type is a struct that is
compatible with the old reply field type struct"
command_name: newReplyFieldTypeStructRecursiveTwo
namespace: ignored
cpp_name: newReplyFieldTypeStructRecursiveTwo
strict: true
api_version: "1"
reply_type: StructFieldTypeRecursiveReplyTwo
newNamespaceIgnored:
description: "new command passes when its namespace is changed to ignored"
command_name: newNamespaceIgnored
namespace: ignored
cpp_name: newNamespaceIgnored
strict: true
api_version: "1"
reply_type: OkReply
newNamespaceConcatenateWithDbOrUuid:
description: "new command passes when its namespace is changed to
concatenate_with_db_or_uuid from concatenate_with_db"
command_name: newNamespaceConcatenateWithDbOrUuid
namespace: concatenate_with_db_or_uuid
cpp_name: newNamespaceConcatenateWithDbOrUuid
strict: true
api_version: "1"
reply_type: OkReply
newNamespaceTypeToIgnored:
description: "new command passes when its namespace is changed from type to ignored"
command_name: newNamespaceTypeToIgnored
namespace: ignored
cpp_name: newNamespaceTypeToIgnored
strict: true
api_version: "1"
reply_type: OkReply
oldNamespaceTypeNamespaceString:
description: "If old command has namespace: type and type: namespacestring,
the new namespace can be changed to concatenate_with_db"
command_name: oldNamespaceTypeNamespaceString
namespace: concatenate_with_db
cpp_name: oldNamespaceTypeNamespaceString
strict: true
api_version: "1"
reply_type: OkReply
oldNamespaceTypeNamespaceStringTwo:
description: "If old command has namespace: type and type: namespacestring,
the new namespace can be changed to concatenate_with_db_or_uuid"
command_name: oldNamespaceTypeNamespaceStringTwo
namespace: concatenate_with_db_or_uuid
cpp_name: oldNamespaceTypeNamespaceStringTwo
strict: true
api_version: "1"
reply_type: OkReply
newTypeSuperset:
description: "new command passes because its type is a superset
of the old type"
command_name: newTypeSuperset
namespace: type
type: intStringToIntStringBool
cpp_name: newTypeSuperset
strict: true
api_version: "1"
reply_type: OkReply
newTypeEnumSuperset:
description: "new command passes because its type is an enum that is
a superset of the corresponding old type's enum values"
command_name: newTypeEnumSuperset
namespace: type
type: EnumSuperset
cpp_name: newTypeEnumSuperset
strict: true
api_version: "1"
reply_type: OkReply
newTypeFieldOptional:
description: "new command type contains an optional field that is required
in the corresponding old command and still passes"
command_name: newTypeFieldOptional
namespace: type
type: OptionalNewField
cpp_name: newTypeFieldOptional
strict: true
api_version: "1"
reply_type: OkReply
newTypeFieldAddedOptional:
description: "new optional type field is added and should pass"
command_name: newTypeFieldAddedOptional
namespace: type
type: AddedOptionalTypeFieldStruct
cpp_name: newTypeFieldAddedOptional
strict: true
api_version: "1"
reply_type: OkReply
newTypeFieldStableOptional:
description: "new command has an optional type field that is unstable
in the corresponding old command and still passes"
command_name: newTypeFieldStableOptional
namespace: type
type: StableOptionalTypeFieldStruct
cpp_name: newTypeFieldStableOptional
strict: true
api_version: "1"
reply_type: OkReply
newTypeFieldStableWithDefault:
description: "new command has a required type field with a default value
that is unstable in the corresponding old command and still passes"
command_name: newTypeFieldStableWithDefault
namespace: type
type: StableWithDefaultTypeFieldStruct
cpp_name: newTypeFieldStableWithDefault
strict: true
api_version: "1"
reply_type: OkReply
removeTypeFieldUnstable:
description: "new command removes type field that is unstable
in the corresponding old command and still passes"
command_name: removeTypeFieldUnstable
namespace: type
type: RemovedUnstableTypeFieldStruct
cpp_name: removeTypeFieldUnstable
strict: true
api_version: "1"
reply_type: OkReply
addedUnstableTypeField:
description: "new command has a new unstable type field that does not
exist in the corresponding old command and still passes"
command_name: addedUnstableTypeField
namespace: type
type: AddedUnstableTypeFieldStruct
cpp_name: addedUnstableTypeField
strict: true
api_version: "1"
reply_type: OkReply
keptUnstableTypeField:
description: "new command has an unstable type field that also
exists in the corresponding old command and still passes"
command_name: keptUnstableTypeField
namespace: type
type: KeptUnstableTypeFieldStruct
cpp_name: keptUnstableTypeField
strict: true
api_version: "1"
reply_type: OkReply
oldReplyFieldVariantType:
description: "new command passes when its reply field type is not a variant type while
the old reply field is a variant type"
command_name: oldReplyFieldVariantType
namespace: ignored
cpp_name: oldReplyFieldVariantType
strict: true
api_version: "1"
reply_type: OldVariantTypeReply
newReplyFieldVariantSubset:
description: "new command when its reply field type is a variant type that is
a subset of the old reply field variant types"
command_name: newReplyFieldVariantSubset
namespace: ignored
cpp_name: newReplyFieldVariantSubset
strict: true
api_version: "1"
reply_type: NewVariantSubsetReply
newReplyFieldVariantSubsetTwo:
description: "new command when its reply field type is a variant type that is
a subset of the old reply field variant types"
command_name: newReplyFieldVariantSubsetTwo
namespace: ignored
cpp_name: newReplyFieldVariantSubsetTwo
strict: true
api_version: "1"
reply_type: NewVariantSubsetReplyTwo
replyFieldVariantRecursive:
description: "new command passes when its reply field type is a variant type that is
compatible with the old reply field variant type"
command_name: replyFieldVariantRecursive
namespace: ignored
cpp_name: replyFieldVariantRecursive
strict: true
api_version: "1"
reply_type: VariantRecursiveReply
oldReplyFieldVariantStruct:
description: "new command passes if it doesn't have a variant struct type while the
old command does"
command_name: oldReplyFieldVariantStruct
namespace: ignored
cpp_name: oldReplyFieldVariantStruct
strict: true
api_version: "1"
reply_type: OldVariantStructReply
replyFieldVariantStructRecursive:
description: "new command passes when its reply field type has a variant struct type
that is compatible with the old reply field variant struct type"
command_name: replyFieldVariantStructRecursive
namespace: ignored
cpp_name: replyFieldVariantStructRecursive
strict: true
api_version: "1"
reply_type: VariantStructRecursiveReply
newlyAddedReplyFieldTypeBsonAnyAllowed:
description: "command passes because it has a newly added reply field type has a bson_serialization_type
that contains 'any' that is explicitly allowed"
command_name: newlyAddedReplyFieldTypeBsonAnyAllowed
namespace: ignored
cpp_name: newlyAddedReplyFieldTypeBsonAnyAllowed
strict: true
api_version: "1"
reply_type: NewlyAddedBsonSerializationTypeAnyReply
oldUnstableReplyFieldTypeChanges:
description: "command passes when it has an old unstable reply field with incompatible type changes"
command_name: oldUnstableReplyFieldTypeChanges
namespace: ignored
cpp_name: oldUnstableReplyFieldTypeChanges
strict: true
api_version: "1"
reply_type: OldUnstableTypeChangesReply
commandAllowedAnyTypes:
description: "new command that has parameter and reply type with
explicitly allowed 'any' bson serialization type passes"
command_name: commandAllowedAnyTypes
namespace: type
type: bsonSerializationTypeAnyAllowed
cpp_name: commandAllowedAnyTypes
strict: true
api_version: "1"
reply_type: BsonSerializationTypeAnyReply
fields:
anyTypeParam:
type: bsonSerializationTypeAnyAllowed
unstable: false
commandAllowedAnyTypesWithVariant:
description: "command that has reply variant types with
explicitly allowed 'any' bson serialization type passes"
command_name: commandAllowedAnyTypesWithVariant
namespace: ignored
cpp_name: commandAllowedAnyTypesWithVariant
strict: true
api_version: "1"
reply_type: BsonSerializationTypeAnyWithVariantReply
newParamVariantSuperset:
description: "new command passes because its parameter type is a variant type that is
a superset of the old parameter variant types"
command_name: newParamVariantSuperset
namespace: ignored
cpp_name: newParamVariantSuperset
strict: true
api_version: "1"
reply_type: OkReply
fields:
variantSupersetParam:
unstable: false
type:
variant: [int, bool, string, array<string>]
newParamVariantSupersetTwo:
description: "new command passes because its parameter type is a variant type that is
a superset of the old parameter variant types"
command_name: newParamVariantSupersetTwo
namespace: ignored
cpp_name: newParamVariantSupersetTwo
strict: true
api_version: "1"
reply_type: OkReply
fields:
variantSupersetParam:
unstable: false
type:
variant: [int, string, bool, double, array<string>]
oldParamTypeNotVariant:
description: "new command passes because its parameter type is variant while the old
param type is not"
command_name: newParamTypeNotVariant
namespace: ignored
cpp_name: newParamTypeNotVariant
strict: true
api_version: "1"
reply_type: OkReply
fields:
variantParam:
unstable: false
type:
variant: [int, string, array<string>]
newParamVariantRecursive:
description: "new command passes because its param type is a variant type that is
compatible with the old param variant type"
command_name: newParamVariantRecursive
namespace: ignored
cpp_name: newParamVariantRecursive
strict: true
api_version: "1"
reply_type: OkReply
fields:
variantRecursiveParam:
unstable: false
type:
variant: [int, intStringToIntStringBool,
array<intStringToIntStringBool>, array<string>]
newParamVariantStructSuperset:
description: "new command passes because its parameter type is a variant type that is
a subset of the old parameter variant types"
command_name: newParamVariantStructSuperset
namespace: ignored
cpp_name: newParamVariantStructSuperset
strict: true
api_version: "1"
reply_type: OkReply
fields:
variantStructSupersetParam:
unstable: false
type:
variant: [int, string, NewCommandParameterStruct,
array<NewCommandParameterStruct>, array<string>]
newParamVariantStructRecursive:
description: "new command passes because its parameter type has a variant
struct type that is compatible with the old parameter variant
struct type"
command_name: newParamVariantStructRecursive
namespace: ignored
cpp_name: newParamVariantStructRecursive
strict: true
api_version: "1"
reply_type: OkReply
fields:
variantStructRecursiveParam:
unstable: false
type:
variant: [int, string, StructCommandParameterTypeRecursive,
array<StructCommandParameterTypeRecursive>, array<string>]
newCommandTypeVariantSuperset:
description: "new command passes because its type is a variant type that is
a superset of the old type variant types"
command_name: newCommandTypeVariantSuperset
namespace: type
type: VariantSupersetStruct
cpp_name: newCommandTypeVariantSuperset
strict: true
api_version: "1"
reply_type: OkReply
newCommandTypeVariantSupersetTwo:
description: "new command passes because its type is a variant type that is
a superset of the old command type variant types"
command_name: newCommandTypeVariantSupersetTwo
namespace: type
type: VariantSupersetStructTwo
cpp_name: newCommandTypeVariantSupersetTwo
strict: true
api_version: "1"
reply_type: OkReply
oldCommandTypeNotVariant:
description: "new command passes because its type is variant while the old
type is not"
command_name: oldCommandTypeNotVariant
namespace: type
type: OldTypeNotVariantStruct
cpp_name: oldCommandTypeNotVariant
strict: true
api_version: "1"
reply_type: OkReply
newCommandTypeVariantRecursive:
description: "new command passes because its type is a variant type that is passes
compatible with the old command type variant type"
command_name: newCommandTypeVariantRecursive
namespace: type
type: VariantRecursiveStruct
cpp_name: newCommandTypeVariantRecursive
strict: true
api_version: "1"
reply_type: OkReply
newCommandTypeVariantStructSuperset:
description: "new command passes because its type is a variant type that is
a superset of the old command type variant types"
command_name: newCommandTypeVariantStructSuperset
namespace: type
type: VariantStructSupersetStruct
cpp_name: newCommandTypeVariantStructSuperset
strict: true
api_version: "1"
reply_type: OkReply
newCommandTypeVariantStructRecursive:
description: "new command passes because its type has a variant
struct type that is compatible with the old command type variant
struct type"
command_name: newCommandTypeVariantStructRecursive
namespace: type
type: VariantStructRecursiveStruct
cpp_name: newCommandTypeVariantStructRecursive
strict: true
api_version: "1"
reply_type: OkReply
oldReplyFieldValidator:
description: "new command passes because it contains a reply field that does not contain a validator
that is present in the old reply field"
command_name: oldReplyFieldValidator
namespace: ignored
cpp_name: oldReplyFieldValidator
strict: true
api_version: "1"
reply_type: OldValidatorStruct
replyFieldValidatorsEqual:
description: "new command passes because it contains a reply field that contains a validator
that is exactly equal to the old reply field validator"
command_name: replyFieldValidatorsEqual
namespace: ignored
cpp_name: replyFieldValidatorsEqual
strict: true
api_version: "1"
reply_type: ValidatorsEqualStruct
simpleCheckEqual:
description: "new command passes because its simple check is equal to
the old check"
command_name: simpleCheckEqual
namespace: ignored
cpp_name: simpleCheckEqual
strict: true
api_version: "1"
reply_type: OkReply
access_check:
simple:
check: check
simplePrivilegeEqual:
description: "new command passes because its simple privilege is equal to
the old privilege"
command_name: simplePrivilegeEqual
namespace: ignored
cpp_name: simplePrivilegeEqual
strict: true
api_version: "1"
reply_type: OkReply
access_check:
simple:
privilege:
resource_pattern: resourcePattern
action_type: [actionTypeThree, actionTypeOne, actionTypeTwo]
newSimpleActionTypeSubset:
description: "new command passes because its simple privilege action_type is a subset
of the old privilege action_type"
command_name: newSimpleActionTypeSubset
namespace: ignored
cpp_name: newSimpleActionTypeSubset
strict: true
api_version: "1"
reply_type: OkReply
access_check:
simple:
privilege:
resource_pattern: resourcePattern
action_type: [actionTypeThree, actionTypeOne]
ArrayCommand:
description: "new command will pass because the command type and the field type are of
ArrayType of a type that is compatible with the old command."
command_name: arrayCommand
namespace: type
type: array<ArrayTypeStruct>
cpp_name: arrayCommand
strict: true
api_version: "1"
fields:
parameterStruct:
type: array<ArrayTypeStruct>
unstable: false
reply_type: ArrayTypeStruct
complexActionTypesSubset:
description: "new command passes when the action types are a subset"
command_name: complexActionTypesSubset
namespace: ignored
cpp_name: complexActionTypesSubset
strict: true
api_version: "1"
reply_type: OkReply
access_check:
complex:
- privilege:
resource_pattern: resourcePatternTwo
action_type: actionTypeOne
- check: checkOne
- privilege:
resource_pattern: resourcePattern
action_type: [actionTypeOne, actionTypeTwo, actionTypeThree]
complexActionTypesSubsetTwo:
description: "new command passes when the action types are a subset"
command_name: complexActionTypesSubsetTwo
namespace: ignored
cpp_name: complexActionTypesSubsetTwo
strict: true
api_version: "1"
reply_type: OkReply
access_check:
complex:
- privilege:
resource_pattern: resourcePatternTwo
action_type: [actionTypeOne, actionTypeTwo]
- check: checkOne
- privilege:
resource_pattern: resourcePattern
action_type: [actionTypeOne, actionTypeTwo]
complexChecksSubset:
description: "new command passes when the complex checks are a subset of the old checks"
command_name: complexChecksSubset
namespace: ignored
cpp_name: complexChecksSubset
strict: true
api_version: "1"
reply_type: OkReply
access_check:
complex:
- check: checkThree
- check: checkTwo
addedAggStage:
description: "new command passes when a agg stage is added"
command_name: addedAggStage
namespace: ignored
cpp_name: addedAggStage
strict: true
api_version: "1"
reply_type: OkReply
access_check:
complex:
- privilege:
resource_pattern: resourcePatternTwo
action_type: [actionTypeOne, actionTypeTwo]
- check: checkOne
- privilege:
resource_pattern: resourcePattern
action_type: [actionTypeOne, actionTypeTwo]
- privilege:
agg_stage: aggStage
resource_pattern: resourcePatternThree
action_type: actionTypeThree
removedAggStage:
description: "new command passes when a agg stage is removed"
command_name: removedAggStage
namespace: ignored
cpp_name: removedAggStage
strict: true
api_version: "1"
reply_type: OkReply
access_check:
complex:
- privilege:
resource_pattern: resourcePatternTwo
action_type: [actionTypeOne, actionTypeTwo]
- check: checkOne
- privilege:
resource_pattern: resourcePattern
action_type: [actionTypeOne, actionTypeTwo]
removedComplexPrivilege:
description: "new command passes when a complex privilege is removed"
command_name: removedComplexPrivilege
namespace: ignored
cpp_name: removedComplexPrivilege
strict: true
api_version: "1"
reply_type: OkReply
access_check:
complex:
- check: checkOne
- privilege:
resource_pattern: resourcePattern
action_type: [actionTypeOne, actionTypeTwo, actionTypeThree]
addedAccessCheckField:
description: "new command passes because it adds the access_check field when the api_version is not '1'"
command_name: addedAccessCheckField
namespace: ignored
cpp_name: addedAccessCheckField
strict: true
api_version: ""
reply_type: OkReply
access_check:
none: true
newReplyFieldMissingUnstableField:
description: "new command passes because it does not have an api_version even though it
contains a reply field that is missing the 'unstable' field"
command_name: newReplyFieldMissingUnstableField
namespace: ignored
cpp_name: newReplyFieldMissingUnstableField
strict: true
api_version: ""
reply_type: MissingUnstableFieldNewFieldStruct
oldReplyFieldMissingUnstableField:
description: "old command passes even though it contains a reply field that is missing the
'unstable' field"
command_name: oldReplyFieldMissingUnstableField
namespace: ignored
cpp_name: oldReplyFieldMissingUnstableField
strict: true
api_version: "1"
reply_type: MissingUnstableFieldOldFieldStruct
newCommandTypeFieldMissingUnstableField:
description: "new command passes because it does not have an api_version even though it
contains a command type field that is missing the 'unstable' field"
command_name: newCommandTypeFieldMissingUnstableField
namespace: type
cpp_name: newCommandTypeFieldMissingUnstableField
strict: true
api_version: ""
type: MissingUnstableFieldNewFieldStruct
reply_type: OkReply
oldCommandTypeFieldMissingUnstableField:
description: "old command passes even though it
contains a command type field that is missing the 'unstable' field"
command_name: oldCommandTypeFieldMissingUnstableField
namespace: type
cpp_name: oldCommandTypeFieldMissingUnstableField
strict: true
api_version: "1"
type: MissingUnstableFieldOldFieldStruct
reply_type: OkReply
newParameterMissingUnstableField:
description: "new command passes because it does not have an api_version even though it
contains a parameter that is missing the 'unstable' field"
command_name: newParameterMissingUnstableField
namespace: ignored
cpp_name: newParameterMissingUnstableField
strict: true
api_version: ""
fields:
missingUnstableFieldNewParameter:
type: int
reply_type: OkReply
oldParameterMissingUnstableField:
description: "old command passes even though it
contains a parameter that is missing the 'unstable' field"
command_name: oldParameterMissingUnstableField
namespace: ignored
cpp_name: oldParameterMissingUnstableField
strict: true
api_version: "1"
fields:
missingUnstableFieldOldParameter:
type: int
unstable: false
reply_type: OkReply
chainedStructCompatible:
description: "new command passes because it contains a chained struct that has compatible
fields"
command_name: chainedStructCompatible
namespace: ignored
cpp_name: chainedStructCompatible
strict: true
api_version: "1"
reply_type: OkReply
chained_structs:
VariantStructRecursiveStruct: VariantStructRecursiveStruct
replyWithCompatibleChainedStruct:
description: "new command passes because its reply contains a chained struct that has
compatible fields"
command_name: replyWithCompatibleChainedStruct
namespace: ignored
cpp_name: replyWithCompatibleChainedStruct
strict: true
api_version: "1"
reply_type: CompatibleChainedStructReply
typeWithCompatibleChainedStruct:
description: "new command passes because its type contains a chained struct that has
compatible fields"
command_name: typeWithCompatibleChainedStruct
namespace: type
type: CompatibleChainedStructType
cpp_name: typeWithCompatibleChainedStruct
strict: true
api_version: "1"
reply_type: OkReply
incompatibleChainedType:
description: "new command passes because its chained types are compatible"
command_name: incompatibleChainedType
namespace: ignored
cpp_name: incompatibleChainedType
strict: true
api_version: "1"
reply_type: OkReply
chained_types:
intToIntString: intToIntString
newParameterOptionalBool:
description: "new command can add parameters of type optionalBoolean"
command_name: newParameterOptionalBool
namespace: ignored
cpp_name: newParameterOptionalBool
strict: true
api_version: "1"
reply_type: OkReply
fields:
flag:
type: optionalBool
unstable: false
newReplyOptionalBool:
description: "new command can add reply fields of type optionalBoolean"
command_name: newReplyOptionalBool
namespace: ignored
cpp_name: newReplyOptionalBool
strict: true
api_version: "1"
reply_type: NewOptionalBoolStruct
newCommandTypeOptionalBool:
description: "new command can add type fields of type optionalBoolean"
command_name: newCommandTypeOptionalBool
namespace: type
type: NewOptionalBoolStruct
cpp_name: newCommandTypeOptionalBool
strict: true
api_version: "1"
reply_type: OkReply
optionalBoolParameterEquivalence:
description: "new command gets first two parameter types swapped"
command_name: optionalBoolParameterEquivalence
namespace: ignored
cpp_name: optionalBoolParameterEquivalence
strict: true
api_version: "1"
fields:
flag1:
unstable: false
type: optionalBool
flag2:
unstable: false
type: bool
optional: true
flag3:
unstable: false
type: optionalBool
reply_type: OkReply
optionalBoolReplyEquivalence:
description: "new command gets first two reply field types swapped"
command_name: optionalBoolReplyEquivalence
namespace: ignored
cpp_name: optionalBoolReplyEquivalence
strict: true
api_version: "1"
reply_type: OptionalBoolEquivalenceStruct
optionalBoolCommandTypeEquivalence:
description: "new command gets first two type field types swapped"
command_name: optionalBoolCommandTypeEquivalence
namespace: type
type: OptionalBoolEquivalenceStruct
cpp_name: optionalBoolCommandTypeEquivalence
strict: true
api_version: "1"
reply_type: OkReply
boolToOptionalBoolParameter:
description: "new command parameter has type optionalBool instead of bool"
command_name: boolToOptionalBoolParameter
namespace: ignored
cpp_name: boolToOptionalBoolParameter
strict: true
api_version: "1"
fields:
flag:
unstable: false
type: optionalBool
reply_type: OkReply
boolToOptionalBoolCommandType:
description: "new command type has type optionalBool instead of bool"
command_name: boolTooptionalBoolCommandType
namespace: type
type: BoolToOptionalBoolStruct
cpp_name: boolTooptionalBoolCommandType
strict: true
api_version: "1"
reply_type: OkReply
optionalBoolToBoolReply:
description: "new command gets bool reply instead of optionalBool"
command_name: optionalBoolToBoolReply
namespace: ignored
cpp_name: optionalBoolToBoolReply
strict: true
api_version: "1"
reply_type: OptionalBoolToBoolStruct
commandWithNewArrayTypeParameterAndArrayTypeReply:
description: "new command adds a new ArrayType parameter and a reply type with an ArrayType"
command_name: commandWithNewArrayTypeParameterAndArrayTypeReply
namespace: type
type: array<int>
cpp_name: commandWithNewArrayTypeParameterAndArrayTypeReply
strict: true
api_version: "1"
fields:
newArrayTypeParameter:
type: array<int>
optional: true
unstable: false
reply_type: ReplyWithNewArrayTypeField
commandWithNewNestedArrayTypeParameterAndNestedArrayTypeReply:
description: "new command adds a new parameter with a nested ArrayType field and a reply type with a nested ArrayType"
command_name: commandWithNewNestedArrayTypeParameterAndNestedArrayTypeReply
namespace: type
type: ArrayTypeStruct
cpp_name: commandWithNewNestedArrayTypeParameterAndNestedArrayTypeReply
strict: true
api_version: "1"
fields:
newNestedArrayTypeParameter:
type: ArrayTypeStruct
optional: true
unstable: false
reply_type: ReplyWithNewNestedArrayTypeField
|