summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/standalone_cluster_parameters.js
blob: 410e4e54e16cd45325f20c21374ab88807352930 (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
/**
 * Checks that set/getClusterParameter run as expected on standalone.
 * @tags: [
 *   # Standalone cluster parameters enabled in 7.1+.
 *   requires_fcv_71,
 * ]
 */
(function() {
'use strict';

load('jstests/libs/cluster_server_parameter_utils.js');

const conn = MongoRunner.runMongod({});

// Setup the necessary logging level for the test.
setupNode(conn);

// First, ensure that incorrect usages of set/getClusterParameter fail appropriately.
testInvalidClusterParameterCommands(conn);

// Then, ensure that set/getClusterParameter set and retrieve expected values.
testValidClusterParameterCommands(conn);

MongoRunner.stopMongod(conn);
})();