diff options
author | Adheli Tavares <adheli.tavares@est.tech> | 2024-08-22 07:58:54 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2024-08-22 07:58:54 +0000 |
commit | 10cf66cdd2cca12dad9f299714e6294ae35752a7 (patch) | |
tree | d5c2e2d2d4d74ca8bab8cb7f7c1c8749be3e2edc /csit/resources/tests | |
parent | 9be897bbafbcf1db9ab3b7a3211ac8a554d87d69 (diff) | |
parent | 3397d84da23add5b773bacf41c032d3a8d31734d (diff) |
Merge "Add slas tests for clamp"
Diffstat (limited to 'csit/resources/tests')
-rw-r--r-- | csit/resources/tests/clamp-slas.robot | 57 |
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 |