summaryrefslogtreecommitdiffstats
path: root/openecomp-bdd/stepDefinitions/Utils.js
diff options
context:
space:
mode:
authorilanap <ilanap@amdocs.com>2018-02-20 11:57:12 +0200
committerilanap <ilanap@amdocs.com>2018-02-20 11:57:12 +0200
commit041deed2807a01df01867e4d237df8ff5980cf34 (patch)
treec446393d8fdc5b25b2068e5990d4cdfaaca2b65a /openecomp-bdd/stepDefinitions/Utils.js
parent3a88d01cee90090f7bf012ea33fe73576e55192a (diff)
Fix for adding BDD config changes
Change-Id: I62f79a56a73ff8a546ecef407c3966b93de23a2e Issue-ID: SDC-990 Signed-off-by: ilanap <ilanap@amdocs.com>
Diffstat (limited to 'openecomp-bdd/stepDefinitions/Utils.js')
-rw-r--r--openecomp-bdd/stepDefinitions/Utils.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/openecomp-bdd/stepDefinitions/Utils.js b/openecomp-bdd/stepDefinitions/Utils.js
index 4a54ebe3a7..46534072f2 100644
--- a/openecomp-bdd/stepDefinitions/Utils.js
+++ b/openecomp-bdd/stepDefinitions/Utils.js
@@ -25,6 +25,8 @@ function _request(context, method, path, data, isBinary=false, type='onboarding'
url: server + path,
headers: context.headers
};
+ console.log('--> Calling REST ' + options.method +' url: ' + options.url);
+
return new Promise(function (resolve, reject) {
if (method === 'POST' || method === 'PUT') {
if (isBinary) {
@@ -106,6 +108,8 @@ function download(context, path, filePath, callback, type='onboarding') {
url: server + path,
headers: context.headers
};
+ console.log('--> Calling REST download url: ' + options.url);
+
var file = fs.createWriteStream(filePath);
var r = request(options).pipe(file);
r.on('error', function (err) {