diff options
author | Ram Krishna Verma <ram_krishna.verma@bell.ca> | 2023-08-07 15:40:30 -0400 |
---|---|---|
committer | Ram Krishna Verma <ram_krishna.verma@bell.ca> | 2023-08-07 15:40:35 -0400 |
commit | 88b6b1fe6db0c107362670520b8437b1e163eec4 (patch) | |
tree | 131b41a76719d29db86d20f2b0e44f7d85059744 /main/src/test/java | |
parent | 430e73f45e65f78f7d85a9c43cfe178886b5bfa6 (diff) |
Remove db based statistics from xacml-pdp
Removing the db based statistics from xacml-pdp,
in favour of the prometheus based option.
Issue-ID: POLICY-4109
Change-Id: Ibd2dfe27aa53fc486585d182985cf743801a1de7
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
Diffstat (limited to 'main/src/test/java')
-rw-r--r-- | main/src/test/java/org/onap/policy/pdpx/main/XacmlStateTest.java | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/main/src/test/java/org/onap/policy/pdpx/main/XacmlStateTest.java b/main/src/test/java/org/onap/policy/pdpx/main/XacmlStateTest.java index a1f1b8a7..a16f3a8f 100644 --- a/main/src/test/java/org/onap/policy/pdpx/main/XacmlStateTest.java +++ b/main/src/test/java/org/onap/policy/pdpx/main/XacmlStateTest.java @@ -42,7 +42,6 @@ import org.mockito.junit.MockitoJUnitRunner; import org.onap.policy.common.endpoints.event.comm.client.TopicSinkClient; import org.onap.policy.models.pdp.concepts.PdpResponseDetails; import org.onap.policy.models.pdp.concepts.PdpStateChange; -import org.onap.policy.models.pdp.concepts.PdpStatistics; import org.onap.policy.models.pdp.concepts.PdpStatus; import org.onap.policy.models.pdp.concepts.PdpUpdate; import org.onap.policy.models.pdp.enums.PdpHealthStatus; @@ -132,26 +131,6 @@ public class XacmlStateTest { TopicSinkClient client = Mockito.mock(TopicSinkClient.class); XacmlPdpUpdatePublisher publisher = new XacmlPdpUpdatePublisher(client, state, appmgr); publisher.handlePdpUpdate(message); - - PdpStatistics stats = state.getStatistics(); - assertNotNull(stats); - assertEquals(GROUP, stats.getPdpGroupName()); - assertEquals(1, stats.getPolicyDeployCount()); - assertEquals(1, stats.getPolicyDeploySuccessCount()); - assertEquals(0, stats.getPolicyDeployFailCount()); - assertEquals(1, stats.getPolicyUndeployCount()); - assertEquals(1, stats.getPolicyUndeployFailCount()); - assertEquals(0, stats.getPolicyUndeploySuccessCount()); - - PdpStatistics test = new PdpStatistics(); - test.setTimeStamp(stats.getTimeStamp()); - test.setPdpGroupName(GROUP); - test.setPolicyDeployCount(1); - test.setPolicyDeploySuccessCount(1); - test.setPolicyUndeployCount(1); - test.setPolicyUndeployFailCount(1); - - assertEquals(stats.toString(), test.toString()); } @Test |