onap on kubernetes source files
[oom.git] / kubernetes / config / docker / init / src / config / robot / robot / resources / stack_validation / validate_dns_scaling.robot
1 *** Settings ***
2 Documentation     Testing openstack.
3 Library    OperatingSystem
4 Library    SSHLibrary
5 Library    RequestsLibrary
6 Library    JSONUtils
7 Library    OpenstackLibrary
8 Library    HEATUtils
9 Library    Collections
10 Resource          ../../resources/openstack/keystone_interface.robot
11 Resource          ../../resources/openstack/nova_interface.robot
12 Resource          ../../resources/openstack/heat_interface.robot
13 Resource          ../../resources/ssh/files.robot
14 Resource          ../../resources/ssh/processes.robot
15 Resource          packet_generator_interface.robot
16 Resource          validate_common.robot
17
18
19 *** Variables ***
20
21 *** Keywords ***
22 Validate Dns Scaling Stack
23     [Documentation]    Wait for the DNS scaling stack to be instantiated
24     [Arguments]    ${STACK_NAME}
25     Run Openstack Auth Request    auth
26     ${stack_info}=    Wait for Stack to Be Deployed    auth    ${STACK_NAME}
27     ${stack_id}=    Get From Dictionary    ${stack_info}    id
28     ${server_list}=    Get Openstack Servers    auth
29     Log     ${server_list}
30     ${vdns_public_ip}=    Get Server Ip    ${server_list}    ${stack_info}   vdns_name_0    network_name=public
31     Wait For Server    ${vdns_public_ip}
32     Log    Accessed all servers
33     #Wait for vDNS    ${vdns_public_ip}
34     Log    All server processes up
35
36 Wait For vDNS
37     [Documentation]     Wait for the DNSServer to be running on the scaling DNS.
38     ...  Disabled. Potential for robot to hang due to network reconfigurations at startup.
39     [Arguments]    ${ip}
40     Wait for Process on Host    java DNSServer     ${ip}
41