Added proper logging to sdc-listener MS 98/103398/1
authorSebastien Premont-Tendland <sebastien.premont@bell.ca>
Mon, 9 Mar 2020 22:34:18 +0000 (18:34 -0400)
committerSebastien Premont-Tendland <sebastien.premont@bell.ca>
Mon, 9 Mar 2020 22:34:18 +0000 (18:34 -0400)
 - Logging was not configured properly to use logback file.
 - Updated the sdc-distribution-client version to 1.4.0
 - Changed the default username for SDC to cds from vid

Issue-ID: CCSDK-2160
Signed-off-by: Sebastien Premont-Tendland <sebastien.premont@bell.ca>
Change-Id: Iea89ccf10ac61f44c0ce1765db9dad13ea666510

ms/sdclistener/application/pom.xml
ms/sdclistener/application/src/main/resources/application.yaml
ms/sdclistener/application/src/test/java/org/onap/ccsdk/cds/sdclistener/SdcListenerConfigurationTest.java
ms/sdclistener/parent/pom.xml

index 88d8d1b..72f552c 100644 (file)
@@ -63,7 +63,6 @@
         <dependency>
             <groupId>org.onap.sdc.sdc-distribution-client</groupId>
             <artifactId>sdc-distribution-client</artifactId>
-            <version>1.3.0</version>
         </dependency>
 
         <dependency>
             <artifactId>blueprint-proto</artifactId>
         </dependency>
 
+        <dependency>
+            <groupId>ch.qos.logback</groupId>
+            <artifactId>logback-classic</artifactId>
+        </dependency>
+
         <dependency>
             <groupId>io.projectreactor</groupId>
             <artifactId>reactor-core</artifactId>
index 424f0a5..d07d8ae 100644 (file)
@@ -2,7 +2,7 @@ listenerservice:
   config:
     asdcAddress: ${asdcAddress:localhost:8443}
     messageBusAddress: ${messageBusAddress:localhost}
-    user: ${sdcusername:vid}
+    user: ${sdcusername:cds}
     password: ${password:Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U}
     pollingInterval: ${pollingInterval:15}
     pollingTimeout: ${pollingTimeout:60}
index 26757a6..8275bc0 100644 (file)
@@ -37,7 +37,7 @@ public class SdcListenerConfigurationTest {
     public void testCdsSdcListenerConfiguration() {
         assertEquals(listenerConfiguration.getAsdcAddress(), "localhost:8443");
         assertEquals(listenerConfiguration.getMsgBusAddress().stream().findFirst().get(), "localhost");
-        assertEquals(listenerConfiguration.getUser(), "vid");
+        assertEquals(listenerConfiguration.getUser(), "cds");
         assertEquals(listenerConfiguration.getPassword(), "Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U");
         assertEquals(listenerConfiguration.getPollingInterval(), 15);
         assertEquals(listenerConfiguration.getPollingTimeout(), 60);
index eaa1d60..2cbc79d 100755 (executable)
@@ -40,7 +40,7 @@
         <mockk.version>1.9</mockk.version>
         <dmaap.client.version>1.1.5</dmaap.client.version>
         <mockkserver.version>5.5.1</mockkserver.version>
-        <sdc-distribution-client.version>1.3.0</sdc-distribution-client.version>
+        <sdc-distribution-client.version>1.4.0</sdc-distribution-client.version>
         <jmockit.version>1.19</jmockit.version>
         <reactorcore.version>3.2.6.RELEASE</reactorcore.version>
     </properties>