summaryrefslogtreecommitdiffstats
path: root/robot/resources/stack_validation/validate_common.robot
diff options
context:
space:
mode:
authorJerry Flood <jf9860@att.com>2017-03-30 07:59:33 -0400
committerJerry Flood <jf9860@att.com>2017-03-31 07:42:46 -0400
commit9b5e79fe062a3feef87ac76145ddb93470cba607 (patch)
tree1a6ede12d155c74818d7cf55c14350920a2b41aa /robot/resources/stack_validation/validate_common.robot
parentdb7987998ad6bc05de07d1e7de8dbb788dbd6cce (diff)
TEST-16 Create global variable for default key
Alternate key may be provided by setting varialble GLOBAL_VM_PRIVATE_KEY=<path to key> and updating the pub_key in the _preload_parameters.py Change-Id: I3abcaf8a38aa0bc5fdc0c2b2ac0796b9f5820f46 Signed-off-by: Jerry Flood <jf9860@att.com>
Diffstat (limited to 'robot/resources/stack_validation/validate_common.robot')
-rw-r--r--robot/resources/stack_validation/validate_common.robot26
1 files changed, 11 insertions, 15 deletions
diff --git a/robot/resources/stack_validation/validate_common.robot b/robot/resources/stack_validation/validate_common.robot
index eb7f9f5a..24f9fe33 100644
--- a/robot/resources/stack_validation/validate_common.robot
+++ b/robot/resources/stack_validation/validate_common.robot
@@ -16,36 +16,32 @@ Resource packet_generator_interface.robot
*** Variables ***
-${ASSETS} ${EXECDIR}/robot/assets/
-${VFW_STACK_NAME} EcompETE_VFWStack
-${VLB_STACK_NAME} EcompETE_VLBStack
-${DNS_STACK_NAME} EcompETE_DNSStack
*** Keywords ***
Wait For Server
- [Documentation] Attempts to login to the passed server info and verify (??). Uses server info to get public ip and locate corresponding provate key file
+ [Documentation] Attempts to login to the passed server info and verify (??). Uses server info to get public ip and locate corresponding provate key file
[Arguments] ${server_ip} ${timeout}=300s
- ${file}= Catenate ${ASSETS}keys/robot_ssh_private_key.pvt
+ ${file}= Catenate ${GLOBAL_VM_PRIVATE_KEY}
Wait Until Keyword Succeeds ${timeout} 5 sec Open Connection And Log In ${server_ip} root ${file}
- ${lines}= Grep Local File "Accepted publickey" /var/log/auth.log
- Log ${lines}
+ ${lines}= Grep Local File "Accepted publickey" /var/log/auth.log
+ Log ${lines}
Should Not Be Empty ${lines}
-
-Get Server Ip
+
+Get Server Ip
[Arguments] ${server_list} ${stack_info} ${key_name} ${network_name}=public
${server_name}= Get From Dictionary ${stack_info} ${key_name}
${server}= Get From Dictionary ${server_list} ${server_name}
Log Entering Get Openstack Server Ip
- ${ip}= Get Openstack Server Ip ${server} network_name=${network_name}
+ ${ip}= Get Openstack Server Ip ${server} network_name=${network_name}
Log Returned Get Openstack Server Ip
- [Return] ${ip}
+ [Return] ${ip}
Find And Reboot The Server
- [Documentation] Code to reboot the server by teh heat server name parameter value
+ [Documentation] Code to reboot the server by teh heat server name parameter value
[Arguments] ${stack_info} ${server_list} ${server_name_parameter}
${server_name}= Get From Dictionary ${stack_info} ${server_name_parameter}
${vfw_server}= Get From Dictionary ${server_list} ${server_name}
${vfw_server_id}= Get From Dictionary ${vfw_server} id
Reboot Server auth ${vfw_server_id}
-
-
+
+