summaryrefslogtreecommitdiffstats
path: root/csit/resources/tests/xacml-pdp-test.robot
diff options
context:
space:
mode:
authoradheli.tavares <adheli.tavares@est.tech>2023-02-28 12:59:37 +0000
committeradheli.tavares <adheli.tavares@est.tech>2023-03-01 10:56:01 +0000
commit1153b6d0153344d4d92518d2ca73ecfe71dfa9d9 (patch)
tree019fcc478bc3cda85d28ed960926a4729d0ff782 /csit/resources/tests/xacml-pdp-test.robot
parentfde3ffa6e508ae30945c8f2fefbf941bf6d42074 (diff)
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 <adheli.tavares@est.tech>
Diffstat (limited to 'csit/resources/tests/xacml-pdp-test.robot')
-rw-r--r--csit/resources/tests/xacml-pdp-test.robot16
1 files changed, 9 insertions, 7 deletions
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}