diff options
Diffstat (limited to 'openecomp-bdd/stepDefinitions/Utils.js')
-rw-r--r-- | openecomp-bdd/stepDefinitions/Utils.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/openecomp-bdd/stepDefinitions/Utils.js b/openecomp-bdd/stepDefinitions/Utils.js index ff49727409..08d0a2b10f 100644 --- a/openecomp-bdd/stepDefinitions/Utils.js +++ b/openecomp-bdd/stepDefinitions/Utils.js @@ -17,8 +17,9 @@ const request = require('request'); const fs = require('fs'); require('node-zip'); -function _request(context, method, path, data, isBinary=false, isVFCall=false) { - let server = (isVFCall) ? context.vf_server : context.onboarding_server; +function _request(context, method, path, data, isBinary=false, prefix='onboarding') { + let server = context.server + '/' + context.prefix[prefix]; + let options = { method: method, url: server + path, |