[SDC] Update SDC Distribution Client 45/105145/5
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>
Mon, 6 Apr 2020 12:36:31 +0000 (14:36 +0200)
committerSylvain Desbureaux <sylvain.desbureaux@orange.com>
Thu, 14 May 2020 07:20:48 +0000 (07:20 +0000)
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 <sylvain.desbureaux@orange.com>
Change-Id: I8d49361ba4889a0c4200a9f35901c49534a8f03d

asdc-controller/pom.xml
asdc-controller/src/main/java/org/onap/so/asdc/client/ASDCConfiguration.java
asdc-controller/src/test/java/org/onap/so/asdc/client/ASDCConfigurationTest.java
mso-api-handlers/mso-api-handler-infra/pom.xml

index 60a3b5a..42c4a12 100644 (file)
       <artifactId>spring-boot-starter-test</artifactId>
       <scope>test</scope>
     </dependency>
+    <dependency>
+      <groupId>commons-codec</groupId>
+      <artifactId>commons-codec</artifactId>
+      <version>1.9</version>
+    </dependency>
     <dependency>
       <groupId>org.onap.so</groupId>
       <artifactId>mso-catalog-db</artifactId>
     <dependency>
       <groupId>org.onap.sdc.sdc-distribution-client</groupId>
       <artifactId>sdc-distribution-client</artifactId>
-      <version>1.3.0</version>
+      <version>1.4.1</version>
       <exclusions>
         <exclusion>
           <groupId>org.slf4j</groupId>
index 3e5f82b..c69800d 100644 (file)
@@ -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;
index 40c403f..e474974 100644 (file)
@@ -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);
     }
 
 }
index 3a7c7ad..08cc22b 100644 (file)
     <dependency>
       <groupId>org.onap.sdc.sdc-distribution-client</groupId>
       <artifactId>sdc-distribution-client</artifactId>
-      <version>1.3.0</version>
+      <version>1.4.1</version>
       <exclusions>
         <exclusion>
           <groupId>org.slf4j</groupId>