diff options
author | ilanap <ilanap@amdocs.com> | 2018-02-20 11:57:12 +0200 |
---|---|---|
committer | ilanap <ilanap@amdocs.com> | 2018-02-20 11:57:12 +0200 |
commit | 041deed2807a01df01867e4d237df8ff5980cf34 (patch) | |
tree | c446393d8fdc5b25b2068e5990d4cdfaaca2b65a /openecomp-bdd/stepDefinitions/world.js | |
parent | 3a88d01cee90090f7bf012ea33fe73576e55192a (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/world.js')
-rw-r--r-- | openecomp-bdd/stepDefinitions/world.js | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/openecomp-bdd/stepDefinitions/world.js b/openecomp-bdd/stepDefinitions/world.js index fd7250548d..75f93afb89 100644 --- a/openecomp-bdd/stepDefinitions/world.js +++ b/openecomp-bdd/stepDefinitions/world.js @@ -60,23 +60,19 @@ class CustomWorld { this.context.defaultServerType = 'onboarding'; - this.context.prefix = config.prefix; - this.context.port = config.port; - this.context.protocol = config.protocol; - - this.setServer = function(server) { - this.context.server = server; - }; + this.config = config; let context = this.context; this.context.getUrlForType = (function(type) { - var that = context; + var _server = context.server; + var _config = config; return function(type) { - let typeData = that[type]; - return (config.protocol + '://' + - that.server + ':' + + let typeData = _config[type]; + let _url = _config.protocol + '://' + + _server + ':' + typeData.port + '/' + - typeData.prefix); + typeData.prefix; + return _url; } })(); |