diff options
author | waynedunican <wayne.dunican@est.tech> | 2023-03-02 09:12:44 +0000 |
---|---|---|
committer | waynedunican <wayne.dunican@est.tech> | 2023-03-13 07:58:05 +0000 |
commit | f636d7f0a256750c3476f8df1720f0a6358296aa (patch) | |
tree | f36585bff41132de3b9b6070ebe8e1706e3e3d4f | |
parent | 6f8e0a9588483cf4f7abd231c704f7fd84070147 (diff) |
Add SLA Validations for API
- Add tests for querying policies/policyTypes by version/id
- Add tests for deletion of policies/policyTypes
- Update expected response time
Issue-ID: POLICY-4528
Change-Id: I393383ef8771274501509ee9b3073b3a0ef01b38
Signed-off-by: Wayne Dunican <wayne.dunican@est.tech>
-rw-r--r-- | csit/resources/tests/api-slas.robot | 13 | ||||
-rw-r--r-- | csit/resources/tests/api-test.robot | 5 |
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 |