From 9d7ceed8c37bafb5769787c26c8f8c79670f94f8 Mon Sep 17 00:00:00 2001 From: Jeremy Mikola Date: Wed, 19 Jul 2023 11:46:09 -0400 Subject: [PATCH] DRIVERS-2675: Remove use of "sharded-replicaset" (#1443) Although one test does not specify a minServerVersion, "sharded-replicaset" is still redundant since $readPreference is always sent to mongos. --- source/run-command/tests/unified/runCommand.json | 3 +-- source/run-command/tests/unified/runCommand.yml | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/source/run-command/tests/unified/runCommand.json b/source/run-command/tests/unified/runCommand.json index 007e514bd7..fde9de92e6 100644 --- a/source/run-command/tests/unified/runCommand.json +++ b/source/run-command/tests/unified/runCommand.json @@ -229,7 +229,6 @@ { "topologies": [ "replicaset", - "sharded-replicaset", "load-balanced", "sharded" ] @@ -493,7 +492,7 @@ { "minServerVersion": "4.2", "topologies": [ - "sharded-replicaset", + "sharded", "load-balanced" ] } diff --git a/source/run-command/tests/unified/runCommand.yml b/source/run-command/tests/unified/runCommand.yml index eaa12eff23..9b0bf1ad63 100644 --- a/source/run-command/tests/unified/runCommand.yml +++ b/source/run-command/tests/unified/runCommand.yml @@ -119,7 +119,7 @@ tests: - description: attaches the provided $readPreference to given command runOnRequirements: # Exclude single topology, which is most likely a standalone server - - topologies: [ replicaset, sharded-replicaset, load-balanced, sharded ] + - topologies: [ replicaset, load-balanced, sharded ] operations: - name: runCommand object: *db @@ -250,7 +250,7 @@ tests: - minServerVersion: "4.0" topologies: [ replicaset ] - minServerVersion: "4.2" - topologies: [ sharded-replicaset, load-balanced ] + topologies: [ sharded, load-balanced ] operations: - name: withTransaction object: *session