diff options
author | TIMONEY, DANIEL <dtimoney@att.com> | 2021-07-02 13:51:13 +0000 |
---|---|---|
committer | KAPIL SINGAL <ks220y@att.com> | 2021-07-02 14:13:21 +0000 |
commit | dd477ba94c66fd9c5fd1a73b57a64348ac073023 (patch) | |
tree | b51fb0297700778713cf68fefd60fc9d9f1512ae /adaptors | |
parent | f32a87e51b875d1c350ce73dc25724699dcfe666 (diff) |
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 <lalena.aria@att.com>
Change-Id: Ifd7abee6380c82bdde38b2476b977a91d3cbcf7f
Diffstat (limited to 'adaptors')
3 files changed, 25 insertions, 1 deletions
diff --git a/adaptors/artifacts/pom.xml b/adaptors/artifacts/pom.xml index f6f28da23..6be2f96c9 100755 --- a/adaptors/artifacts/pom.xml +++ b/adaptors/artifacts/pom.xml @@ -74,6 +74,13 @@ </dependency> <dependency> <groupId>org.onap.ccsdk.sli.adaptors</groupId> + <artifactId>ccsdk-base-http</artifactId> + <version>${project.version}</version> + <type>xml</type> + <classifier>feature</classifier> + </dependency> + <dependency> + <groupId>org.onap.ccsdk.sli.adaptors</groupId> <artifactId>aai-service-provider</artifactId> <version>${project.version}</version> </dependency> @@ -142,6 +149,16 @@ <artifactId>sql-resource-installer</artifactId> <version>${project.version}</version> </dependency> + <dependency> + <groupId>org.onap.ccsdk.sli.adaptors</groupId> + <artifactId>base-http-provider</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>org.onap.ccsdk.sli.adaptors</groupId> + <artifactId>base-http-installer</artifactId> + <version>${project.version}</version> + </dependency> </dependencies> </dependencyManagement> </project> diff --git a/adaptors/base/http/provider/pom.xml b/adaptors/base/http/provider/pom.xml index d5107b01d..9cb359d70 100644 --- a/adaptors/base/http/provider/pom.xml +++ b/adaptors/base/http/provider/pom.xml @@ -37,5 +37,10 @@ <artifactId>logging-filter-base</artifactId> <scope>provided</scope> </dependency> + <dependency> + <groupId>org.onap.ccsdk.sli.core</groupId> + <artifactId>utils-provider</artifactId> + <version>${project.version}</version> + </dependency> </dependencies> </project> 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; |