diff options
author | 2024-12-19 12:25:56 +0000 | |
---|---|---|
committer | 2024-12-19 12:38:30 +0000 | |
commit | d685629338dedb4d3333c20e04b933aaeca2bcfb (patch) | |
tree | 71cd4c7a7267e69de403fb48f5151daab36f2ef6 /cps-ncmp-service/src/test | |
parent | 40578d56733247540a09b6bbf000181b46b5c1fc (diff) |
Remove check before removing from hazelcast cache
Issue-ID: CPS-2420
Change-Id: I2299d5790792f7c2b2b1a6aa371b5ea43c6a9ee8
Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech>
Diffstat (limited to 'cps-ncmp-service/src/test')
-rw-r--r-- | cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/impl/inventory/sync/ModuleSyncTasksSpec.groovy | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/impl/inventory/sync/ModuleSyncTasksSpec.groovy b/cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/impl/inventory/sync/ModuleSyncTasksSpec.groovy index 02d50c2cf0..c7fe45db90 100644 --- a/cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/impl/inventory/sync/ModuleSyncTasksSpec.groovy +++ b/cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/impl/inventory/sync/ModuleSyncTasksSpec.groovy @@ -214,18 +214,6 @@ class ModuleSyncTasksSpec extends Specification { 'module upgrade failed' | MODULE_UPGRADE_FAILED } - - def 'Remove non-existing cm handle id from hazelcast map'() { - given: 'hazelcast map does not contains cm handle id' - def result = moduleSyncStartedOnCmHandles.get('non-existing-cm-handle') - assert result == null - when: 'remove cm handle entry from hazelcast map' - objectUnderTest.removeResetCmHandleFromModuleSyncMap('non-existing-cm-handle') - then: 'no event is logged' - def loggingEvent = getLoggingEvent() - assert loggingEvent == null - } - def cmHandleByIdAndState(cmHandleId, cmHandleState) { return new YangModelCmHandle(id: cmHandleId, compositeState: new CompositeState(cmHandleState: cmHandleState)) } |