summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/configExpand_exec_wholeconfig.js
blob: f4c0cf5dd78c5b29f8078cc44500741ddf55c44a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Test config file expansion using EXEC at top level.

(function() {
'use strict';

load('jstests/noPassthrough/libs/configExpand/lib.js');

const yamlConfig = jsToYaml({setParameter: {scramIterationCount: 12345}});
configExpandSuccess({__exec: makeReflectionCmd(yamlConfig), type: 'yaml'}, function(admin) {
    const response =
        assert.commandWorked(admin.runCommand({getParameter: 1, scramIterationCount: 1}));
    assert.eq(response.scramIterationCount, 12345, "Incorrect derived config value");
});
})();