aboutsummaryrefslogtreecommitdiffstats
path: root/csit/resources/tests/api-test.robot
diff options
context:
space:
mode:
authorwaynedunican <wayne.dunican@est.tech>2023-02-24 08:44:58 +0000
committerWayne Dunican <wayne.dunican@est.tech>2023-02-27 08:49:19 +0000
commit36806ac304bac477a463b7eb9f8d3fb664c8b4e3 (patch)
tree6b493de6fda5b19739f2ac5f8dc22d5fc2f4644a /csit/resources/tests/api-test.robot
parent1f339f886d01c6d6ac5cfd6467850c61fee4f675 (diff)
Add SLA validations to API
Issue-ID: POLICY-4528 Change-Id: I517cb477bbccb36d5e2000b60450a2c015d4940b Signed-off-by: Wayne Dunican <wayne.dunican@est.tech>
Diffstat (limited to 'csit/resources/tests/api-test.robot')
-rw-r--r--csit/resources/tests/api-test.robot5
1 files changed, 5 insertions, 0 deletions
diff --git a/csit/resources/tests/api-test.robot b/csit/resources/tests/api-test.robot
index e8679a7f..f3c87de3 100644
--- a/csit/resources/tests/api-test.robot
+++ b/csit/resources/tests/api-test.robot
@@ -140,6 +140,11 @@ 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