@@ -112,17 +112,21 @@ Each YAML file has the following keys:
112
112
and "sharded". If this field is omitted, the default is all topologies (i.e.
113
113
``["single", "replicaset", "sharded"] ``).
114
114
115
- - ``serverless ``: Optional string. Whether or not the test should be run on
116
- serverless instances imitating sharded clusters. Valid values are "require",
117
- "forbid", and "allow". If "require", the test MUST only be run on serverless
118
- instances. If "forbid", the test MUST NOT be run on serverless instances. If
119
- omitted or "allow", this option has no effect.
120
-
121
- The test runner MUST be informed whether or not serverless is being used in
122
- order to determine if this requirement is met (e.g. through an environment
123
- variable or configuration option). Since the serverless proxy imitates a
124
- mongos, the runner is not capable of determining this by issuing a server
125
- command such as ``buildInfo `` or ``hello ``.
115
+ - ``serverless ``: (optional): Whether or not the test should be run on Atlas
116
+ Serverless instances. Valid values are "require", "forbid", and "allow". If
117
+ "require", the test MUST only be run on Atlas Serverless instances. If
118
+ "forbid", the test MUST NOT be run on Atlas Serverless instances. If omitted
119
+ or "allow", this option has no effect.
120
+
121
+ The test runner MUST be informed whether or not Atlas Serverless is being
122
+ used in order to determine if this requirement is met (e.g. through an
123
+ environment variable or configuration option).
124
+
125
+ Note: the Atlas Serverless proxy imitates mongos, so the test runner is not
126
+ capable of determining if Atlas Serverless is in use by issuing commands
127
+ such as ``buildInfo `` or ``hello ``. Furthermore, connections to Atlas
128
+ Serverless use a load balancer, so the topology will appear as
129
+ "load-balanced".
126
130
127
131
- ``database_name `` and ``collection_name ``: The database and collection to use
128
132
for testing.
@@ -138,10 +142,19 @@ Each YAML file has the following keys:
138
142
- ``skipReason ``: Optional, string describing why this test should be
139
143
skipped.
140
144
141
- - ``useMultipleMongoses `` (optional): If ``true ``, the MongoClient for this
142
- test should be initialized with multiple mongos seed addresses. If ``false ``
143
- or omitted, only a single mongos address should be specified. This field has
144
- no effect for non-sharded topologies.
145
+ - ``useMultipleMongoses `` (optional): If ``true ``, and the topology type is
146
+ ``Sharded ``, the MongoClient for this test should be initialized with multiple
147
+ mongos seed addresses. If ``false `` or omitted, only a single mongos address
148
+ should be specified.
149
+
150
+ If ``true ``, the topology type is ``LoadBalanced ``, and Atlas Serverless is
151
+ not being used, the MongoClient for this test should be initialized with the
152
+ URI of the load balancer fronting multiple servers. If ``false `` or omitted,
153
+ the MongoClient for this test should be initialized with the URI of the load
154
+ balancer fronting a single server.
155
+
156
+ ``useMultipleMongoses `` only affects ``Sharded `` and ``LoadBalanced ``
157
+ topologies (excluding Atlas Serverless).
145
158
146
159
- ``clientOptions ``: Optional, parameters to pass to MongoClient().
147
160
@@ -650,6 +663,7 @@ is the only command allowed in a sharded transaction that uses the
650
663
Changelog
651
664
=========
652
665
666
+ :2022-04-22: Clarifications to ``serverless `` and ``useMultipleMongoses ``.
653
667
:2019-05-15: Add operation level ``error `` field to assert any error.
654
668
:2019-03-25: Add workaround for StaleDbVersion on distinct.
655
669
:2019-03-01: Add top-level ``runOn `` field to denote server version and/or
0 commit comments