From 36806ac304bac477a463b7eb9f8d3fb664c8b4e3 Mon Sep 17 00:00:00 2001 From: waynedunican Date: Fri, 24 Feb 2023 08:44:58 +0000 Subject: Add SLA validations to API Issue-ID: POLICY-4528 Change-Id: I517cb477bbccb36d5e2000b60450a2c015d4940b Signed-off-by: Wayne Dunican --- csit/resources/tests/api-test.robot | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'csit/resources/tests/api-test.robot') 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 -- cgit 1.2.3-korg