From 8a1e6dfddf777e5ce84a2112f4a0f1f42246f293 Mon Sep 17 00:00:00 2001 From: "TIMONEY, DANIEL" Date: Fri, 2 Jul 2021 13:51:13 +0000 Subject: Allow env variables to be used in MSO adaptor Allow env variables to be used in MSO adaptor properties file Issue-ID: CCSDK-3360 Signed-off-by: lalena.aria Change-Id: Ifd7abee6380c82bdde38b2476b977a91d3cbcf7f (cherry picked from commit dd477ba94c66fd9c5fd1a73b57a64348ac073023) --- adaptors/artifacts/pom.xml | 17 +++++++++++++++++ adaptors/base/http/provider/pom.xml | 5 +++++ .../sli/adaptors/base/http/AbstractHttpAdapter.java | 4 +++- 3 files changed, 25 insertions(+), 1 deletion(-) diff --git a/adaptors/artifacts/pom.xml b/adaptors/artifacts/pom.xml index 62473b5c8..80b9b971b 100755 --- a/adaptors/artifacts/pom.xml +++ b/adaptors/artifacts/pom.xml @@ -79,6 +79,13 @@ xml feature + + org.onap.ccsdk.sli.adaptors + ccsdk-base-http + ${project.version} + xml + feature + org.onap.ccsdk.sli.adaptors aai-service-provider @@ -149,6 +156,16 @@ sql-resource-installer ${project.version} + + org.onap.ccsdk.sli.adaptors + base-http-provider + ${project.version} + + + org.onap.ccsdk.sli.adaptors + base-http-installer + ${project.version} + diff --git a/adaptors/base/http/provider/pom.xml b/adaptors/base/http/provider/pom.xml index a401559d2..3ea7e8181 100644 --- a/adaptors/base/http/provider/pom.xml +++ b/adaptors/base/http/provider/pom.xml @@ -37,5 +37,10 @@ logging-filter-base provided + + org.onap.ccsdk.sli.core + utils-provider + ${project.version} + diff --git a/adaptors/base/http/provider/src/main/java/org/onap/ccsdk/sli/adaptors/base/http/AbstractHttpAdapter.java b/adaptors/base/http/provider/src/main/java/org/onap/ccsdk/sli/adaptors/base/http/AbstractHttpAdapter.java index cc6f06a4d..65cbdd764 100644 --- a/adaptors/base/http/provider/src/main/java/org/onap/ccsdk/sli/adaptors/base/http/AbstractHttpAdapter.java +++ b/adaptors/base/http/provider/src/main/java/org/onap/ccsdk/sli/adaptors/base/http/AbstractHttpAdapter.java @@ -9,6 +9,8 @@ import java.util.Properties; import javax.net.ssl.HostnameVerifier; import javax.net.ssl.SSLSession; import javax.ws.rs.client.ClientBuilder; + +import org.onap.ccsdk.sli.core.utils.common.EnvProperties; import org.onap.logging.filter.base.MetricLogClientFilter; import org.onap.logging.filter.base.PayloadLoggingClientFilter; import org.slf4j.Logger; @@ -69,7 +71,7 @@ public abstract class AbstractHttpAdapter { if (propDir == null || propDir.length() < 1) { propDir = SDNC_CONFIG_DIR_DEFAULT; } - Properties properties = new Properties(); + Properties properties = new EnvProperties(); // forward slash is checked to support path src/test/resources on windows machine if (!propDir.endsWith(File.separator) && !propDir.endsWith("/")) { propDir = propDir + File.separator; -- cgit 1.2.3-korg