[DMI] Enabling datasync flag when the cmhandle is READY #2 37/140837/11
authormpriyank <priyank.maheshwari@est.tech>
Fri, 18 Apr 2025 11:30:37 +0000 (12:30 +0100)
committerPriyank Maheshwari <priyank.maheshwari@est.tech>
Tue, 10 Jun 2025 08:39:55 +0000 (08:39 +0000)
commitd72657b8f23c2e99268c3fd42242112fea31f26b
tree0cf6dff4126b5e08b5880e0615c687d8c2d64c7e
parent0e1a4c9360a118d97dd3206de0dbf4b4f35a4188
[DMI] Enabling datasync flag when the cmhandle is READY #2

- enabling the datasync flag once the cmhandle is successfully registered
  with CPS-NCMP and in READY state
- data sync flag can only be enabled when it has fetched all the modules from the
  cm handles over the network
- testware added for the same
- removed the use of auth username and password when calling to register
  cm handle with NCMP

Issue-ID: CPS-2757
Change-Id: Ib97483e51f1c314d663c1954c96a3ba96b699f2e
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
dmi-service/src/main/java/org/onap/cps/ncmp/dmi/cmstack/lcm/LcmEventConsumer.java [new file with mode: 0644]
dmi-service/src/main/java/org/onap/cps/ncmp/dmi/config/DmiConfiguration.java
dmi-service/src/main/java/org/onap/cps/ncmp/dmi/service/DmiService.java
dmi-service/src/main/java/org/onap/cps/ncmp/dmi/service/DmiServiceImpl.java
dmi-service/src/main/java/org/onap/cps/ncmp/dmi/service/client/NcmpRestClient.java
dmi-service/src/main/resources/application.yml
dmi-service/src/test/groovy/org/onap/cps/ncmp/dmi/cmstack/lcm/LcmEventConsumerSpec.groovy [new file with mode: 0644]
dmi-service/src/test/groovy/org/onap/cps/ncmp/dmi/config/DmiConfigurationSpec.groovy
dmi-service/src/test/groovy/org/onap/cps/ncmp/dmi/service/client/NcmpRestClientSpec.groovy
dmi-service/src/test/resources/application.yml
dmi-service/src/test/resources/sampleLcmEvent.json [new file with mode: 0644]