X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=cps-ncmp-service%2Fsrc%2Ftest%2Fgroovy%2Forg%2Fonap%2Fcps%2Fncmp%2Fapi%2Finventory%2Fsync%2FModuleSyncSpec.groovy;h=8752bff5824d4a4a0351106d9416dc30ef53d507;hb=40a8211b8f8f4b244b43620776a71371bc5371d6;hp=802035c7266e77245c716f1df3e98bd30ed7471b;hpb=31cf29d21096ab7200658f586ecb9e40ee72249e;p=cps.git diff --git a/cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/api/inventory/sync/ModuleSyncSpec.groovy b/cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/api/inventory/sync/ModuleSyncSpec.groovy index 802035c72..8752bff58 100644 --- a/cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/api/inventory/sync/ModuleSyncSpec.groovy +++ b/cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/api/inventory/sync/ModuleSyncSpec.groovy @@ -106,7 +106,7 @@ class ModuleSyncSpec extends Specification { .withLockReason(LockReasonCategory.LOCKED_MISBEHAVING, '').build() def yangModelCmHandle = new YangModelCmHandle(id: 'some-cm-handle', compositeState: compositeState) and: 'sync utilities return a cm handle twice' - mockSyncUtils.getLockedMisbehavingCmHandles() >> [yangModelCmHandle, yangModelCmHandle] + mockSyncUtils.getLockedMisbehavingYangModelCmHandles() >> [yangModelCmHandle, yangModelCmHandle] when: 'module sync poll is executed' objectUnderTest.executeLockedMisbehavingCmHandlePoll() then: 'the first cm handle is updated to state "ADVISED" from "READY"'