aboutsummaryrefslogtreecommitdiffstats
path: root/cps-application/src/test
diff options
context:
space:
mode:
authoremaclee <lee.anjella.macabuhay@est.tech>2025-01-12 12:39:55 +0000
committeremaclee <lee.anjella.macabuhay@est.tech>2025-01-16 15:28:15 +0000
commite0ea27a6e0902a4bff75ae5cd4b6025ee0d40a1c (patch)
tree80623f25990b8b2043c7e5690c1f96ba954da8a7 /cps-application/src/test
parentecfff5cb108e9679ee155a45becaa36a7e9c9059 (diff)
Handle restart case for cps-ncmp gauge metrics
Issue-ID: CPS-2456 Change-Id: I9ac5d6774fcd745d8141551eeff8a1deb1938f57 Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech>
Diffstat (limited to 'cps-application/src/test')
-rw-r--r--cps-application/src/test/groovy/org/onap/cps/config/MicroMeterConfigSpec.groovy3
1 files changed, 1 insertions, 2 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 67ca64624a..da3afc6f2c 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,9 +43,8 @@ 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'
- def states = ["ADVISED", "READY", "LOCKED", "DELETING", "DELETED"]
+ def states = ["ADVISED", "READY", "LOCKED", "DELETING"]
states.each { state ->
def gaugeValue = simpleMeterRegistry.get("cmHandlesByState").tag("state",state).gauge().value()
assert gaugeValue == 1