summaryrefslogtreecommitdiff
path: root/jstests/slowNightly
diff options
context:
space:
mode:
authorShaun Verch <shaun.verch@10gen.com>2013-09-04 09:56:18 -0400
committerShaun Verch <shaun.verch@10gen.com>2013-09-05 13:49:35 -0400
commit9d6ae725a6bf4a8a57bac8bfd6e5f598055e9fdf (patch)
treedad432a7a7e28f62c3ebfe259a4a76dcf04db8d1 /jstests/slowNightly
parent03ca1e173f4ad480a817d542780035532a4efb0f (diff)
downloadmongo-9d6ae725a6bf4a8a57bac8bfd6e5f598055e9fdf.tar.gz
SERVER-8510 Fixed command line parsing test and add corresponding JSON config test
Diffstat (limited to 'jstests/slowNightly')
-rw-r--r--jstests/slowNightly/command_line_parsing.js20
1 files changed, 19 insertions, 1 deletions
diff --git a/jstests/slowNightly/command_line_parsing.js b/jstests/slowNightly/command_line_parsing.js
index d21cbd0d033..c2834e8717a 100644
--- a/jstests/slowNightly/command_line_parsing.js
+++ b/jstests/slowNightly/command_line_parsing.js
@@ -15,7 +15,7 @@ var m2expected = {
"parsed" : {
"config" : "jstests/libs/testconfig",
"dbpath" : "/data/db/jstests_slowNightly_command_line_parsing2",
- "fastsync" : "true",
+ "fastsync" : true,
"port" : 31002,
}
};
@@ -24,3 +24,21 @@ var m2result = m2.getDB("admin").runCommand( "getCmdLineOpts" );
//remove setParameter as it is variable depending on the way the test is started.
delete m2result.parsed.setParameter
assert.docEq( m2expected.parsed, m2result.parsed );
+
+// test JSON config file
+var m3 = startMongod("--port", port+4, "--dbpath", "/data/db/" + baseName +"2",
+ "--config", "jstests/libs/testconfig");
+
+var m3expected = {
+ "parsed" : {
+ "config" : "jstests/libs/testconfig",
+ "dbpath" : "/data/db/jstests_slowNightly_command_line_parsing2",
+ "fastsync" : true,
+ "port" : 31004,
+ }
+};
+var m3result = m3.getDB("admin").runCommand( "getCmdLineOpts" );
+
+//remove setParameter as it is variable depending on the way the test is started.
+delete m3result.parsed.setParameter
+assert.docEq( m3expected.parsed, m3result.parsed );