blob: faa12e23fddea6f63bd024858c12d5ef1b50589d (
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
|
var baseName = "jstests_disk_index_options";
load('jstests/libs/command_line/test_parsed_options.js');
jsTest.log("Testing \"noIndexBuildRetry\" command line option");
var expectedResult = {"parsed": {"storage": {"indexBuildRetry": false}}};
testGetCmdLineOptsMongod({noIndexBuildRetry: ""}, expectedResult);
jsTest.log("Testing \"storage.indexBuildRetry\" config file option");
expectedResult = {
"parsed": {
"config": "jstests/libs/config_files/enable_indexbuildretry.json",
"storage": {"indexBuildRetry": true}
}
};
testGetCmdLineOptsMongod({config: "jstests/libs/config_files/enable_indexbuildretry.json"},
expectedResult);
jsTest.log("Testing with no explicit index option setting");
expectedResult = {
"parsed": {"storage": {}}
};
testGetCmdLineOptsMongod({}, expectedResult);
jsTest.log("Testing explicitly disabled \"noIndexBuildRetry\" config file option");
expectedResult = {
"parsed": {
"config": "jstests/libs/config_files/disable_noindexbuildretry.ini",
"storage": {"indexBuildRetry": true}
}
};
testGetCmdLineOptsMongod({config: "jstests/libs/config_files/disable_noindexbuildretry.ini"},
expectedResult);
print(baseName + " succeeded.");
|