summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/validation_serverParameters.js
blob: 825cdbc6259dae0ea25e56c73bf45727a1300a30 (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
// Test collection validation related server parameter settings on server startup
// and via the setParameter command.

(function() {
'use strict';

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

// Valid parameter values are in the range [0, infinity).
testNumericServerParameter('maxValidateMBperSec',
                           true /*isStartupParameter*/,
                           true /*isRuntimeParameter*/,
                           0 /*defaultValue*/,
                           60 /*nonDefaultValidValue*/,
                           true /*hasLowerBound*/,
                           -1 /*lowerOutOfBounds*/,
                           false /*hasUpperBound*/,
                           "unused" /*upperOutOfBounds*/);

// Valid parameter values are in the range (0, infinity).
testNumericServerParameter('maxValidateMemoryUsageMB',
                           true /*isStartupParameter*/,
                           true /*isRuntimeParameter*/,
                           200 /*defaultValue*/,
                           50 /*nonDefaultValidValue*/,
                           true /*hasLowerBound*/,
                           0 /*lowerOutOfBounds*/,
                           false /*hasUpperBound*/,
                           "unused" /*upperOutOfBounds*/);
})();