diff options
Diffstat (limited to 'jstests/noPassthrough/configExpand_exec_values.js')
-rw-r--r-- | jstests/noPassthrough/configExpand_exec_values.js | 43 |
1 files changed, 21 insertions, 22 deletions
diff --git a/jstests/noPassthrough/configExpand_exec_values.js b/jstests/noPassthrough/configExpand_exec_values.js index 21b9e493ea1..f4c85b3713d 100644 --- a/jstests/noPassthrough/configExpand_exec_values.js +++ b/jstests/noPassthrough/configExpand_exec_values.js @@ -1,28 +1,27 @@ // Test config file expansion using EXEC. (function() { - 'use strict'; +'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"); - }); +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"); + }); })(); |