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 *** |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 11 | |
| 12 | *** Keywords *** |
| 13 | Validate vLB Stack |
jf9860 | 99c6329 | 2017-03-09 15:28:42 -0500 | [diff] [blame] | 14 | [Documentation] Identifies the LB and DNS servers in the vLB stack |
| 15 | [Arguments] ${stack_name} |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 16 | Run Openstack Auth Request auth |
| 17 | ${stack_info}= Wait for Stack to Be Deployed auth ${stack_name} |
| 18 | ${stack_id}= Get From Dictionary ${stack_info} id |
jf9860 | 99c6329 | 2017-03-09 15:28:42 -0500 | [diff] [blame] | 19 | ${server_list}= Get Openstack Servers auth |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 20 | Log Returned from Get Openstack Servers |
jf9860 | 99c6329 | 2017-03-09 15:28:42 -0500 | [diff] [blame] | 21 | ${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] | 22 | Log Waiting for ${vlb_public_ip} to reconfigure |
| 23 | Sleep 180s |
jf9860 | 99c6329 | 2017-03-09 15:28:42 -0500 | [diff] [blame] | 24 | # Server validations diabled due to issues with load balancer network reconfiguration |
| 25 | # at startup hanging the robot scripts |
| 26 | Wait For vLB ${vlb_public_ip} |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 27 | Log All server processes up |
| 28 | |
| 29 | Wait For vLB |
jf9860 | 99c6329 | 2017-03-09 15:28:42 -0500 | [diff] [blame] | 30 | [Documentation] Wait for the VLB to be functioning as a DNS |
| 31 | [Arguments] ${ip} |
| 32 | Wait Until Keyword Succeeds 300s 10s DNSTest ${ip} |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 33 | Log Succeeded |
jf9860 | 99c6329 | 2017-03-09 15:28:42 -0500 | [diff] [blame] | 34 | |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 35 | DNSTest |
| 36 | [Documentation] Wait for the defined VLoadBalancer to process nslookup |
| 37 | [Arguments] ${ip} |
jf9860 | 99c6329 | 2017-03-09 15:28:42 -0500 | [diff] [blame] | 38 | Log Looking up ${ip} |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 39 | #${returned_ip}= Dns Request host1.dnsdemo.openecomp.org ${ip} |
| 40 | #Should Contain '${returned_ip}' . |