From: Eylon Malin Date: Thu, 7 Nov 2019 06:23:47 +0000 (+0200) Subject: API test can get VID URI protocol from system property X-Git-Tag: 6.0.1~203 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=31e625a118836d02a95b18ff806903ed23deb25d;p=vid.git API test can get VID URI protocol from system property Issue-ID: VID-701 Change-Id: I47c4e50f8cdc333284615b80df64542b696d2674 Signed-off-by: Eylon Malin --- 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() {