aboutsummaryrefslogtreecommitdiffstats
path: root/csit/resources/tests
diff options
context:
space:
mode:
Diffstat (limited to 'csit/resources/tests')
-rw-r--r--csit/resources/tests/clamp-slas.robot57
1 files changed, 57 insertions, 0 deletions
diff --git a/csit/resources/tests/clamp-slas.robot b/csit/resources/tests/clamp-slas.robot
new file mode 100644
index 00000000..71656e4e
--- /dev/null
+++ b/csit/resources/tests/clamp-slas.robot
@@ -0,0 +1,57 @@
+*** Settings ***
+Library Collections
+Library RequestsLibrary
+Library OperatingSystem
+Library json
+Resource ${CURDIR}/common-library.robot
+
+*** Keywords ***
+ValidateResponseTimeForClamp
+ [Arguments] ${uri} ${method}
+ [Documentation] Check if uri response is under the 1500ms required time for clamp metrics
+ ValidateResponseTime acm-metrics ${uri} ${method} 1500
+
+*** Test Cases ***
+WaitForPrometheusServer
+ [Documentation] Sleep time to wait for Prometheus server to gather all metrics
+ Sleep 1 minute
+
+ValidateResponseTimeForHealthcheck
+ [Documentation] Validate component healthcheck response time
+ ValidateResponseTimeForClamp /health GET
+
+ValidateResponseTimeQueryAcDefinition
+ [Documentation] Validate query AC Definitions response time
+ ValidateResponseTimeForClamp /v2/compositions/{compositionId} GET
+
+ValidateResponseTimeQueryAcInstance
+ [Documentation] Validate query AC instance response time
+ ValidateResponseTimeForClamp /v2/compositions/{compositionId}/instances/{instanceId} GET
+
+ValidateResponseTimeQueryAcInstances
+ [Documentation] Validate query all AC instances response time
+ ValidateResponseTimeForClamp /v2/compositions/{compositionId}/instances GET
+
+ValidateResponseTimeStateChange
+ [Documentation] Validate AC instance StateChange response time
+ ValidateResponseTimeForClamp /v2/compositions/{compositionId}/instances/{instanceId} PUT
+
+ValidateResponseTimeCallParticipants
+ [Documentation] Validate call AC participants response time
+ ValidateResponseTimeForClamp /v2/participants PUT
+
+ValidateResponseTimeCommissioning
+ [Documentation] Validate commission AC Definitions response time
+ ValidateResponseTimeForClamp /v2/compositions POST
+
+ValidateResponseTimeInstantiation
+ [Documentation] Validate create AC Instance response time
+ ValidateResponseTimeForClamp /v2/compositions/{compositionId}/instances POST
+
+ValidateResponseTimeDeleteInstance
+ [Documentation] Validate delete AC Instance response time
+ ValidateResponseTimeForClamp /v2/compositions/{compositionId}/instances/{instanceId} DELETE
+
+ValidateResponseTimeDeleteDefinition
+ [Documentation] Validate delete AC Definition response time
+ ValidateResponseTimeForClamp /v2/compositions/{compositionId} DELETE \ No newline at end of file