diff options
author | ilanap <ilanap@amdocs.com> | 2018-02-18 11:02:03 +0200 |
---|---|---|
committer | Avi Gaffa <avi.gaffa@amdocs.com> | 2018-02-18 13:15:44 +0000 |
commit | 6c872743f110fee1efd1d846b7642e6162efa1ea (patch) | |
tree | f03bab2b41fb95b1388fcd60fb0bf8b021d29a65 /openecomp-bdd/stepDefinitions/Utils.js | |
parent | aad2781298db9c48ef4be167709b905af39bf9e4 (diff) |
Adding BDD prefixes for different environments
Change-Id: I393f7e68b209b2a29134073453ee5ec92339330b
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.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, |