blob: eef578ab28928ca3e8f752248e2a759fae37e4a0 [file] [log] [blame]
DR695Hccff30b2017-02-17 18:44:24 -05001*** Settings ***
2Documentation Testing openstack.
3Library String
4Library DNSUtils
5Library Collections
6Library SSHLibrary
7Resource validate_common.robot
8
9
10*** Variables ***
11${ASSETS} ${EXECDIR}/robot/assets/
12
13*** Keywords ***
14Validate vLB Stack
jf986099c63292017-03-09 15:28:42 -050015 [Documentation] Identifies the LB and DNS servers in the vLB stack
16 [Arguments] ${stack_name}
DR695Hccff30b2017-02-17 18:44:24 -050017 Run Openstack Auth Request auth
18 ${stack_info}= Wait for Stack to Be Deployed auth ${stack_name}
19 ${stack_id}= Get From Dictionary ${stack_info} id
jf986099c63292017-03-09 15:28:42 -050020 ${server_list}= Get Openstack Servers auth
DR695Hccff30b2017-02-17 18:44:24 -050021 Log Returned from Get Openstack Servers
jf986099c63292017-03-09 15:28:42 -050022 ${vlb_public_ip}= Get Server Ip ${server_list} ${stack_info} vlb_name_0 network_name=public
DR695Hccff30b2017-02-17 18:44:24 -050023 Log Waiting for ${vlb_public_ip} to reconfigure
24 Sleep 180s
jf986099c63292017-03-09 15:28:42 -050025 # Server validations diabled due to issues with load balancer network reconfiguration
26 # at startup hanging the robot scripts
27 Wait For vLB ${vlb_public_ip}
DR695Hccff30b2017-02-17 18:44:24 -050028 Log All server processes up
29
30Wait For vLB
jf986099c63292017-03-09 15:28:42 -050031 [Documentation] Wait for the VLB to be functioning as a DNS
32 [Arguments] ${ip}
33 Wait Until Keyword Succeeds 300s 10s DNSTest ${ip}
DR695Hccff30b2017-02-17 18:44:24 -050034 Log Succeeded
jf986099c63292017-03-09 15:28:42 -050035
DR695Hccff30b2017-02-17 18:44:24 -050036DNSTest
37 [Documentation] Wait for the defined VLoadBalancer to process nslookup
38 [Arguments] ${ip}
jf986099c63292017-03-09 15:28:42 -050039 Log Looking up ${ip}
DR695Hccff30b2017-02-17 18:44:24 -050040 #${returned_ip}= Dns Request host1.dnsdemo.openecomp.org ${ip}
41 #Should Contain '${returned_ip}' .