diff options
author | DR695H <dr695h@att.com> | 2017-06-30 13:09:57 -0400 |
---|---|---|
committer | DR695H <dr695h@att.com> | 2017-06-30 13:17:56 -0400 |
commit | bf5a3a3745c9669dd6eeea3d2ef5b3bbaa3e9f74 (patch) | |
tree | ac51047b1768056c71e7f67ec22cbb8d391cb741 /robot/resources/appc_interface.robot | |
parent | e2a48d77875821fc4786b33f8a96d41c79d71224 (diff) |
[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 <dr695h@att.com>
Diffstat (limited to 'robot/resources/appc_interface.robot')
-rw-r--r-- | robot/resources/appc_interface.robot | 10 |
1 files changed, 6 insertions, 4 deletions
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} |