diff options
author | Eylon Malin <eylon.malin@intl.att.com> | 2019-11-07 08:23:47 +0200 |
---|---|---|
committer | Eylon Malin <eylon.malin@intl.att.com> | 2019-11-07 08:25:50 +0200 |
commit | 31e625a118836d02a95b18ff806903ed23deb25d (patch) | |
tree | 775f3a31a8f045a597ca2d9dfb8087241ea5cb1f /vid-automation/src/main/java/org/onap | |
parent | 06e518055d9758ee3ecc2e40efe13c7a5d982a2a (diff) |
API test can get VID URI protocol from system property
Issue-ID: VID-701
Change-Id: I47c4e50f8cdc333284615b80df64542b696d2674
Signed-off-by: Eylon Malin <eylon.malin@intl.att.com>
Diffstat (limited to 'vid-automation/src/main/java/org/onap')
-rw-r--r-- | vid-automation/src/main/java/org/onap/vid/api/BaseApiTest.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vid-automation/src/main/java/org/onap/vid/api/BaseApiTest.java b/vid-automation/src/main/java/org/onap/vid/api/BaseApiTest.java index 3778e4b16..060976ae4 100644 --- a/vid-automation/src/main/java/org/onap/vid/api/BaseApiTest.java +++ b/vid-automation/src/main/java/org/onap/vid/api/BaseApiTest.java @@ -8,7 +8,6 @@ import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.isEmptyOrNullString; import static org.hamcrest.Matchers.not; -//import com.automation.common.report_portal_integration.listeners.ReportPortalListener; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.SerializationFeature; @@ -69,7 +68,8 @@ public class BaseApiTest { private URI getUri() { String host = System.getProperty("VID_HOST", "127.0.0.1"); int port = Integer.valueOf(System.getProperty("VID_PORT", "8080")); - return new JerseyUriBuilder().host(host).port(port).scheme("http").path("vid").build(); + String protocol = System.getProperty("VID_PROTOCOL", "http"); + return new JerseyUriBuilder().host(host).port(port).scheme(protocol).path("vid").build(); } public void login() { |