summaryrefslogtreecommitdiff
path: root/jstests/sharding/libs
diff options
context:
space:
mode:
authorMaria van Keulen <maria@mongodb.com>2018-07-27 17:09:24 -0400
committerMaria van Keulen <maria@mongodb.com>2018-08-07 14:26:55 -0400
commit88a8b7b31ca41eca88e782d84e496911c93cc0ae (patch)
treef60e0bee8e351180ad2c256c3c8946ec35fadeb6 /jstests/sharding/libs
parent4c16f0f336f4db77034e8aa594bbd4a5bac3f40c (diff)
downloadmongo-88a8b7b31ca41eca88e782d84e496911c93cc0ae.tar.gz
SERVER-36257 Remove copyDB and clone commands
Diffstat (limited to 'jstests/sharding/libs')
-rw-r--r--jstests/sharding/libs/last_stable_mongos_commands.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/jstests/sharding/libs/last_stable_mongos_commands.js b/jstests/sharding/libs/last_stable_mongos_commands.js
new file mode 100644
index 00000000000..43a1da0acfa
--- /dev/null
+++ b/jstests/sharding/libs/last_stable_mongos_commands.js
@@ -0,0 +1,16 @@
+// These commands were removed from mongos 4.2, but will still appear in the listCommands output
+// of a 4.0 mongos. A last-stable mongos will be unable to run a command on a latest version shard
+// that no longer supports that command. To increase test coverage and allow us to run on same- and
+// mixed-version suites, we allow these commands to have a test defined without always existing on
+// the servers being used.
+const commandsRemovedFromMongosIn42 = [
+ 'copydb',
+ 'eval',
+ 'geoNear',
+ 'group',
+ 'reIndex',
+];
+// These commands were added in mongos 4.2, so will not appear in the listCommands output of a 4.0
+// mongos. We will allow these commands to have a test defined without always existing on the mongos
+// being used.
+const commandsAddedToMongosIn42 = ['abortTransaction', 'commitTransaction'];