summaryrefslogtreecommitdiff
path: root/jstests/core
diff options
context:
space:
mode:
authorShaun Verch <shaun.verch@mongodb.com>2014-03-27 19:28:27 -0400
committerShaun Verch <shaun.verch@mongodb.com>2014-03-28 13:49:44 -0400
commitf81b9676fa3dac6aa24c03a0a97ee4b74e352706 (patch)
treecf58e91107b9f91868bc5eb7e59e37c72f304308 /jstests/core
parent1b9917b39c4fa37fd2a5e42c78e5f1e50c4c50cc (diff)
downloadmongo-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.js39
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.");