Handle error in case of upgrade operation 28/137828/4
authorsourabh_sourabh <sourabh.sourabh@est.tech>
Thu, 2 May 2024 09:08:04 +0000 (10:08 +0100)
committerSourabh Sourabh <sourabh.sourabh@est.tech>
Thu, 2 May 2024 09:13:33 +0000 (09:13 +0000)
commite348db7581b64de9540db193e88ebbaf62c78a45
tree9096606246c2a46cac8bdc39bafc74ea774c126d
parentfa5eab66ca5dce1d202e7d58b203d527fd13213b
Handle error in case of upgrade operation

- Send an error response if cm handle not found for upgrade operation.
- Restrict upgrade operation if it is already in progress.

Issue-ID:CPS-2204
Change-Id: Iad63732c5b1d2215b06a09ddda1c0c604cd7648c
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/controller/NetworkCmProxyInventoryController.java
cps-ncmp-rest/src/test/groovy/org/onap/cps/ncmp/rest/controller/NetworkCmProxyInventoryControllerSpec.groovy