2921f35a9d9c96f20c63b6f7d98a28d8b1d00b2e
[integration/test.git] / csit / suites / groupbasedpolicy / GBP / Devstack / 01__wait_for_odl.robot
1 *** Settings ***
2 Documentation     This suite verifies availability of ODL features needed for further testing
3 Suite Teardown    Delete All Sessions
4 Library           SSHLibrary
5 Library           OperatingSystem
6 Library           RequestsLibrary
7 Resource          Variables.robot
8 Resource          ../../../../libraries/Utils.robot
9 Resource          ../../../../libraries/DevstackUtils.robot
10 Variables         ../../../../variables/Variables.py
11
12 *** Variables ***
13
14 *** Test Cases ***
15 Wait for Renderers and NeutronMapper
16     Create Session    session     http://${ODL_SYSTEM_IP}:8181    auth=${AUTH}    headers=${headers}
17     Wait Until Keyword Succeeds   60x    5s    Renderers And NeutronMapper Initialized    session
18     Delete All Sessions
19
20 *** Keywords ***
21 Renderers And NeutronMapper Initialized
22     [Documentation]  Ofoverlay and Neutronmapper features start check via datastore.
23     [Arguments]      ${session}
24     Get Data From URI    ${session}    ${OF_OVERLAY_BOOT_URL}    headers=${headers}
25     ${response}    RequestsLibrary.Get Request    ${session}    ${NEURONMAPPER_BOOT_URL}    ${headers}
26     Should Be Equal As Strings    404    ${response.status_code}