blob: f4c85b3713d696a82f3249129d0cc43345763756 (
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
|
// Test config file expansion using EXEC.
(function() {
'use strict';
load('jstests/noPassthrough/libs/configExpand/lib.js');
// Basic success case
configExpandSuccess(
{
setParameter: {
scramIterationCount: {__exec: makeReflectionCmd('12345')},
scramSHA256IterationCount:
{__exec: makeReflectionCmd("23456\n"), type: 'string', trim: 'whitespace'}
}
},
function(admin) {
const response = assert.commandWorked(admin.runCommand(
{getParameter: 1, scramIterationCount: 1, scramSHA256IterationCount: 1}));
assert.eq(response.scramIterationCount,
12345,
"Incorrect derived config value for scramIterationCount");
assert.eq(response.scramSHA256IterationCount,
23456,
"Incorrect derived config value scramSHA256IterationCount");
});
})();
|