diff --git a/testdata/load-balancers/non-lb-connection-establishment.json b/testdata/load-balancers/non-lb-connection-establishment.json index 6aaa7bdf98..f4fed13cc2 100644 --- a/testdata/load-balancers/non-lb-connection-establishment.json +++ b/testdata/load-balancers/non-lb-connection-establishment.json @@ -57,6 +57,19 @@ "tests": [ { "description": "operations against non-load balanced clusters fail if URI contains loadBalanced=true", + "runOnRequirements": [ + { + "maxServerVersion": "8.0.99", + "topologies": [ + "single" + ] + }, + { + "topologies": [ + "sharded" + ] + } + ], "operations": [ { "name": "runCommand", diff --git a/testdata/load-balancers/non-lb-connection-establishment.yml b/testdata/load-balancers/non-lb-connection-establishment.yml index e805549ac0..7eea3957ab 100644 --- a/testdata/load-balancers/non-lb-connection-establishment.yml +++ b/testdata/load-balancers/non-lb-connection-establishment.yml @@ -42,6 +42,11 @@ tests: # If the server is not configured to be behind a load balancer and the URI contains loadBalanced=true, the driver # should error during the connection handshake because the server's hello response does not contain a serviceId field. - description: operations against non-load balanced clusters fail if URI contains loadBalanced=true + runOnRequirements: + - maxServerVersion: 8.0.99 # DRIVERS-3108: Skip test on >=8.1 mongod. SERVER-85804 changes a non-LB mongod to close connection. + topologies: [ single ] + - topologies: [ sharded ] + operations: - name: runCommand object: *lbTrueDatabase