summaryrefslogtreecommitdiff
path: root/jstests/set_param1.js
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2010-11-22 19:52:44 -0500
committerEliot Horowitz <eliot@10gen.com>2010-11-22 19:52:44 -0500
commit6d745c7834558a030ebcc9e3ea9fc604f744987d (patch)
treeb294f6e9c86a9d34d411a6170ca7aeba2eb68a73 /jstests/set_param1.js
parent0553f2eeffbd0e4c19cef5562230b4bc8c8d0f97 (diff)
downloadmongo-6d745c7834558a030ebcc9e3ea9fc604f744987d.tar.gz
get/set -> (get|set)Parameter and a test SERVER-1843
Diffstat (limited to 'jstests/set_param1.js')
-rw-r--r--jstests/set_param1.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/jstests/set_param1.js b/jstests/set_param1.js
new file mode 100644
index 00000000000..555cb520306
--- /dev/null
+++ b/jstests/set_param1.js
@@ -0,0 +1,9 @@
+
+old = db.adminCommand( { "getParameter" : "*" } )
+tmp1 = db.adminCommand( { "setParameter" : 1 , "logLevel" : 5 } )
+tmp2 = db.adminCommand( { "setParameter" : 1 , "logLevel" : old.logLevel } )
+now = db.adminCommand( { "getParameter" : "*" } )
+
+assert.eq( old , now , "A" )
+assert.eq( old.logLevel , tmp1.was , "B" )
+assert.eq( 5 , tmp2.was , "C" )