diff options
author | emaclee <lee.anjella.macabuhay@est.tech> | 2025-01-21 11:16:04 +0000 |
---|---|---|
committer | emaclee <lee.anjella.macabuhay@est.tech> | 2025-01-22 06:19:25 +0000 |
commit | 33caaf123bd285237d28c12fbf54de212bfcda55 (patch) | |
tree | 92be7b2984853d1a1bb66a33f5a909c23c772b4c /cps-application/src/test/groovy | |
parent | 6fb1e85fd1cdb20cb8f64f81c188c29c0391ab2a (diff) |
Add 'Deleted' cm handle state for gauge
Issue-ID: CPS-2456
Change-Id: I2f7ff2dd18d164dbf685269fb2d2e47d08c3c5f5
Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech>
Diffstat (limited to 'cps-application/src/test/groovy')
-rw-r--r-- | cps-application/src/test/groovy/org/onap/cps/config/MicroMeterConfigSpec.groovy | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cps-application/src/test/groovy/org/onap/cps/config/MicroMeterConfigSpec.groovy b/cps-application/src/test/groovy/org/onap/cps/config/MicroMeterConfigSpec.groovy index 9cef8de4b7..fc8c670ebf 100644 --- a/cps-application/src/test/groovy/org/onap/cps/config/MicroMeterConfigSpec.groovy +++ b/cps-application/src/test/groovy/org/onap/cps/config/MicroMeterConfigSpec.groovy @@ -43,8 +43,9 @@ class MicroMeterConfigSpec extends Specification { objectUnderTest.readyCmHandles(simpleMeterRegistry) objectUnderTest.lockedCmHandles(simpleMeterRegistry) objectUnderTest.deletingCmHandles(simpleMeterRegistry) + objectUnderTest.deletedCmHandles(simpleMeterRegistry) then: 'each state has the correct value when queried' - ['ADVISED', 'READY', 'LOCKED', 'DELETING'].each { state -> + ['ADVISED', 'READY', 'LOCKED', 'DELETING', 'DELETED'].each { state -> def gaugeValue = simpleMeterRegistry.get('cmHandlesByState').tag('state',state).gauge().value() assert gaugeValue == 1 } |