Check exit status of wait_topic in xacml-pdp CSIT 86/122586/1
authorJim Hahn <jrh3@att.com>
Mon, 12 Jul 2021 19:07:33 +0000 (15:07 -0400)
committerJim Hahn <jrh3@att.com>
Mon, 12 Jul 2021 19:08:56 +0000 (15:08 -0400)
Added code to the xacml-pdp robot script to check the exit status of
wait_topic, to ensure that it succeeded.

Issue-ID: POLICY-3473
Change-Id: Ie47bb861cd331c42aa5ae4f91c38a259796be842
Signed-off-by: Jim Hahn <jrh3@att.com>
csit/xacml-pdp/plans/setup.sh
csit/xacml-pdp/tests/xacml-pdp-test.robot

index 23ebf6f..718d512 100644 (file)
@@ -39,6 +39,8 @@ POLICY_PDPX_IP=`get-instance-ip.sh policy-xacml-pdp`
 SIM_IP=`get-instance-ip.sh simulator`
 POLICY_PAP_IP=`get-instance-ip.sh policy-pap`
 
+export SIM_IP
+
 echo PDP IP IS ${POLICY_PDPX_IP}
 echo API IP IS ${POLICY_API_IP}
 echo PAP IP IS ${POLICY_PAP_IP}
index e19e004..c88959d 100644 (file)
@@ -54,9 +54,9 @@ GetDefaultDecision
 DeployPolicies
      [Documentation]   Runs Policy PAP to deploy a policy
      ${resp}=  PerformPostRequest  /policy/pap/v1/pdps/policies  null  ${POLICY_PAP_IP}  202  vCPE.policy.input.tosca.deploy.json  ${CURDIR}/data
-     Sleep      5s
      ${result}=     Run Process    ${SCR_DMAAP}/wait_topic.sh    POLICY-PDP-PAP
      ...            responseTo    xacml    ACTIVE    onap.restart.tca
+     Should Be Equal As Integers        ${result.rc}    0
 
 GetStatisticsAfterDeployed
      [Documentation]  Verify policy xacml-pdp statistics after policy is deployed