From 1153b6d0153344d4d92518d2ca73ecfe71dfa9d9 Mon Sep 17 00:00:00 2001 From: "adheli.tavares" Date: Tue, 28 Feb 2023 12:59:37 +0000 Subject: New Test Development - api, pap (except consolidated HC), apex and acm runtime passing on both docker and helm environment - other simulators exposed on simulator service - topics are checked on test with robot http support - apex temp engine port exposed - xacml readiness added Issue-ID: POLICY-4125 Change-Id: I39ee8c38e70dd3a4ad26ba69d7c62e61a211469e Signed-off-by: adheli.tavares --- csit/resources/tests/xacml-pdp-test.robot | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'csit/resources/tests/xacml-pdp-test.robot') diff --git a/csit/resources/tests/xacml-pdp-test.robot b/csit/resources/tests/xacml-pdp-test.robot index 1ba01531..f90d0c21 100644 --- a/csit/resources/tests/xacml-pdp-test.robot +++ b/csit/resources/tests/xacml-pdp-test.robot @@ -24,8 +24,7 @@ Metrics MakeTopics [Documentation] Creates the Policy topics - ${result}= Run Process ${CURDIR}/data/make_topic.sh POLICY-PDP-PAP - Should Be Equal As Integers ${result.rc} 0 + GetTopic POLICY-PDP-PAP ExecuteXacmlPolicy CreateMonitorPolicy @@ -65,9 +64,12 @@ DeployPolicies ${postjson}= Get file ${CURDIR}/data/vCPE.policy.input.tosca.deploy.json ${policyadmin}= PolicyAdminAuth PerformPostRequest ${POLICY_PAP_IP} /policy/pap/v1/pdps/policies 202 ${postjson} null ${policyadmin} - ${result}= Run Process ${CURDIR}/data/wait_topic.sh POLICY-PDP-PAP - ... responseTo xacml ACTIVE onap.restart.tca - Should Be Equal As Integers ${result.rc} 0 + ${result}= CheckTopic POLICY-PDP-PAP PDP_UPDATE + Sleep 5s + ${result}= CheckTopic POLICY-PDP-PAP ACTIVE + Should Contain ${result} responseTo + Should Contain ${result} xacml + Should Contain ${result} onap.restart.tca GetStatisticsAfterDeployed [Documentation] Verify policy xacml-pdp statistics after policy is deployed @@ -139,12 +141,12 @@ GetStatisticsAfterUndeploy PdpxGetReq [Arguments] ${url} - ${hcauth}= HealthCheckAuth + ${hcauth}= PolicyAdminAuth ${resp}= PerformGetRequest ${POLICY_PDPX_IP} ${url} 200 null ${hcauth} [return] ${resp} DecisionPostReq [Arguments] ${postjson} ${abbr} - ${hcauth}= HealthCheckAuth + ${hcauth}= PolicyAdminAuth ${resp}= PerformPostRequest ${POLICY_PDPX_IP} /policy/pdpx/v1/decision 200 ${postjson} ${abbr} ${hcauth} [return] ${resp} -- cgit 1.2.3-korg