diff options
author | adheli.tavares <adheli.tavares@est.tech> | 2024-05-30 10:17:05 +0100 |
---|---|---|
committer | adheli.tavares <adheli.tavares@est.tech> | 2024-05-30 10:21:07 +0100 |
commit | 2ac4b6c7e56b0ed3a9fabca1c2123e3b89f27d65 (patch) | |
tree | c376503aa62f3cedad537e6013e29521c44f6610 /csit/resources/tests/pap-test.robot | |
parent | b564b01e9de12c5a20d65f5dd3060f6472ebe275 (diff) |
Fix timeout in pap CSIT for auditing undeploys
Issue-ID: POLICY-4494
Change-Id: I04337ad3314770aa9870aa1779161023745699e0
Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
Diffstat (limited to 'csit/resources/tests/pap-test.robot')
-rw-r--r-- | csit/resources/tests/pap-test.robot | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/csit/resources/tests/pap-test.robot b/csit/resources/tests/pap-test.robot index cd02e3ab..13bf16ed 100644 --- a/csit/resources/tests/pap-test.robot +++ b/csit/resources/tests/pap-test.robot @@ -12,17 +12,8 @@ GetReq ${resp}= PerformGetRequest ${POLICY_PAP_IP} ${url} 200 null ${auth} RETURN ${resp} -ValidateResponseTimeForPap - [Arguments] ${uri} ${method} - [Documentation] Check if uri response is under the required time for pap metrics - ValidateResponseTime pap-metrics ${uri} ${method} 500 - -ValidateDeploymentTime - [Documentation] Check if deployment of policy is under 2000ms - ${resp}= QueryPrometheus pap_policy_deployments_seconds_sum{operation="deploy",status="SUCCESS"}/pap_policy_deployments_seconds_count{operation="deploy",status="SUCCESS"} - ${rawNumber}= Evaluate ${resp['data']['result'][0]['value'][1]} - ${actualTime}= Set Variable ${rawNumber * ${1000}} - Should Be True ${actualTime} <= ${2000} +CheckUndeploymentStatus + QueryPolicyAudit /policy/pap/v1/policies/audit 200 testGroup pdpTypeA onap.restart.tca UNDEPLOYMENT *** Test Cases *** LoadPolicy @@ -114,8 +105,7 @@ QueryPdpGroupsAfterUndeploy QueryPolicyAuditAfterUnDeploy [Documentation] Verify policy audit record after undeploy - Sleep 20 seconds - QueryPolicyAudit /policy/pap/v1/policies/audit 200 testGroup pdpTypeA onap.restart.tca UNDEPLOYMENT + Wait Until Keyword Succeeds 2 min 10 sec CheckUndeploymentStatus QueryPolicyAuditWithMetadataSetAfterUnDeploy [Documentation] Verify policy audit record after undeploy |