aboutsummaryrefslogtreecommitdiffstats
path: root/csit/resources/tests/drools-applications-slas.robot
diff options
context:
space:
mode:
authorrameshiyer27 <ramesh.murugan.iyer@est.tech>2024-10-01 15:19:25 +0100
committerrameshiyer27 <ramesh.murugan.iyer@est.tech>2024-10-07 13:38:08 +0100
commit630801cc4e866ae4c2fb375df06df91c054962d8 (patch)
tree3a8de9af40593ca57e0a64e7c8f10966ec106560 /csit/resources/tests/drools-applications-slas.robot
parent3893fda035d2be48f3a518e508ac941a29498d63 (diff)
Add slas test for drools-apps and xacml-pdp
Issue-ID: POLICY-5126 Change-Id: I989a3870e021a9054d7d39b83cefb626ac6fe52f Signed-off-by: rameshiyer27 <ramesh.murugan.iyer@est.tech>
Diffstat (limited to 'csit/resources/tests/drools-applications-slas.robot')
-rw-r--r--csit/resources/tests/drools-applications-slas.robot14
1 files changed, 14 insertions, 0 deletions
diff --git a/csit/resources/tests/drools-applications-slas.robot b/csit/resources/tests/drools-applications-slas.robot
new file mode 100644
index 00000000..a153925d
--- /dev/null
+++ b/csit/resources/tests/drools-applications-slas.robot
@@ -0,0 +1,14 @@
+*** Settings ***
+Library OperatingSystem
+Resource common-library.robot
+
+*** Test Cases ***
+WaitForPrometheusServer
+ [Documentation] Sleep time to wait for Prometheus server to gather all metrics
+ Sleep 1 minute
+
+ValidatePolicyExecutionTimes
+ [Documentation] Validate policy execution times using prometheus metrics
+ ValidatePolicyExecution pdpd_policy_executions_latency_seconds_count{controller="usecases",controlloop="ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3",policy="operational.scaleout:1.0.0",status="SUCCESS", instance="policy-drools-apps:9696", job="drools-apps-metrics"} 1000
+ ValidatePolicyExecution pdpd_policy_deployments_total{state="ACTIVE",operation="deploy",status="SUCCESS", instance="policy-drools-apps:9696", job="drools-apps-metrics"} 3000
+