TEST-16 Parameterize the location of the pvt key 93/2893/1
authorJerry Flood <jf9860@att.com>
Fri, 31 Mar 2017 13:46:41 +0000 (09:46 -0400)
committerJerry Flood <jf9860@att.com>
Fri, 31 Mar 2017 13:46:57 +0000 (09:46 -0400)
Change-Id: I32e1e9f4e98672739d503748df2bf2661b58271c
Signed-off-by: Jerry Flood <jf9860@att.com>
robot/resources/global_properties.robot
robot/resources/stack_validation/policy_check_vfw.robot
robot/resources/stack_validation/validate_common.robot
robot/resources/stack_validation/validate_dns_scaling.robot
robot/resources/stack_validation/validate_vfw.robot
robot/resources/stack_validation/validate_vlb.robot
robot/resources/stack_validation/validate_vvg.robot

index 819f56a..953f528 100644 (file)
@@ -19,4 +19,5 @@ ${GLOBAL_OPENSTACK_NEUTRON_SERVICE_TYPE}    network
 ${GLOBAL_OPENSTACK_GLANCE_SERVICE_TYPE}    image
 ${GLOBAL_OPENSTACK_KEYSTONE_SERVICE_TYPE}    identity
 ${GLOBAL_AAI_CLOUD_OWNER}    Rackspace
-${GLOBAL_BUILD_NUMBER}    0
\ No newline at end of file
+${GLOBAL_BUILD_NUMBER}    0
+${GLOBAL_VM_PRIVATE_KEY}   ${EXECDIR}/robot/assets/keys/robot_ssh_private_key.pvt
\ No newline at end of file
index 126f437..2234072 100644 (file)
@@ -21,7 +21,6 @@ Resource          ../../resources/test_templates/vnf_orchestration_test_template
 
 
 *** Variables ***
-${ASSETS}              ${EXECDIR}/robot/assets/
 
 *** Keywords ***
 Policy Check Firewall Stack
index eb7f9f5..24f9fe3 100644 (file)
@@ -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}
-        
-    
+
+
index 41c0463..b455659 100644 (file)
@@ -17,7 +17,6 @@ Resource          validate_common.robot
 
 
 *** Variables ***
-${ASSETS}              ${EXECDIR}/robot/assets/
 
 *** Keywords ***
 Validate Dns Scaling Stack
index a5322ef..b0d591f 100644 (file)
@@ -18,7 +18,6 @@ Resource          validate_common.robot
 
 
 *** Variables ***
-${ASSETS}              ${EXECDIR}/robot/assets/
 
 *** Keywords ***
 Validate Firewall Stack
index eef578a..bab1564 100644 (file)
@@ -8,7 +8,6 @@ Resource          validate_common.robot
 
 
 *** Variables ***
-${ASSETS}              ${EXECDIR}/robot/assets/
 
 *** Keywords ***
 Validate vLB Stack
index 47d9600..05b1e8a 100644 (file)
@@ -7,7 +7,6 @@ Resource          validate_common.robot
 
 
 *** Variables ***
-${ASSETS}              ${EXECDIR}/robot/assets/
 
 *** Keywords ***
 Validate vVG Stack