From 5ffd6ff4d8a144f47d25e0c6383dd1d6b06830ca Mon Sep 17 00:00:00 2001 From: Unitech Date: Sat, 26 Sep 2015 19:42:37 +0200 Subject: [PATCH] expose multiset function - tests --- lib/Interactor/RemoteActions/Pm2Actions.js | 1 + test/bash/app_configuration.sh | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/lib/Interactor/RemoteActions/Pm2Actions.js b/lib/Interactor/RemoteActions/Pm2Actions.js index 49edb98e..759ee0fa 100644 --- a/lib/Interactor/RemoteActions/Pm2Actions.js +++ b/lib/Interactor/RemoteActions/Pm2Actions.js @@ -28,6 +28,7 @@ var PM2_REMOTE_METHOD_ALLOWED = { 'stop' : { password_required : true }, 'delete' : { password_required : true }, 'set' : { password_required : true }, + 'multiset' : { password_required : true }, 'deepUpdate' : { password_required : true }, 'pullAndRestart' : { password_optional : true }, diff --git a/test/bash/app_configuration.sh b/test/bash/app_configuration.sh index 2d4a2a0f..b317567e 100644 --- a/test/bash/app_configuration.sh +++ b/test/bash/app_configuration.sh @@ -23,6 +23,12 @@ exists 'should NOW have config variable' "config_var: 'false'" $pm2 set echo.probes true exists 'should NOW have config variable' "probes: 'true'" +should 'should have start 3 apps' 'restart_time: 2' 1 + +$pm2 multiset "echo.conf false" + +exists 'should NOW have config variable' "conf: 'false'" +should 'should have start 3 apps' 'restart_time: 3' 1 $pm2 delete all