Async: NCMP Rest impl. including Request ID generation 18/127718/3
authorsourabh_sourabh <sourabh.sourabh@est.tech>
Sat, 12 Mar 2022 17:11:10 +0000 (22:41 +0530)
committersourabh_sourabh <sourabh.sourabh@est.tech>
Mon, 14 Mar 2022 17:16:19 +0000 (22:46 +0530)
commite1f41c3e6591b572a75021f4b51538f8fdbfc88d
tree24dbad0eba106783b3a4483345b4197d99e0b9cc
parent7c98a26620b424d7328b57e0aeedd634cdeeb564
Async: NCMP Rest impl. including Request ID generation

- In case of invalid topic return http status 400 with error message
- Unit test is modified to handle/validate InvalidTopicException

Issue-ID: CPS-828
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
Change-Id: I05645c92ccebb8aa422a47f6edcde7b64088a118
cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/exceptions/NetworkCmProxyRestExceptionHandler.java
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/exception/InvalidTopicException.java [new file with mode: 0644]
cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/api/impl/NetworkCmProxyDataServiceImplSpec.groovy