diff options
author | Toine Siebelink <toine.siebelink@est.tech> | 2022-06-09 16:08:18 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2022-06-09 16:08:18 +0000 |
commit | d6d8c200c02e417a232af556a022c8f24d09ac1b (patch) | |
tree | e9bc645074193ec59828e42d3c2d90958357a19a /cps-ncmp-service/src/test/groovy | |
parent | 96f59e3fd14cdd81e58537b647aa3dd001e3c4cc (diff) | |
parent | 2beebc64abb031ee98578ad2431ec2c0ca521567 (diff) |
Merge "Handle errors during cm handle search"
Diffstat (limited to 'cps-ncmp-service/src/test/groovy')
-rw-r--r-- | cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/api/impl/NetworkCmProxyDataServiceImplSpec.groovy | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git 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 index c70e7bef03..6ba2a2c276 100644 --- 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 @@ -244,21 +244,21 @@ class NetworkCmProxyDataServiceImplSpec extends Specification { + '"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() conditionApiProperties.conditionName = 'hasAllModules' - conditionApiProperties.conditionParameters = [[moduleName:'module-name-1']] + conditionApiProperties.conditionParameters = [[moduleName: 'module-name-1']] cmHandleQueryApiParameters.cmHandleQueryParameters = [conditionApiProperties] and: 'valid CmHandleQueryParameters input' def cmHandleQueryParameters = new CmHandleQueryParameters() def conditionProperties = new ConditionProperties() conditionProperties.conditionName = 'hasAllModules' - conditionProperties.conditionParameters = [[moduleName:'module-name-1']] + conditionProperties.conditionParameters = [[moduleName: 'module-name-1']] cmHandleQueryParameters.cmHandleQueryParameters = [conditionProperties] and: 'query cm handle method return with a data node list' - mockCpsCmHandlerQueryService.queryCmHandles(cmHandleQueryParameters) >> [ new DataNode(leaves: [id:'cm-handle-id-1'] )] + mockCpsCmHandlerQueryService.queryCmHandles(cmHandleQueryParameters) >> [new DataNode(leaves: [id: 'cm-handle-id-1'])] when: 'execute cm handle search is called' def result = objectUnderTest.executeCmHandleIdSearch(cmHandleQueryApiParameters) then: 'result is the same collection as returned by the CPS Data Service' |