diff options
author | jhh <jorge.hernandez-herrero@att.com> | 2020-09-10 11:58:10 -0500 |
---|---|---|
committer | jhh <jorge.hernandez-herrero@att.com> | 2020-09-10 12:02:18 -0500 |
commit | b91ba0f3a6c662776d68f58a5adacaf80e2ac7f8 (patch) | |
tree | 5cb1ca00a3cd54741d12a3adc83564e642ff4210 /robot | |
parent | 92b3b581276247ed828a33bc8e35d84b0bf31e5f (diff) |
fix delete policy test in new policy healthcheck
errors are seeing with latest oom install after this
new healthcheck has been added. Delete policy operation
section seems incorrect.
Issue-ID: POLICY-2817
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I63e1c053a5b361909cb393a29b38c1ee917c3629
Diffstat (limited to 'robot')
-rw-r--r-- | robot/resources/policy_interface.robot | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/robot/resources/policy_interface.robot b/robot/resources/policy_interface.robot index 8389057c..21d61b61 100644 --- a/robot/resources/policy_interface.robot +++ b/robot/resources/policy_interface.robot @@ -12,7 +12,6 @@ Resource ssh/files.robot *** Variables *** ${POLICY_NEW_HEALTHCHECK_PATH} /policy/pap/v1/components/healthcheck ${POLICY_NEW_HEALTHCHECK_ENDPOINT} ${GLOBAL_POLICY_SERVER_PROTOCOL}://${GLOBAL_INJECTED_POLICY_PAP_IP_ADDR}:${GLOBAL_POLICY_HEALTHCHECK_PORT} -${POLICY_ENDPOINT} ${GLOBAL_POLICY_SERVER_PROTOCOL}://${GLOBAL_INJECTED_POLICY_IP_ADDR}:${GLOBAL_POLICY_SERVER_PORT} ${POLICY_TEMPLATES} policy ${POLICY_API_IP} ${GLOBAL_INJECTED_POLICY_API_IP_ADDR} ${POLICY_PAP_IP} ${GLOBAL_INJECTED_POLICY_PAP_IP_ADDR} @@ -179,10 +178,10 @@ Run Undeploy Policy Run Delete Policy Request [Documentation] Runs Policy Delete request #[Arguments] ${data_path} ${data} - Log Creating session ${POLICY_ENDPOINT} - ${session}= Create Session policy ${POLICY_ENDPOINT} - ${headers}= Create Dictionary Accept=application/json Content-Type=application/json Authorization=Basic ${GLOBAL_POLICY_AUTH} ClientAuth=${GLOBAL_POLICY -_CLIENTAUTH} + ${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_GET_POLICY_URI} headers=${headers} Log Received response from policy ${resp.text} [Return] ${resp} |