Fix intermittent failure in metrics test 27/127127/2
authorrameshiyer27 <ramesh.murugan.iyer@est.tech>
Tue, 15 Feb 2022 09:29:32 +0000 (09:29 +0000)
committerRamesh Murugan Iyer <ramesh.murugan.iyer@est.tech>
Tue, 15 Feb 2022 10:49:02 +0000 (10:49 +0000)
commit4a9a11e170ebcc47ef20f7055184ce66f7994415
treef687956d986339aa1ecc476f545db3cc262c1e6d
parente9d1d70a203d06c3f0e4695c3710b527b0a6eab3
Fix intermittent failure in metrics test

When the registry is cleared, it removes the Prometheus counters that
are initialized by static definition causing the metrics test to fail.
This issue occurs when this test is not invoked first in the order of
test execution in feature-lifecycle.

Issue-ID: POLICY-3832
Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech>
Change-Id: I9a55910bc39dbe1ad9f1153809bdf78bac3040b1
feature-lifecycle/src/test/java/org/onap/policy/drools/server/restful/RestLifecycleManagerTest.java