summaryrefslogtreecommitdiff
path: root/jstests/set_param1.js
diff options
context:
space:
mode:
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" )