NCMP : NCMP : Handle non responding DMI-Plugin 45/135245/6
authorsourabh_sourabh <sourabh.sourabh@est.tech>
Wed, 28 Jun 2023 11:28:27 +0000 (12:28 +0100)
committerSourabh Sourabh <sourabh.sourabh@est.tech>
Thu, 29 Jun 2023 13:49:34 +0000 (13:49 +0000)
commit3be942a91a4baccc85fe85ceab122b5e82dd964c
treeea734ea22efa0dc157c92dffc07c24999048268f
parent9965f958530e0341b109a7df20c88103bdd83862
NCMP : NCMP : Handle non responding DMI-Plugin

- Added new response code for non-responding dmi and non-success.
- Captured any exception after sending request to dmi service and then
  create a cloud event with error code and publish it to client topic.
- Minor modificarion into resource data operation util class.

Issue-ID: CPS-1558

Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
Change-Id: I39d409fb42856b816bf9833c2a23f7fa250a1e62
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/NcmpEventResponseCode.java
cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/operations/DmiDataOperations.java
cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/utils/data/operation/ResourceDataOperationRequestUtils.java
cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/api/impl/operations/DmiDataOperationsSpec.groovy