Remove NCMP tag from properties 74/129274/1
authorDylanB95EST <dylan.byrne@est.tech>
Mon, 16 May 2022 09:45:56 +0000 (10:45 +0100)
committerDylanB95EST <dylan.byrne@est.tech>
Mon, 16 May 2022 09:46:00 +0000 (10:46 +0100)
We have decided to remove the NCMP tag from properties
and will add it later as part of our release process for
KOHN.

Issue-ID: CPS-875
Change-Id: I7282c3c11879f2252c8a1b193df17f3f4bb1cf14
Signed-off-by: DylanB95EST <dylan.byrne@est.tech>
cps-application/src/main/resources/application.yml
cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/config/NcmpConfiguration.java
cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/inventory/sync/ModuleSyncWatchdog.java
cps-ncmp-service/src/test/resources/application.yml

index 00424a5..7ad22e9 100644 (file)
@@ -130,13 +130,14 @@ logging:
             springframework: INFO\r
             onap:\r
                 cps: INFO\r
-ncmp:\r
-    dmi:\r
-        auth:\r
-            username: ${DMI_USERNAME}\r
-            password: ${DMI_PASSWORD}\r
-        api:\r
-            base-path: dmi\r
-    timers:\r
-        advised-modules-sync:\r
-            sleep-time-ms: 30000
\ No newline at end of file
+\r
+dmi:\r
+    auth:\r
+        username: ${DMI_USERNAME}\r
+        password: ${DMI_PASSWORD}\r
+    api:\r
+        base-path: dmi\r
+\r
+timers:\r
+    advised-modules-sync:\r
+        sleep-time-ms: 30000
\ No newline at end of file
index 997e7d5..af33651 100644 (file)
@@ -44,11 +44,11 @@ public class NcmpConfiguration {
     @Getter
     @Component
     public static class DmiProperties {
-        @Value("${ncmp.dmi.auth.username}")
+        @Value("${dmi.auth.username}")
         private String authUsername;
-        @Value("${ncmp.dmi.auth.password}")
+        @Value("${dmi.auth.password}")
         private String authPassword;
-        @Value("${ncmp.dmi.api.base-path}")
+        @Value("${dmi.api.base-path}")
         private String dmiBasePath;
     }
 
index 368262b..9329b2f 100644 (file)
@@ -39,7 +39,7 @@ public class ModuleSyncWatchdog {
     /**
      * Execute Cm Handle poll which changes the cm handle state from 'ADVISED' to 'READY'.
      */
-    @Scheduled(fixedDelayString = "${ncmp.timers.advised-modules-sync.sleep-time-ms}")
+    @Scheduled(fixedDelayString = "${timers.advised-modules-sync.sleep-time-ms}")
     public void executeAdvisedCmHandlePoll() {
         YangModelCmHandle advisedCmHandle = syncUtils.getAnAdvisedCmHandle();
         while (advisedCmHandle != null) {
index c259bf0..c23926e 100644 (file)
 #  SPDX-License-Identifier: Apache-2.0
 #  ============LICENSE_END=========================================================
 
-ncmp:
-    dmi:
-        auth:
-            username: some-user
-            password: some-password
-        api:
-            base-path: dmi
+dmi:
+    auth:
+        username: some-user
+        password: some-password
+    api:
+        base-path: dmi