DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Documentation Testing openstack. |
| 3 | Library String |
| 4 | Library DNSUtils |
| 5 | Library Collections |
| 6 | Library SSHLibrary |
| 7 | Resource validate_common.robot |
| 8 | |
| 9 | |
| 10 | *** Variables *** |
| 11 | ${ASSETS} ${EXECDIR}/robot/assets/ |
| 12 | |
| 13 | *** Keywords *** |
| 14 | Validate vLB Stack |
jf9860 | 99c6329 | 2017-03-09 15:28:42 -0500 | [diff] [blame] | 15 | [Documentation] Identifies the LB and DNS servers in the vLB stack |
| 16 | [Arguments] ${stack_name} |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 17 | 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 |
jf9860 | 99c6329 | 2017-03-09 15:28:42 -0500 | [diff] [blame] | 20 | ${server_list}= Get Openstack Servers auth |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 21 | Log Returned from Get Openstack Servers |
jf9860 | 99c6329 | 2017-03-09 15:28:42 -0500 | [diff] [blame] | 22 | ${vlb_public_ip}= Get Server Ip ${server_list} ${stack_info} vlb_name_0 network_name=public |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 23 | Log Waiting for ${vlb_public_ip} to reconfigure |
| 24 | Sleep 180s |
jf9860 | 99c6329 | 2017-03-09 15:28:42 -0500 | [diff] [blame] | 25 | # 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} |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 28 | Log All server processes up |
| 29 | |
| 30 | Wait For vLB |
jf9860 | 99c6329 | 2017-03-09 15:28:42 -0500 | [diff] [blame] | 31 | [Documentation] Wait for the VLB to be functioning as a DNS |
| 32 | [Arguments] ${ip} |
| 33 | Wait Until Keyword Succeeds 300s 10s DNSTest ${ip} |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 34 | Log Succeeded |
jf9860 | 99c6329 | 2017-03-09 15:28:42 -0500 | [diff] [blame] | 35 | |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 36 | DNSTest |
| 37 | [Documentation] Wait for the defined VLoadBalancer to process nslookup |
| 38 | [Arguments] ${ip} |
jf9860 | 99c6329 | 2017-03-09 15:28:42 -0500 | [diff] [blame] | 39 | Log Looking up ${ip} |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 40 | #${returned_ip}= Dns Request host1.dnsdemo.openecomp.org ${ip} |
| 41 | #Should Contain '${returned_ip}' . |