aboutsummaryrefslogtreecommitdiffstats
path: root/csit/pap
diff options
context:
space:
mode:
authorRam Krishna Verma <ram_krishna.verma@bell.ca>2022-02-25 13:06:26 -0500
committerRam Krishna Verma <ram_krishna.verma@bell.ca>2022-02-25 13:06:32 -0500
commitfd15af9877a4fb6f46fc897b9ab31d2e5a639450 (patch)
tree810cac713ccf13d3f98fd2bfe48e95cdbd85fd11 /csit/pap
parentfce51e880cf80bea2c238e42c5b8d9608bdde859 (diff)
Add csit tests for pap metrics
Adding csit tests for applications level metrics exposed by pap component. Issue-ID: POLICY-3965 Change-Id: I50cd37941514d2d18809d29f4c5447434bd5b180 Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
Diffstat (limited to 'csit/pap')
-rw-r--r--csit/pap/tests/pap-test.robot7
1 files changed, 6 insertions, 1 deletions
diff --git a/csit/pap/tests/pap-test.robot b/csit/pap/tests/pap-test.robot
index a6d5d42d..9c020ee8 100644
--- a/csit/pap/tests/pap-test.robot
+++ b/csit/pap/tests/pap-test.robot
@@ -32,7 +32,12 @@ Metrics
[Documentation] Verify policy pap is exporting prometheus metrics
${auth}= PolicyAdminAuth
${resp}= GetMetrics ${POLICY_PAP_IP} ${auth}
- Should Contain ${resp.text} jvm_threads_live_threads
+ Should Contain ${resp.text} http_server_requests_seconds_count{exception="None",method="GET",outcome="SUCCESS",status="200",uri="/policy/pap/v1/healthcheck",} 1.0
+ Should Contain ${resp.text} http_server_requests_seconds_count{exception="None",method="GET",outcome="SUCCESS",status="200",uri="/policy/pap/v1/components/healthcheck",} 1.0
+ Should Contain ${resp.text} spring_data_repository_invocations_seconds_count{exception="None",method="save",repository="PdpGroupRepository",state="SUCCESS",} 1.0
+ Should Contain ${resp.text} spring_data_repository_invocations_seconds_count{exception="None",method="findByKeyName",repository="PdpGroupRepository",state="SUCCESS",} 1.0
+ Should Contain ${resp.text} spring_data_repository_invocations_seconds_count{exception="None",method="findAll",repository="PdpGroupRepository",state="SUCCESS",} 1.0
+ Should Contain ${resp.text} spring_data_repository_invocations_seconds_count{exception="None",method="findAll",repository="PolicyStatusRepository",state="SUCCESS",} 1.0
Statistics
[Documentation] Verify policy pap statistics