onap on kubernetes source files
[oom.git] / kubernetes / config / docker / init / src / config / robot / robot / resources / stack_validation / validate_vlb.robot
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
12 *** Keywords ***
13 Validate vLB Stack
14     [Documentation]    Identifies the LB and DNS servers in the vLB stack
15     [Arguments]    ${stack_name}
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
19     ${server_list}=    Get Openstack Servers    auth
20     Log     Returned from Get Openstack Servers
21     ${vlb_public_ip}=    Get Server Ip    ${server_list}    ${stack_info}   vlb_name_0    network_name=public
22     Log     Waiting for ${vlb_public_ip} to reconfigure
23     Sleep   180s
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}
27     Log    All server processes up
28
29 Wait For vLB
30     [Documentation]     Wait for the VLB to be functioning as a DNS
31     [Arguments]    ${ip}
32     Wait Until Keyword Succeeds    300s    10s    DNSTest    ${ip}
33     Log  Succeeded
34
35 DNSTest
36     [Documentation]     Wait for the defined VLoadBalancer to process nslookup
37     [Arguments]    ${ip}
38     Log   Looking up ${ip}
39     #${returned_ip}=     Dns Request    host1.dnsdemo.openecomp.org    ${ip}
40     #Should Contain    '${returned_ip}'    .