summaryrefslogtreecommitdiffstats
path: root/robot/resources/policy_interface.robot
diff options
context:
space:
mode:
authorBrian Freeman <bf1936@att.com>2020-12-11 14:03:57 -0500
committerBrian Freeman <bf1936@att.com>2020-12-11 14:04:02 -0500
commit4e737ebf42405c431aeba47b9381d5c85c33ad50 (patch)
tree581080f79d7cc47cfe85d2d07001a572accdd3c5 /robot/resources/policy_interface.robot
parent64c82051fae901cfd7f0cbd42061bbe38a18c3f4 (diff)
Fix undeploye/delete operational policy
do both policy undeploys before deletes so that undeploy has more time to process remove heatbridge.robot include references to get rid of error message at startup remove commented out referecnes to heatbridge (cleanup) Issue-ID: INT-1803 Change-Id: I0cb071f487faf6ecababdc6d8a5c0e3aa79720b7 Signed-off-by: Brian Freeman <bf1936@att.com>
Diffstat (limited to 'robot/resources/policy_interface.robot')
-rw-r--r--robot/resources/policy_interface.robot12
1 files changed, 11 insertions, 1 deletions
diff --git a/robot/resources/policy_interface.robot b/robot/resources/policy_interface.robot
index b8ecf45f..9ff95f07 100644
--- a/robot/resources/policy_interface.robot
+++ b/robot/resources/policy_interface.robot
@@ -188,7 +188,7 @@ Run Deploy Policy Pap Post Request
[Return] ${resp}
Should Be Equal As Strings ${resp.status_code} 200
-Run Undeploy Policy
+Run Undeploy vFW Operational Policy
[Documentation] Runs Policy PAP Undeploy a Policy from PDP Groups
#[Arguments] ${policy_name}
${auth}= Create List ${POLICY_HEALTHCHECK_USERNAME} ${POLICY_HEALTHCHECK_PASSWORD}
@@ -222,6 +222,16 @@ Run Delete vFW Monitoring Policy
Log Received response from policy ${resp.text}
Should Be Equal As Strings ${resp.status_code} 200
+Run Delete vFW Operational Policy
+ [Documentation] Runs Policy API Delete Operational Policy
+ #[Arguments] ${policy_name}
+ ${auth}= Create List ${POLICY_HEALTHCHECK_USERNAME} ${POLICY_HEALTHCHECK_PASSWORD}
+ ${session}= Create Session policy ${GLOBAL_POLICY_SERVER_PROTOCOL}://${POLICY_API_IP}:${GLOBAL_POLICY_HEALTHCHECK_PORT} auth=${auth}
+ Log Creating session ${GLOBAL_POLICY_SERVER_PROTOCOL}://${POLICY_API_IP}:${GLOBAL_POLICY_HEALTHCHECK_PORT}
+ ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
+ ${resp}= Delete Request policy /policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Drools/versions/1.0.0/policies/operational.modifyconfig/versions/1.0.0 headers=${headers}
+ Log Received response from policy ${resp.text}
+ Should Be Equal As Strings ${resp.status_code} 200
Run Delete Policy Request
[Documentation] Runs Policy Delete request