summaryrefslogtreecommitdiffstats
path: root/csit
diff options
context:
space:
mode:
authorRam Krishna Verma <ram_krishna.verma@bell.ca>2022-01-24 16:53:04 -0500
committerRam Krishna Verma <ram_krishna.verma@bell.ca>2022-01-24 16:53:12 -0500
commit179237337ae53f0a2df5ba24e865a668340e0da0 (patch)
treed54f7e78cd08884c7b1882ec6caed83f63199957 /csit
parent9d1d00e3dadf14ca19b56bd3ab9566d35c350064 (diff)
Add testcase for app metrics exposed by distribution
Adding testcases to verify the application level metrics exposed by policy-distribution component. Issue-ID: POLICY-3759 Change-Id: I3cbc36011c358dc9f52aa01c663eb8ff02a6323a Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
Diffstat (limited to 'csit')
-rw-r--r--csit/distribution/tests/distribution-test.robot18
1 files changed, 17 insertions, 1 deletions
diff --git a/csit/distribution/tests/distribution-test.robot b/csit/distribution/tests/distribution-test.robot
index 8bf4b84d..c283f668 100644
--- a/csit/distribution/tests/distribution-test.robot
+++ b/csit/distribution/tests/distribution-test.robot
@@ -23,11 +23,27 @@ Metrics
[Documentation] Verify policy-distribution is exporting prometheus metrics
${hcauth}= HealthCheckAuth
${resp}= PerformGetRequest ${POLICY_DISTRIBUTION_IP} /metrics 200 null ${hcauth}
- Should Contain ${resp.text} jvm_threads_current
+ Should Contain ${resp.text} total_distribution_received_count_total 0.0
+ Should Contain ${resp.text} distribution_success_count_total 0.0
+ Should Contain ${resp.text} distribution_failure_count_total 0.0
+ Should Contain ${resp.text} total_download_received_count_total 0.0
+ Should Contain ${resp.text} download_success_count_total 0.0
+ Should Contain ${resp.text} download_failure_count_total 0.0
InvokeDistributionAndRunEventOnEngine
Wait Until Keyword Succeeds 5 min 30 sec InvokeDistributionUsingFile And RunEventOnApexEngine
+MetricsAfterExecution
+ [Documentation] Verify policy-distribution is exporting prometheus metrics after execution
+ ${hcauth}= HealthCheckAuth
+ ${resp}= PerformGetRequest ${POLICY_DISTRIBUTION_IP} /metrics 200 null ${hcauth}
+ Should Contain ${resp.text} total_distribution_received_count_total 1.0
+ Should Contain ${resp.text} distribution_success_count_total 1.0
+ Should Contain ${resp.text} distribution_failure_count_total 0.0
+ Should Contain ${resp.text} total_download_received_count_total 1.0
+ Should Contain ${resp.text} download_success_count_total 1.0
+ Should Contain ${resp.text} download_failure_count_total 0.0
+
*** Keywords ***
InvokeDistributionUsingFile And RunEventOnApexEngine