NCMP fails to start if /subscription-registry already exists 52/135352/2
authordanielhanrahan <daniel.hanrahan@est.tech>
Mon, 10 Jul 2023 09:47:36 +0000 (10:47 +0100)
committerDaniel Hanrahan <daniel.hanrahan@est.tech>
Mon, 10 Jul 2023 12:51:41 +0000 (12:51 +0000)
commit0ed77bfc78fbb1f33fe6708234759dab2413e0f7
tree4968f1a611309b563a758f55b22025a4167a1ed4
parente05a59a2361394d6fc4a93193b0ed35ba305fcf8
NCMP fails to start if /subscription-registry already exists

cpsDataService only throws AlreadyDefinedException, not
AlreadyDefinedExceptionBatch. This causes NcmpStartupException
to be thrown during startup, if /subscription-registry exists.

Issue-ID: CPS-1783
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I5667d891f855ef47ca2475891f9216be102932ed
cps-ncmp-service/src/main/java/org/onap/cps/ncmp/init/SubscriptionModelLoader.java
cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/init/SubscriptionModelLoaderSpec.groovy