Skip to content

Commit bfc43d6

Browse files
authored
CSHARP-5499 Sync non-lb-connection-establishment test (#1618)
Sync to mongodb/specifications@d05c33e
1 parent 97165a3 commit bfc43d6

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

specifications/load-balancers/tests/non-lb-connection-establishment.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,19 @@
5757
"tests": [
5858
{
5959
"description": "operations against non-load balanced clusters fail if URI contains loadBalanced=true",
60+
"runOnRequirements": [
61+
{
62+
"maxServerVersion": "8.0.99",
63+
"topologies": [
64+
"single"
65+
]
66+
},
67+
{
68+
"topologies": [
69+
"sharded"
70+
]
71+
}
72+
],
6073
"operations": [
6174
{
6275
"name": "runCommand",

specifications/load-balancers/tests/non-lb-connection-establishment.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ tests:
4242
# If the server is not configured to be behind a load balancer and the URI contains loadBalanced=true, the driver
4343
# should error during the connection handshake because the server's hello response does not contain a serviceId field.
4444
- description: operations against non-load balanced clusters fail if URI contains loadBalanced=true
45+
runOnRequirements:
46+
- maxServerVersion: 8.0.99 # DRIVERS-3108: Skip test on >=8.1 mongod. SERVER-85804 changes a non-LB mongod to close connection.
47+
topologies: [ single ]
48+
- topologies: [ sharded ]
49+
4550
operations:
4651
- name: runCommand
4752
object: *lbTrueDatabase

0 commit comments

Comments
 (0)