diff options
author | Ram Krishna Verma <ram_krishna.verma@bell.ca> | 2023-07-12 12:03:55 -0400 |
---|---|---|
committer | Ram Krishna Verma <ram_krishna.verma@bell.ca> | 2023-07-12 12:04:04 -0400 |
commit | 0fbd752b37e66a06fe419ba7d607d786f5bf8582 (patch) | |
tree | 7d3e9697bdcaf059b8cd1d156a2e3763db1e2850 /csit/resources/tests/xacml-pdp-test.robot | |
parent | bdced49a2f16f1787088aa4f1013d8a07be51ec4 (diff) |
Remove statistics from csit tests
Removing the db based statistics tests from csit first,
so that later when we remove the actual code from repos
the builds are not affected.
Issue-ID: POLICY-4109
Change-Id: If21ffe93f000e605e4f7690cfc4e7986346fe67f
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
Diffstat (limited to 'csit/resources/tests/xacml-pdp-test.robot')
-rw-r--r-- | csit/resources/tests/xacml-pdp-test.robot | 29 |
1 files changed, 1 insertions, 28 deletions
diff --git a/csit/resources/tests/xacml-pdp-test.robot b/csit/resources/tests/xacml-pdp-test.robot index f90d0c21..331a7fa5 100644 --- a/csit/resources/tests/xacml-pdp-test.robot +++ b/csit/resources/tests/xacml-pdp-test.robot @@ -12,11 +12,6 @@ Healthcheck ${resp}= PdpxGetReq /policy/pdpx/v1/healthcheck Should Be Equal As Strings ${resp.json()['code']} 200 -Statistics - [Documentation] Verify policy xacml-pdp statistics - ${resp}= PdpxGetReq /policy/pdpx/v1/statistics - Should Be Equal As Strings ${resp.json()['code']} 200 - Metrics [Documentation] Verify policy-xacml-pdp is exporting prometheus metrics ${resp}= PdpxGetReq /metrics @@ -31,14 +26,11 @@ ExecuteXacmlPolicy CreateOptimizationPolicy Wait Until Keyword Succeeds 1 min 15 sec GetDefaultDecision DeployPolicies - Wait Until Keyword Succeeds 1 min 15 sec GetStatisticsAfterDeployed Wait Until Keyword Succeeds 1 min 15 sec GetAbbreviatedDecisionResult Wait Until Keyword Succeeds 1 min 15 sec GetMonitoringDecision Wait Until Keyword Succeeds 1 min 15 sec GetNamingDecision Wait Until Keyword Succeeds 1 min 15 sec GetOptimizationDecision - Wait Until Keyword Succeeds 1 min 15 sec GetStatisticsAfterDecision UndeployMonitorPolicy - Wait Until Keyword Succeeds 1 min 15 sec GetStatisticsAfterUndeploy *** Keywords *** @@ -68,15 +60,9 @@ DeployPolicies Sleep 5s ${result}= CheckTopic POLICY-PDP-PAP ACTIVE Should Contain ${result} responseTo - Should Contain ${result} xacml + Should Contain ${result} xacml Should Contain ${result} onap.restart.tca -GetStatisticsAfterDeployed - [Documentation] Verify policy xacml-pdp statistics after policy is deployed - ${resp}= PdpxGetReq /policy/pdpx/v1/statistics - Should Be Equal As Strings ${resp.json()['code']} 200 - Should Be Equal As Strings ${resp.json()['totalPoliciesCount']} 3 - GetAbbreviatedDecisionResult [Documentation] Get Decision with abbreviated results from Policy Xacml PDP ${postjson}= Get file ${CURDIR}/data/onap.policy.monitoring.decision.request.json @@ -121,24 +107,11 @@ GetOptimizationDecision Dictionary Should Contain Key ${policy} properties Dictionary Should Contain Key ${policy} name -GetStatisticsAfterDecision - [Documentation] Runs Policy Xacml PDP Statistics after Decision request - ${resp}= PdpxGetReq /policy/pdpx/v1/statistics - Should Be Equal As Strings ${resp.json()['code']} 200 - Should Be Equal As Strings ${resp.json()['permitDecisionsCount']} 4 - Should Be Equal As Strings ${resp.json()['notApplicableDecisionsCount']} 1 - UndeployMonitorPolicy [Documentation] Runs Policy PAP to undeploy a policy ${policyadmin}= PolicyAdminAuth PerformDeleteRequest ${POLICY_PAP_IP} /policy/pap/v1/pdps/policies/onap.restart.tca 202 ${policyadmin} -GetStatisticsAfterUndeploy - [Documentation] Runs Policy Xacml PDP Statistics after policy is undeployed - ${resp}= PdpxGetReq /policy/pdpx/v1/statistics - Should Be Equal As Strings ${resp.json()['code']} 200 - Should Be Equal As Strings ${resp.json()['totalPoliciesCount']} 2 - PdpxGetReq [Arguments] ${url} ${hcauth}= PolicyAdminAuth |