De-registration: send event(s) using central state 32/129932/16
authorsourabh_sourabh <sourabh.sourabh@est.tech>
Mon, 25 Jul 2022 08:49:40 +0000 (09:49 +0100)
committersourabh_sourabh <sourabh.sourabh@est.tech>
Mon, 25 Jul 2022 08:49:40 +0000 (09:49 +0100)
commit9fdaf6c0f472cad13ade1469458822d468fd2d6d
tree335596498754c7719b67e5d7e6f272174d39a094
parent71e676dd1cd2ed4ae348cb686dfd6ed96a4fc5b4
De-registration: send event(s) using central state

- refactored method "parseAndRemoveCmHandlesInDmiRegistration"
- added method to send events for DELETING and DELETED
- introduced private method in state handler
- updated unit tests for registration spec
- added unit test to cover new private method in state handler

Issue-ID: CPS-1003
Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech>
Change-Id: Ifc1d1e94b7103d85b6352b196edf7075257c211a
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/NetworkCmProxyDataServiceImpl.java
cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/event/lcm/LcmEventsCmHandleStateHandlerImpl.java
cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/api/impl/NetworkCmProxyDataServiceImplRegistrationSpec.groovy
cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/api/impl/NetworkCmProxyDataServiceImplSpec.groovy
cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/api/impl/event/lcm/LcmEventsCmHandleStateHandlerImplSpec.groovy