From bf5a3a3745c9669dd6eeea3d2ef5b3bbaa3e9f74 Mon Sep 17 00:00:00 2001 From: DR695H Date: Fri, 30 Jun 2017 13:09:57 -0400 Subject: [TEST-45] support injectable ips today onap ips are hard coded so we should support having them injectable from external sources Change-Id: Id7911df331207a9198e9bf43168b9a6843db6f48 Signed-off-by: DR695H --- robot/resources/appc_interface.robot | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'robot/resources/appc_interface.robot') diff --git a/robot/resources/appc_interface.robot b/robot/resources/appc_interface.robot index 2dbd979b..289d1d7c 100644 --- a/robot/resources/appc_interface.robot +++ b/robot/resources/appc_interface.robot @@ -11,6 +11,8 @@ ${APPC_INDEX_PATH} /restconf ${APPC_HEALTHCHECK_OPERATION_PATH} /operations/SLI-API:healthcheck ${APPC_CREATE_MOUNTPOINT_PATH} /config/network-topology:network-topology/topology/topology-netconf/node/ ${APPC_MOUNT_XML} robot/assets/templates/appc/vnf_mount.template +${APPC_ENDPOINT} ${GLOBAL_APPC_SERVER_PROTOCOL}://${GLOBAL_INJECTED_APPC_IP_ADDR}:${GLOBAL_APPC_SERVER_PORT} + *** Keywords *** Run APPC Health Check @@ -23,8 +25,8 @@ Run APPC Post Request [Documentation] Runs an APPC post request [Arguments] ${data_path} ${data} ${content}=json ${auth}= Create List ${GLOBAL_APPC_USERNAME} ${GLOBAL_APPC_PASSWORD} - Log Creating session ${GLOBAL_APPC_SERVER} - ${session}= Create Session appc ${GLOBAL_APPC_SERVER} auth=${auth} + Log Creating session ${APPC_ENDPOINT} + ${session}= Create Session appc ${APPC_ENDPOINT} auth=${auth} ${uuid}= Generate UUID ${headers}= Create Dictionary Accept=application/${content} Content-Type=application/${content} X-TransactionId=${GLOBAL_APPLICATION_ID}-${uuid} X-FromAppId=${GLOBAL_APPLICATION_ID} ${resp}= Post Request appc ${data_path} data=${data} headers=${headers} @@ -35,8 +37,8 @@ Run APPC Put Request [Documentation] Runs an APPC post request [Arguments] ${data_path} ${data} ${content}=xml ${auth}= Create List ${GLOBAL_APPC_USERNAME} ${GLOBAL_APPC_PASSWORD} - Log Creating session ${GLOBAL_APPC_SERVER} - ${session}= Create Session appc ${GLOBAL_APPC_SERVER} auth=${auth} + Log Creating session ${APPC_ENDPOINT} + ${session}= Create Session appc ${APPC_ENDPOINT} auth=${auth} ${uuid}= Generate UUID ${headers}= Create Dictionary Accept=application/${content} Content-Type=application/${content} X-TransactionId=${GLOBAL_APPLICATION_ID}-${uuid} X-FromAppId=${GLOBAL_APPLICATION_ID} ${resp}= Put Request appc ${data_path} data=${data} headers=${headers} -- cgit 1.2.3-korg