mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
15 lines
518 B
JavaScript
15 lines
518 B
JavaScript
// 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");
|
|
});
|
|
})();
|