Skip to content

Commit d2de776

Browse files
author
Divjot Arora
authored
DRIVERS-720 Change existing tests to run in LB mode (#961)
1 parent da077ac commit d2de776

File tree

130 files changed

+268
-155
lines changed

Some content is hidden

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

130 files changed

+268
-155
lines changed

source/change-streams/change-streams.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Change Streams
1010
:Type: Standards
1111
:Minimum Server Version: 3.6
1212
:Last Modified: April 23, 2021
13-
:Version: 1.9.1
13+
:Version: 1.9.2
1414

1515
.. contents::
1616

@@ -887,3 +887,5 @@ Changelog
887887
+------------+------------------------------------------------------------+
888888
| 2021-04-23 | Updated to use modern terminology |
889889
+------------+------------------------------------------------------------+
890+
| 2021-04-29 | Added ``load-balanced`` to test topology requirements |
891+
+------------+------------------------------------------------------------+

source/change-streams/tests/README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Each YAML file has the following keys:
4949
- ``database``: Watch changes on database ``database_name``
5050
- ``client``: Watch changes on entire clusters
5151
- ``topology``: An array of server topologies against which to run the test.
52-
Valid topologies are ``single``, ``replicaset``, and ``sharded``.
52+
Valid topologies are ``single``, ``replicaset``, ``sharded``, and "load-balanced".
5353
- ``changeStreamPipeline``: An array of additional aggregation pipeline stages to add to the change stream
5454
- ``changeStreamOptions``: Additional options to add to the changeStream
5555
- ``operations``: Array of documents, each describing an operation. Each document has the following fields:

source/change-streams/tests/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": {},

source/change-streams/tests/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:

source/change-streams/tests/legacy/change-streams-resume-allowlist.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": {},

source/change-streams/tests/legacy/change-streams-resume-allowlist.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:

source/change-streams/tests/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": {},

0 commit comments

Comments
 (0)