blob: bab15648f0c6dc8b9f3189783d56f0accf144d39 [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 ***
DR695Hccff30b2017-02-17 18:44:24 -050011
12*** Keywords ***
13Validate vLB Stack
jf986099c63292017-03-09 15:28:42 -050014 [Documentation] Identifies the LB and DNS servers in the vLB stack
15 [Arguments] ${stack_name}
DR695Hccff30b2017-02-17 18:44:24 -050016 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
jf986099c63292017-03-09 15:28:42 -050019 ${server_list}= Get Openstack Servers auth
DR695Hccff30b2017-02-17 18:44:24 -050020 Log Returned from Get Openstack Servers
jf986099c63292017-03-09 15:28:42 -050021 ${vlb_public_ip}= Get Server Ip ${server_list} ${stack_info} vlb_name_0 network_name=public
DR695Hccff30b2017-02-17 18:44:24 -050022 Log Waiting for ${vlb_public_ip} to reconfigure
23 Sleep 180s
jf986099c63292017-03-09 15:28:42 -050024 # 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}
DR695Hccff30b2017-02-17 18:44:24 -050027 Log All server processes up
28
29Wait For vLB
jf986099c63292017-03-09 15:28:42 -050030 [Documentation] Wait for the VLB to be functioning as a DNS
31 [Arguments] ${ip}
32 Wait Until Keyword Succeeds 300s 10s DNSTest ${ip}
DR695Hccff30b2017-02-17 18:44:24 -050033 Log Succeeded
jf986099c63292017-03-09 15:28:42 -050034
DR695Hccff30b2017-02-17 18:44:24 -050035DNSTest
36 [Documentation] Wait for the defined VLoadBalancer to process nslookup
37 [Arguments] ${ip}
jf986099c63292017-03-09 15:28:42 -050038 Log Looking up ${ip}
DR695Hccff30b2017-02-17 18:44:24 -050039 #${returned_ip}= Dns Request host1.dnsdemo.openecomp.org ${ip}
40 #Should Contain '${returned_ip}' .