Skip to content

Commit c525034

Browse files
committed
Update spec tests
Updates spec tests to commit mongodb/specifications#6d7fd374ca14a80edabeefdd27cdd6187c43a0eb
1 parent df69d37 commit c525034

29 files changed

+1117
-1115
lines changed

tests/SpecTests/retryable-reads/aggregate-serverErrors.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@
218218
]
219219
},
220220
{
221-
"description": "Aggregate succeeds after NotMaster",
221+
"description": "Aggregate succeeds after NotWritablePrimary",
222222
"failPoint": {
223223
"configureFailPoint": "failCommand",
224224
"mode": {
@@ -311,7 +311,7 @@
311311
]
312312
},
313313
{
314-
"description": "Aggregate succeeds after NotMasterNoSlaveOk",
314+
"description": "Aggregate succeeds after NotPrimaryNoSecondaryOk",
315315
"failPoint": {
316316
"configureFailPoint": "failCommand",
317317
"mode": {
@@ -404,7 +404,7 @@
404404
]
405405
},
406406
{
407-
"description": "Aggregate succeeds after NotMasterOrSecondary",
407+
"description": "Aggregate succeeds after NotPrimaryOrSecondary",
408408
"failPoint": {
409409
"configureFailPoint": "failCommand",
410410
"mode": {
@@ -1055,7 +1055,7 @@
10551055
]
10561056
},
10571057
{
1058-
"description": "Aggregate fails after two NotMaster errors",
1058+
"description": "Aggregate fails after two NotWritablePrimary errors",
10591059
"failPoint": {
10601060
"configureFailPoint": "failCommand",
10611061
"mode": {
@@ -1139,7 +1139,7 @@
11391139
]
11401140
},
11411141
{
1142-
"description": "Aggregate fails after NotMaster when retryReads is false",
1142+
"description": "Aggregate fails after NotWritablePrimary when retryReads is false",
11431143
"clientOptions": {
11441144
"retryReads": false
11451145
},

tests/SpecTests/retryable-reads/changeStreams-client.watch-serverErrors.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@
141141
]
142142
},
143143
{
144-
"description": "client.watch succeeds after NotMaster",
144+
"description": "client.watch succeeds after NotWritablePrimary",
145145
"failPoint": {
146146
"configureFailPoint": "failCommand",
147147
"mode": {
@@ -196,7 +196,7 @@
196196
]
197197
},
198198
{
199-
"description": "client.watch succeeds after NotMasterNoSlaveOk",
199+
"description": "client.watch succeeds after NotPrimaryNoSecondaryOk",
200200
"failPoint": {
201201
"configureFailPoint": "failCommand",
202202
"mode": {
@@ -251,7 +251,7 @@
251251
]
252252
},
253253
{
254-
"description": "client.watch succeeds after NotMasterOrSecondary",
254+
"description": "client.watch succeeds after NotPrimaryOrSecondary",
255255
"failPoint": {
256256
"configureFailPoint": "failCommand",
257257
"mode": {
@@ -636,7 +636,7 @@
636636
]
637637
},
638638
{
639-
"description": "client.watch fails after two NotMaster errors",
639+
"description": "client.watch fails after two NotWritablePrimary errors",
640640
"failPoint": {
641641
"configureFailPoint": "failCommand",
642642
"mode": {
@@ -692,7 +692,7 @@
692692
]
693693
},
694694
{
695-
"description": "client.watch fails after NotMaster when retryReads is false",
695+
"description": "client.watch fails after NotWritablePrimary when retryReads is false",
696696
"clientOptions": {
697697
"retryReads": false
698698
},

tests/SpecTests/retryable-reads/changeStreams-db.coll.watch-serverErrors.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
]
134134
},
135135
{
136-
"description": "db.coll.watch succeeds after NotMaster",
136+
"description": "db.coll.watch succeeds after NotWritablePrimary",
137137
"failPoint": {
138138
"configureFailPoint": "failCommand",
139139
"mode": {
@@ -184,7 +184,7 @@
184184
]
185185
},
186186
{
187-
"description": "db.coll.watch succeeds after NotMasterNoSlaveOk",
187+
"description": "db.coll.watch succeeds after NotPrimaryNoSecondaryOk",
188188
"failPoint": {
189189
"configureFailPoint": "failCommand",
190190
"mode": {
@@ -235,7 +235,7 @@
235235
]
236236
},
237237
{
238-
"description": "db.coll.watch succeeds after NotMasterOrSecondary",
238+
"description": "db.coll.watch succeeds after NotPrimaryOrSecondary",
239239
"failPoint": {
240240
"configureFailPoint": "failCommand",
241241
"mode": {
@@ -592,7 +592,7 @@
592592
]
593593
},
594594
{
595-
"description": "db.coll.watch fails after two NotMaster errors",
595+
"description": "db.coll.watch fails after two NotWritablePrimary errors",
596596
"failPoint": {
597597
"configureFailPoint": "failCommand",
598598
"mode": {
@@ -644,7 +644,7 @@
644644
]
645645
},
646646
{
647-
"description": "db.coll.watch fails after NotMaster when retryReads is false",
647+
"description": "db.coll.watch fails after NotWritablePrimary when retryReads is false",
648648
"clientOptions": {
649649
"retryReads": false
650650
},

tests/SpecTests/retryable-reads/changeStreams-db.watch-serverErrors.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
]
134134
},
135135
{
136-
"description": "db.watch succeeds after NotMaster",
136+
"description": "db.watch succeeds after NotWritablePrimary",
137137
"failPoint": {
138138
"configureFailPoint": "failCommand",
139139
"mode": {
@@ -184,7 +184,7 @@
184184
]
185185
},
186186
{
187-
"description": "db.watch succeeds after NotMasterNoSlaveOk",
187+
"description": "db.watch succeeds after NotPrimaryNoSecondaryOk",
188188
"failPoint": {
189189
"configureFailPoint": "failCommand",
190190
"mode": {
@@ -235,7 +235,7 @@
235235
]
236236
},
237237
{
238-
"description": "db.watch succeeds after NotMasterOrSecondary",
238+
"description": "db.watch succeeds after NotPrimaryOrSecondary",
239239
"failPoint": {
240240
"configureFailPoint": "failCommand",
241241
"mode": {
@@ -592,7 +592,7 @@
592592
]
593593
},
594594
{
595-
"description": "db.watch fails after two NotMaster errors",
595+
"description": "db.watch fails after two NotWritablePrimary errors",
596596
"failPoint": {
597597
"configureFailPoint": "failCommand",
598598
"mode": {
@@ -644,7 +644,7 @@
644644
]
645645
},
646646
{
647-
"description": "db.watch fails after NotMaster when retryReads is false",
647+
"description": "db.watch fails after NotWritablePrimary when retryReads is false",
648648
"clientOptions": {
649649
"retryReads": false
650650
},

tests/SpecTests/retryable-reads/count-serverErrors.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
]
115115
},
116116
{
117-
"description": "Count succeeds after NotMaster",
117+
"description": "Count succeeds after NotWritablePrimary",
118118
"failPoint": {
119119
"configureFailPoint": "failCommand",
120120
"mode": {
@@ -157,7 +157,7 @@
157157
]
158158
},
159159
{
160-
"description": "Count succeeds after NotMasterNoSlaveOk",
160+
"description": "Count succeeds after NotPrimaryNoSecondaryOk",
161161
"failPoint": {
162162
"configureFailPoint": "failCommand",
163163
"mode": {
@@ -200,7 +200,7 @@
200200
]
201201
},
202202
{
203-
"description": "Count succeeds after NotMasterOrSecondary",
203+
"description": "Count succeeds after NotPrimaryOrSecondary",
204204
"failPoint": {
205205
"configureFailPoint": "failCommand",
206206
"mode": {
@@ -501,7 +501,7 @@
501501
]
502502
},
503503
{
504-
"description": "Count fails after two NotMaster errors",
504+
"description": "Count fails after two NotWritablePrimary errors",
505505
"failPoint": {
506506
"configureFailPoint": "failCommand",
507507
"mode": {
@@ -544,7 +544,7 @@
544544
]
545545
},
546546
{
547-
"description": "Count fails after NotMaster when retryReads is false",
547+
"description": "Count fails after NotWritablePrimary when retryReads is false",
548548
"clientOptions": {
549549
"retryReads": false
550550
},

tests/SpecTests/retryable-reads/countDocuments-serverErrors.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@
166166
]
167167
},
168168
{
169-
"description": "CountDocuments succeeds after NotMaster",
169+
"description": "CountDocuments succeeds after NotWritablePrimary",
170170
"failPoint": {
171171
"configureFailPoint": "failCommand",
172172
"mode": {
@@ -235,7 +235,7 @@
235235
]
236236
},
237237
{
238-
"description": "CountDocuments succeeds after NotMasterNoSlaveOk",
238+
"description": "CountDocuments succeeds after NotPrimaryNoSecondaryOk",
239239
"failPoint": {
240240
"configureFailPoint": "failCommand",
241241
"mode": {
@@ -304,7 +304,7 @@
304304
]
305305
},
306306
{
307-
"description": "CountDocuments succeeds after NotMasterOrSecondary",
307+
"description": "CountDocuments succeeds after NotPrimaryOrSecondary",
308308
"failPoint": {
309309
"configureFailPoint": "failCommand",
310310
"mode": {
@@ -787,7 +787,7 @@
787787
]
788788
},
789789
{
790-
"description": "CountDocuments fails after two NotMaster errors",
790+
"description": "CountDocuments fails after two NotWritablePrimary errors",
791791
"failPoint": {
792792
"configureFailPoint": "failCommand",
793793
"mode": {
@@ -856,7 +856,7 @@
856856
]
857857
},
858858
{
859-
"description": "CountDocuments fails after NotMaster when retryReads is false",
859+
"description": "CountDocuments fails after NotWritablePrimary when retryReads is false",
860860
"clientOptions": {
861861
"retryReads": false
862862
},

tests/SpecTests/retryable-reads/distinct-serverErrors.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@
158158
]
159159
},
160160
{
161-
"description": "Distinct succeeds after NotMaster",
161+
"description": "Distinct succeeds after NotWritablePrimary",
162162
"failPoint": {
163163
"configureFailPoint": "failCommand",
164164
"mode": {
@@ -221,7 +221,7 @@
221221
]
222222
},
223223
{
224-
"description": "Distinct succeeds after NotMasterNoSlaveOk",
224+
"description": "Distinct succeeds after NotPrimaryNoSecondaryOk",
225225
"failPoint": {
226226
"configureFailPoint": "failCommand",
227227
"mode": {
@@ -284,7 +284,7 @@
284284
]
285285
},
286286
{
287-
"description": "Distinct succeeds after NotMasterOrSecondary",
287+
"description": "Distinct succeeds after NotPrimaryOrSecondary",
288288
"failPoint": {
289289
"configureFailPoint": "failCommand",
290290
"mode": {
@@ -725,7 +725,7 @@
725725
]
726726
},
727727
{
728-
"description": "Distinct fails after two NotMaster errors",
728+
"description": "Distinct fails after two NotWritablePrimary errors",
729729
"failPoint": {
730730
"configureFailPoint": "failCommand",
731731
"mode": {
@@ -785,7 +785,7 @@
785785
]
786786
},
787787
{
788-
"description": "Distinct fails after NotMaster when retryReads is false",
788+
"description": "Distinct fails after NotWritablePrimary when retryReads is false",
789789
"clientOptions": {
790790
"retryReads": false
791791
},

0 commit comments

Comments
 (0)