summaryrefslogtreecommitdiff
path: root/jstests/sharding/libs/last_lts_mongod_commands.js
blob: 39401bfb0a910ff72148f8182e04e2aedadea3db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// These commands were removed from mongod since the last LTS version, but will still appear in the
// listCommands output of a last LTS version mongod. 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 commandsRemovedFromMongodSinceLastLTS = [
    "_configsvrCommitChunkMerge",
    "_configsvrCreateCollection",
    "_configsvrRepairShardedCollectionChunksHistory",
    "mapreduce.shardedfinish",
    "availableQueryOptions",  // TODO SERVER-67689: remove this once 7.0 becomes last-lts
];
// These commands were added in mongod since the last LTS version, so will not appear in the
// listCommands output of a last LTS version mongod. We will allow these commands to have a
// test defined without always existing on the mongod being used.
const commandsAddedToMongodSinceLastLTS = [
    "analyze",          // TODO SERVER-67707: Remove once 7.0 becomes last LTS
    "analyzeShardKey",  // TODO (SERVER-68977): Remove upgrade/downgrade for PM-1858.
    "clusterAbortTransaction",
    "clusterAggregate",
    "clusterCommitTransaction",
    "clusterCount",
    "clusterDelete",
    "clusterFind",
    "clusterGetMore",
    "clusterInsert",
    "clusterUpdate",
    "configureQueryAnalyzer",  // TODO (SERVER-68977): Remove upgrade/downgrade for PM-1858.
    "getChangeStreamState",
    "getClusterParameter",
    "listDatabasesForAllTenants",
    "rotateCertificates",
    "setChangeStreamState",
    "setClusterParameter",
    "setUserWriteBlockMode",
];