summaryrefslogtreecommitdiffstats
path: root/robot/resources/appc_interface.robot
diff options
context:
space:
mode:
authorDaniel Rose <dr695h@att.com>2017-07-27 20:23:07 +0000
committerGerrit Code Review <gerrit@onap.org>2017-07-27 20:23:07 +0000
commit8d6913f1a512f6185b7dd00ca688f71cafebefff (patch)
tree4eefa49340698a7818304eea2b606199e19c75fd /robot/resources/appc_interface.robot
parent41e03d2a96990ed8e2eb0e42f0a28deeb3981064 (diff)
parentbf5a3a3745c9669dd6eeea3d2ef5b3bbaa3e9f74 (diff)
Merge "[TEST-45] support injectable ips"
Diffstat (limited to 'robot/resources/appc_interface.robot')
-rw-r--r--robot/resources/appc_interface.robot10
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}