summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/wiredTigerMaxCacheOverflowSizeGB_serverParameter.js
blob: f048f2cbf042627316dfafbe1c99c4a23add6a05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/**
 * Test server validation of the 'wiredTigerMaxCacheOverflowSizeGB' server parameter setting via
 * the setParameter command.
 * @tags: [requires_persistence, requires_wiredtiger]
 */

(function() {
    'use strict';

    load("jstests/noPassthrough/libs/server_parameter_helpers.js");

    // Valid parameter values are in the range [0.1, infinity) or 0 (unbounded).
    testNumericServerParameter("wiredTigerMaxCacheOverflowSizeGB",
                               false /*isStartupParameter*/,
                               true /*isRuntimeParameter*/,
                               0 /*defaultValue*/,
                               0.1 /*nonDefaultValidValue*/,
                               true /*hasLowerBound*/,
                               0.09 /*lowerOutOfBounds*/,
                               false /*hasUpperBound*/,
                               "unused" /*upperOutOfBounds*/);
})();