From: Toine Siebelink Date: Thu, 9 Jun 2022 16:08:18 +0000 (+0000) Subject: Merge "Handle errors during cm handle search" X-Git-Tag: 3.1.0~104 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=d6d8c200c02e417a232af556a022c8f24d09ac1b;p=cps.git Merge "Handle errors during cm handle search" --- d6d8c200c02e417a232af556a022c8f24d09ac1b diff --cc cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/api/impl/NetworkCmProxyDataServiceImplSpec.groovy index c70e7bef03,84e73b2f07..6ba2a2c276 --- a/cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/api/impl/NetworkCmProxyDataServiceImplSpec.groovy +++ b/cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/api/impl/NetworkCmProxyDataServiceImplSpec.groovy @@@ -240,11 -240,12 +240,11 @@@ class NetworkCmProxyDataServiceImplSpe then: 'validate params for creating anchor and list elements' 1 * mockCpsDataService.saveListElements('NCMP-Admin', 'ncmp-dmi-registry', '/dmi-registry', '{"cm-handles":[{"id":"some-cm-handle-id",' + - '"additional-properties":[],"public-properties":[]}]}', null) - 1 * mockCpsAdminService.createAnchor('NFP-Operational', null, - 'some-cm-handle-id') + '"state":{"cm-handle-state":"ADVISED"},' + + '"additional-properties":[],"public-properties":[]}]}', null) } - def 'Execute cm handle id search'(){ + def 'Execute cm handle id search'() { given: 'valid CmHandleQueryApiParameters input' def cmHandleQueryApiParameters = new CmHandleQueryApiParameters() def conditionApiProperties = new ConditionApiProperties()