summaryrefslogtreecommitdiffstats
path: root/robot/resources/mso_interface.robot
diff options
context:
space:
mode:
authorDR695H <dr695h@att.com>2017-06-30 13:09:57 -0400
committerDR695H <dr695h@att.com>2017-06-30 13:17:56 -0400
commitbf5a3a3745c9669dd6eeea3d2ef5b3bbaa3e9f74 (patch)
treeac51047b1768056c71e7f67ec22cbb8d391cb741 /robot/resources/mso_interface.robot
parente2a48d77875821fc4786b33f8a96d41c79d71224 (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/mso_interface.robot')
-rw-r--r--robot/resources/mso_interface.robot11
1 files changed, 6 insertions, 5 deletions
diff --git a/robot/resources/mso_interface.robot b/robot/resources/mso_interface.robot
index b6a53b40..cf6aa643 100644
--- a/robot/resources/mso_interface.robot
+++ b/robot/resources/mso_interface.robot
@@ -8,12 +8,13 @@ Resource global_properties.robot
Resource ../resources/json_templater.robot
*** Variables ***
${MSO_HEALTH_CHECK_PATH} /ecomp/mso/infra/globalhealthcheck
+${MSO_ENDPOINT} ${GLOBAL_MSO_SERVER_PROTOCOL}://${GLOBAL_INJECTED_MSO_IP_ADDR}:${GLOBAL_MSO_SERVER_PORT}
*** Keywords ***
Run MSO Health Check
[Documentation] Runs an MSO global health check
${auth}= Create List ${GLOBAL_MSO_USERNAME} ${GLOBAL_MSO_PASSWORD}
- ${session}= Create Session mso ${GLOBAL_MSO_SERVER}
+ ${session}= Create Session mso ${MSO_ENDPOINT}
${uuid}= Generate UUID
${headers}= Create Dictionary Accept=text/html Content-Type=text/html X-TransactionId=${GLOBAL_APPLICATION_ID}-${uuid} X-FromAppId=${GLOBAL_APPLICATION_ID}
${resp}= Get Request mso ${MSO_HEALTH_CHECK_PATH} headers=${headers}
@@ -23,8 +24,8 @@ Run MSO Get Request
[Documentation] Runs an MSO get request
[Arguments] ${data_path} ${accept}=application/json
${auth}= Create List ${GLOBAL_MSO_USERNAME} ${GLOBAL_MSO_PASSWORD}
- Log Creating session ${GLOBAL_MSO_SERVER}
- ${session}= Create Session mso ${GLOBAL_MSO_SERVER} auth=${auth}
+ Log Creating session ${MSO_ENDPOINT}
+ ${session}= Create Session mso ${MSO_ENDPOINT} auth=${auth}
${uuid}= Generate UUID
${headers}= Create Dictionary Accept=${accept} Content-Type=application/json X-TransactionId=${GLOBAL_APPLICATION_ID}-${uuid} X-FromAppId=${GLOBAL_APPLICATION_ID}
${resp}= Get Request mso ${data_path} headers=${headers}
@@ -35,8 +36,8 @@ Poll MSO Get Request
[Documentation] Runs an MSO get request until a certain status is received. valid values are COMPLETE
[Arguments] ${data_path} ${status}
${auth}= Create List ${GLOBAL_MSO_USERNAME} ${GLOBAL_MSO_PASSWORD}
- Log Creating session ${GLOBAL_MSO_SERVER}
- ${session}= Create Session mso ${GLOBAL_MSO_SERVER} auth=${auth}
+ Log Creating session ${MSO_ENDPOINT}
+ ${session}= Create Session mso ${MSO_ENDPOINT} auth=${auth}
${uuid}= Generate UUID
${headers}= Create Dictionary Accept=application/json Content-Type=application/json X-TransactionId=${GLOBAL_APPLICATION_ID}-${uuid} X-FromAppId=${GLOBAL_APPLICATION_ID}
#do this until it is done