diff options
author | Shaun Verch <shaun.verch@mongodb.com> | 2014-03-27 19:28:27 -0400 |
---|---|---|
committer | Shaun Verch <shaun.verch@mongodb.com> | 2014-03-28 13:49:44 -0400 |
commit | f81b9676fa3dac6aa24c03a0a97ee4b74e352706 (patch) | |
tree | cf58e91107b9f91868bc5eb7e59e37c72f304308 /jstests/core | |
parent | 1b9917b39c4fa37fd2a5e42c78e5f1e50c4c50cc (diff) | |
download | mongo-f81b9676fa3dac6aa24c03a0a97ee4b74e352706.tar.gz |
SERVER-13379 Canonicalize nounixsocket as net.unixDomainSocket.enabled
(cherry picked from commit 9f0e88d0a4c00c125ce52d3954503dd1c91eae7c)
Diffstat (limited to 'jstests/core')
-rw-r--r-- | jstests/core/network_options.js | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/jstests/core/network_options.js b/jstests/core/network_options.js index 939df5cfbce..6c192f3f68f 100644 --- a/jstests/core/network_options.js +++ b/jstests/core/network_options.js @@ -143,4 +143,43 @@ expectedResult = { }; testGetCmdLineOpts({}, expectedResult); + + +// Unix Socket +if (!_isWindows()) { + jsTest.log("Testing \"nounixsocket\" command line option"); + expectedResult = { + "parsed" : { + "net" : { + "unixDomainSocket" : { + "enabled" : false + } + } + } + }; + testGetCmdLineOpts({ nounixsocket : "" }, expectedResult); + + jsTest.log("Testing \"net.wireObjectCheck\" config file option"); + expectedResult = { + "parsed" : { + "config" : "jstests/libs/config_files/enable_unixsocket.json", + "net" : { + "unixDomainSocket" : { + "enabled" : true + } + } + } + }; + testGetCmdLineOpts({ config : "jstests/libs/config_files/enable_unixsocket.json" }, + expectedResult); + + jsTest.log("Testing with no explicit network option setting"); + expectedResult = { + "parsed" : { + "net" : { } + } + }; + testGetCmdLineOpts({}, expectedResult); +} + print(baseName + " succeeded."); |