From b378f9961c74efacccd71badfeaad0654b27ed27 Mon Sep 17 00:00:00 2001 From: Sylvain Desbureaux Date: Mon, 6 Apr 2020 14:36:31 +0200 Subject: [SDC] Update SDC Distribution Client Use the latest (currently on SNAPSHOT) version od SDC Distribution Client on SO, in order to be able to (later) discuss also with HTTP protocol Issue-ID: SO-2792 Signed-off-by: Sylvain Desbureaux Change-Id: I8d49361ba4889a0c4200a9f35901c49534a8f03d --- asdc-controller/pom.xml | 7 ++++++- .../src/main/java/org/onap/so/asdc/client/ASDCConfiguration.java | 5 +++++ .../test/java/org/onap/so/asdc/client/ASDCConfigurationTest.java | 7 ++++--- 3 files changed, 15 insertions(+), 4 deletions(-) (limited to 'asdc-controller') diff --git a/asdc-controller/pom.xml b/asdc-controller/pom.xml index 60a3b5a07b..42c4a12a37 100644 --- a/asdc-controller/pom.xml +++ b/asdc-controller/pom.xml @@ -197,6 +197,11 @@ spring-boot-starter-test test + + commons-codec + commons-codec + 1.9 + org.onap.so mso-catalog-db @@ -205,7 +210,7 @@ org.onap.sdc.sdc-distribution-client sdc-distribution-client - 1.3.0 + 1.4.1 org.slf4j diff --git a/asdc-controller/src/main/java/org/onap/so/asdc/client/ASDCConfiguration.java b/asdc-controller/src/main/java/org/onap/so/asdc/client/ASDCConfiguration.java index 3e5f82bc5e..c69800d640 100644 --- a/asdc-controller/src/main/java/org/onap/so/asdc/client/ASDCConfiguration.java +++ b/asdc-controller/src/main/java/org/onap/so/asdc/client/ASDCConfiguration.java @@ -83,6 +83,11 @@ public class ASDCConfiguration implements IConfiguration { return getBooleanPropertyWithDefault("mso.asdc-connections.asdc-controller1.useHttpsWithDmaap", true); } + @Override + public java.lang.Boolean isUseHttpsWithSDC() { + return getBooleanPropertyWithDefault("mso.asdc-connections.asdc-controller1.useHttpsWithSdc", true); + } + @Override public boolean isConsumeProduceStatusTopic() { return true; diff --git a/asdc-controller/src/test/java/org/onap/so/asdc/client/ASDCConfigurationTest.java b/asdc-controller/src/test/java/org/onap/so/asdc/client/ASDCConfigurationTest.java index 40c403fd72..e4749742ee 100644 --- a/asdc-controller/src/test/java/org/onap/so/asdc/client/ASDCConfigurationTest.java +++ b/asdc-controller/src/test/java/org/onap/so/asdc/client/ASDCConfigurationTest.java @@ -7,9 +7,9 @@ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -30,7 +30,7 @@ import org.springframework.beans.factory.annotation.Autowired; /** * THis class tests the ASDC Controller by using the ASDC Mock CLient - * + * * */ public class ASDCConfigurationTest extends BaseTest { @@ -52,6 +52,7 @@ public class ASDCConfigurationTest extends BaseTest { assertTrue(config.getRelevantArtifactTypes().size() == config.SUPPORTED_ARTIFACT_TYPES_LIST.size()); assertTrue(config.getWatchDogTimeout() == 1); assertTrue(config.isUseHttpsWithDmaap() == true); + assertTrue(config.isUseHttpsWithSDC() == true); } } -- cgit