Skip to content

Commit 6ccc7e6

Browse files
author
Divjot Arora
committed
GODRIVER-1931 Sync new spec tests
1 parent 6c11b22 commit 6ccc7e6

File tree

234 files changed

+6535
-162
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

234 files changed

+6535
-162
lines changed

data/change-streams/legacy/change-streams-errors.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@
7878
"target": "collection",
7979
"topology": [
8080
"replicaset",
81-
"sharded"
81+
"sharded",
82+
"load-balanced"
8283
],
8384
"changeStreamPipeline": [
8485
{
@@ -125,7 +126,8 @@
125126
"target": "collection",
126127
"topology": [
127128
"replicaset",
128-
"sharded"
129+
"sharded",
130+
"load-balanced"
129131
],
130132
"changeStreamPipeline": [],
131133
"changeStreamOptions": {},

data/change-streams/legacy/change-streams-errors.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ tests:
5757
topology:
5858
- replicaset
5959
- sharded
60+
- load-balanced
6061
changeStreamPipeline:
6162
-
6263
$project: { _id: 0 }
@@ -86,6 +87,7 @@ tests:
8687
topology:
8788
- replicaset
8889
- sharded
90+
- load-balanced
8991
changeStreamPipeline: []
9092
changeStreamOptions: {}
9193
operations:

data/change-streams/legacy/change-streams-resume-errorLabels.json

Lines changed: 36 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
"target": "collection",
1919
"topology": [
2020
"replicaset",
21-
"sharded"
21+
"sharded",
22+
"load-balanced"
2223
],
2324
"changeStreamPipeline": [],
2425
"changeStreamOptions": {},
@@ -111,7 +112,8 @@
111112
"target": "collection",
112113
"topology": [
113114
"replicaset",
114-
"sharded"
115+
"sharded",
116+
"load-balanced"
115117
],
116118
"changeStreamPipeline": [],
117119
"changeStreamOptions": {},
@@ -204,7 +206,8 @@
204206
"target": "collection",
205207
"topology": [
206208
"replicaset",
207-
"sharded"
209+
"sharded",
210+
"load-balanced"
208211
],
209212
"changeStreamPipeline": [],
210213
"changeStreamOptions": {},
@@ -297,7 +300,8 @@
297300
"target": "collection",
298301
"topology": [
299302
"replicaset",
300-
"sharded"
303+
"sharded",
304+
"load-balanced"
301305
],
302306
"changeStreamPipeline": [],
303307
"changeStreamOptions": {},
@@ -390,7 +394,8 @@
390394
"target": "collection",
391395
"topology": [
392396
"replicaset",
393-
"sharded"
397+
"sharded",
398+
"load-balanced"
394399
],
395400
"changeStreamPipeline": [],
396401
"changeStreamOptions": {},
@@ -483,7 +488,8 @@
483488
"target": "collection",
484489
"topology": [
485490
"replicaset",
486-
"sharded"
491+
"sharded",
492+
"load-balanced"
487493
],
488494
"changeStreamPipeline": [],
489495
"changeStreamOptions": {},
@@ -576,7 +582,8 @@
576582
"target": "collection",
577583
"topology": [
578584
"replicaset",
579-
"sharded"
585+
"sharded",
586+
"load-balanced"
580587
],
581588
"changeStreamPipeline": [],
582589
"changeStreamOptions": {},
@@ -669,7 +676,8 @@
669676
"target": "collection",
670677
"topology": [
671678
"replicaset",
672-
"sharded"
679+
"sharded",
680+
"load-balanced"
673681
],
674682
"changeStreamPipeline": [],
675683
"changeStreamOptions": {},
@@ -762,7 +770,8 @@
762770
"target": "collection",
763771
"topology": [
764772
"replicaset",
765-
"sharded"
773+
"sharded",
774+
"load-balanced"
766775
],
767776
"changeStreamPipeline": [],
768777
"changeStreamOptions": {},
@@ -855,7 +864,8 @@
855864
"target": "collection",
856865
"topology": [
857866
"replicaset",
858-
"sharded"
867+
"sharded",
868+
"load-balanced"
859869
],
860870
"changeStreamPipeline": [],
861871
"changeStreamOptions": {},
@@ -948,7 +958,8 @@
948958
"target": "collection",
949959
"topology": [
950960
"replicaset",
951-
"sharded"
961+
"sharded",
962+
"load-balanced"
952963
],
953964
"changeStreamPipeline": [],
954965
"changeStreamOptions": {},
@@ -1041,7 +1052,8 @@
10411052
"target": "collection",
10421053
"topology": [
10431054
"replicaset",
1044-
"sharded"
1055+
"sharded",
1056+
"load-balanced"
10451057
],
10461058
"changeStreamPipeline": [],
10471059
"changeStreamOptions": {},
@@ -1134,7 +1146,8 @@
11341146
"target": "collection",
11351147
"topology": [
11361148
"replicaset",
1137-
"sharded"
1149+
"sharded",
1150+
"load-balanced"
11381151
],
11391152
"changeStreamPipeline": [],
11401153
"changeStreamOptions": {},
@@ -1227,7 +1240,8 @@
12271240
"target": "collection",
12281241
"topology": [
12291242
"replicaset",
1230-
"sharded"
1243+
"sharded",
1244+
"load-balanced"
12311245
],
12321246
"changeStreamPipeline": [],
12331247
"changeStreamOptions": {},
@@ -1320,7 +1334,8 @@
13201334
"target": "collection",
13211335
"topology": [
13221336
"replicaset",
1323-
"sharded"
1337+
"sharded",
1338+
"load-balanced"
13241339
],
13251340
"changeStreamPipeline": [],
13261341
"changeStreamOptions": {},
@@ -1413,7 +1428,8 @@
14131428
"target": "collection",
14141429
"topology": [
14151430
"replicaset",
1416-
"sharded"
1431+
"sharded",
1432+
"load-balanced"
14171433
],
14181434
"changeStreamPipeline": [],
14191435
"changeStreamOptions": {},
@@ -1512,7 +1528,8 @@
15121528
"target": "collection",
15131529
"topology": [
15141530
"replicaset",
1515-
"sharded"
1531+
"sharded",
1532+
"load-balanced"
15161533
],
15171534
"changeStreamPipeline": [],
15181535
"changeStreamOptions": {},
@@ -1608,7 +1625,8 @@
16081625
"target": "collection",
16091626
"topology": [
16101627
"replicaset",
1611-
"sharded"
1628+
"sharded",
1629+
"load-balanced"
16121630
],
16131631
"changeStreamPipeline": [],
16141632
"changeStreamOptions": {},

data/change-streams/legacy/change-streams-resume-errorLabels.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ tests:
1515
topology:
1616
- replicaset
1717
- sharded
18+
- load-balanced
1819
changeStreamPipeline: []
1920
changeStreamOptions: {}
2021
operations:
@@ -78,6 +79,7 @@ tests:
7879
topology:
7980
- replicaset
8081
- sharded
82+
- load-balanced
8183
changeStreamPipeline: []
8284
changeStreamOptions: {}
8385
operations:
@@ -141,6 +143,7 @@ tests:
141143
topology:
142144
- replicaset
143145
- sharded
146+
- load-balanced
144147
changeStreamPipeline: []
145148
changeStreamOptions: {}
146149
operations:
@@ -204,6 +207,7 @@ tests:
204207
topology:
205208
- replicaset
206209
- sharded
210+
- load-balanced
207211
changeStreamPipeline: []
208212
changeStreamOptions: {}
209213
operations:
@@ -267,6 +271,7 @@ tests:
267271
topology:
268272
- replicaset
269273
- sharded
274+
- load-balanced
270275
changeStreamPipeline: []
271276
changeStreamOptions: {}
272277
operations:
@@ -330,6 +335,7 @@ tests:
330335
topology:
331336
- replicaset
332337
- sharded
338+
- load-balanced
333339
changeStreamPipeline: []
334340
changeStreamOptions: {}
335341
operations:
@@ -393,6 +399,7 @@ tests:
393399
topology:
394400
- replicaset
395401
- sharded
402+
- load-balanced
396403
changeStreamPipeline: []
397404
changeStreamOptions: {}
398405
operations:
@@ -456,6 +463,7 @@ tests:
456463
topology:
457464
- replicaset
458465
- sharded
466+
- load-balanced
459467
changeStreamPipeline: []
460468
changeStreamOptions: {}
461469
operations:
@@ -519,6 +527,7 @@ tests:
519527
topology:
520528
- replicaset
521529
- sharded
530+
- load-balanced
522531
changeStreamPipeline: []
523532
changeStreamOptions: {}
524533
operations:
@@ -582,6 +591,7 @@ tests:
582591
topology:
583592
- replicaset
584593
- sharded
594+
- load-balanced
585595
changeStreamPipeline: []
586596
changeStreamOptions: {}
587597
operations:
@@ -645,6 +655,7 @@ tests:
645655
topology:
646656
- replicaset
647657
- sharded
658+
- load-balanced
648659
changeStreamPipeline: []
649660
changeStreamOptions: {}
650661
operations:
@@ -708,6 +719,7 @@ tests:
708719
topology:
709720
- replicaset
710721
- sharded
722+
- load-balanced
711723
changeStreamPipeline: []
712724
changeStreamOptions: {}
713725
operations:
@@ -771,6 +783,7 @@ tests:
771783
topology:
772784
- replicaset
773785
- sharded
786+
- load-balanced
774787
changeStreamPipeline: []
775788
changeStreamOptions: {}
776789
operations:
@@ -834,6 +847,7 @@ tests:
834847
topology:
835848
- replicaset
836849
- sharded
850+
- load-balanced
837851
changeStreamPipeline: []
838852
changeStreamOptions: {}
839853
operations:
@@ -897,6 +911,7 @@ tests:
897911
topology:
898912
- replicaset
899913
- sharded
914+
- load-balanced
900915
changeStreamPipeline: []
901916
changeStreamOptions: {}
902917
operations:
@@ -960,6 +975,7 @@ tests:
960975
topology:
961976
- replicaset
962977
- sharded
978+
- load-balanced
963979
changeStreamPipeline: []
964980
changeStreamOptions: {}
965981
operations:
@@ -1026,6 +1042,7 @@ tests:
10261042
topology:
10271043
- replicaset
10281044
- sharded
1045+
- load-balanced
10291046
changeStreamPipeline: []
10301047
changeStreamOptions: {}
10311048
operations:
@@ -1090,6 +1107,7 @@ tests:
10901107
topology:
10911108
- replicaset
10921109
- sharded
1110+
- load-balanced
10931111
changeStreamPipeline: []
10941112
changeStreamOptions: {}
10951113
operations:

data/change-streams/legacy/change-streams-resume-whitelist.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
"target": "collection",
2121
"topology": [
2222
"replicaset",
23-
"sharded"
23+
"sharded",
24+
"load-balanced"
2425
],
2526
"changeStreamPipeline": [],
2627
"changeStreamOptions": {},

data/change-streams/legacy/change-streams-resume-whitelist.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ tests:
1515
topology:
1616
- replicaset
1717
- sharded
18+
- load-balanced
1819
changeStreamPipeline: []
1920
changeStreamOptions: {}
2021
operations:
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"uri": "mongodb+srv://test20.test.build.10gen.cc/?directConnection=false",
3+
"seeds": [],
4+
"hosts": [],
5+
"error": true,
6+
"comment": "Should fail because loadBalanced=true is incompatible with directConnection"
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# The TXT record for test20.test.build.10gen.cc contains loadBalanced=true. There is no corresponding test for
2+
# directConnection=true because that option is already incompatible with SRV URIs.
3+
uri: "mongodb+srv://test20.test.build.10gen.cc/?directConnection=false"
4+
seeds: []
5+
hosts: []
6+
error: true
7+
comment: Should fail because loadBalanced=true is incompatible with directConnection

0 commit comments

Comments
 (0)