summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLiam Fallon <liam.fallon@est.tech>2023-03-14 09:34:53 +0000
committerGerrit Code Review <gerrit@onap.org>2023-03-14 09:34:53 +0000
commitc91eba2363b0abf7b51563cddf8d88e36aa8274d (patch)
tree193f04638f97b0ac28bca118c509346f44fcd563
parent0ca3863f2bf33a8271ae1728d6f62dc3583bf0fa (diff)
parentf636d7f0a256750c3476f8df1720f0a6358296aa (diff)
Merge "Add SLA Validations for API"
-rw-r--r--csit/resources/tests/api-slas.robot13
-rw-r--r--csit/resources/tests/api-test.robot5
2 files changed, 11 insertions, 7 deletions
diff --git a/csit/resources/tests/api-slas.robot b/csit/resources/tests/api-slas.robot
index c5feb728..717ac3d7 100644
--- a/csit/resources/tests/api-slas.robot
+++ b/csit/resources/tests/api-slas.robot
@@ -28,9 +28,14 @@ ValidateResponseTimeQueryPolicies
[Documentation] Validate query policies response time
ValidateResponseTimeForApi /policies GET
+ValidateResponseTimeQueryPolicyTypeListVersions
+ [Documentation] Validate query policyType versions response time
+ ValidateResponseTime api-metrics /policytypes/{policyTypeId} GET 400
+
+#Time increased from 200 to 250 due to slow ONAP machines
ValidateResponseTimeQueryPolicyVersion
[Documentation] Validate query policy by version response time
- ValidateResponseTimeForApi /policies/{policyId}/versions/{policyVersion} GET
+ ValidateResponseTime api-metrics /policies/{policyId}/versions/{policyVersion} GET 250
ValidateResponseTimeCreatePolicy
[Documentation] Validate response time for creating a policy
@@ -42,4 +47,8 @@ ValidateResponseTimeCreatePolicyType
ValidateResponseTimeDeletePolicy
[Documentation] Validate response time for deletion of policies
- ValidateResponseTimeForApi /policies/{policyId}/versions/{policyVersion} DELETE \ No newline at end of file
+ ValidateResponseTimeForApi /policies/{policyId}/versions/{policyVersion} DELETE
+
+ValidateResponseTimeDeletePolicyType
+ [Documentation] Validate response time for deletion of policyTypes
+ ValidateResponseTimeForApi /policytypes/{policyTypeId}/versions/{versionId} DELETE
diff --git a/csit/resources/tests/api-test.robot b/csit/resources/tests/api-test.robot
index f3c87de3..e8679a7f 100644
--- a/csit/resources/tests/api-test.robot
+++ b/csit/resources/tests/api-test.robot
@@ -140,11 +140,6 @@ GetReq
${resp}= PerformGetRequest ${POLICY_API_IP} ${url} 200 null ${auth}
[return] ${resp}
-ValidateResponseTimeForApi
- [Arguments] ${url} ${method}
- [Documentation] Check if url response is under required time for api metrics
- ValidateResponseTime api-metrics ${url} ${method} 500
-
DeleteReq
[Arguments] ${url} ${expectedstatus}
${auth}= PolicyAdminAuth