From a46339420faefc49cb48adf2989a0884ff961278 Mon Sep 17 00:00:00 2001 From: Alex Shatov Date: Fri, 4 May 2018 12:26:17 -0400 Subject: fixed 500 "value" argument is out of bounds - convert the EOL to linux "\n" in the blueprint before zipping and sending to cloudify to avoid crashing when the blueprint is windows "\r\n" or mac "\r" based - on catching the exception - log the stack - added logger.info that replaced the logger.debug in a variety of places - external version 2.1.2, internal version 4.4.2 - unit test code coverage Statements : 84.26% ( 942/1118 ) Branches : 64.14% ( 322/502 ) Functions : 81.68% ( 156/191 ) Lines : 84.32% ( 930/1103 ) Change-Id: I9f5f28ddd5d143ca4903316c9199df7d27682143 Signed-off-by: Alex Shatov Issue-ID: DCAEGEN2-487 --- tests/mock_deployment_handler.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/mock_deployment_handler.js') diff --git a/tests/mock_deployment_handler.js b/tests/mock_deployment_handler.js index ee42511..7407e55 100644 --- a/tests/mock_deployment_handler.js +++ b/tests/mock_deployment_handler.js @@ -88,7 +88,8 @@ const run_dh = function() { } }) .catch(function(e) { - const error = "test of deployment-handler exiting due to test problem: " + e.message; + const error = "test of deployment-handler exiting due to test problem: " + e.message + + " " + (e.stack || "").replace(/\n/g, " "); console.error(error); throw e; }); -- cgit 1.2.3-korg