Integration tests for GBP
[integration/test.git] / csit / suites / groupbasedpolicy / GBP / 3-node / gbp2-multitenant / 002_wait_flows.robot
1 *** Settings ***
2 Documentation     Waiting until flows are created
3 Default Tags      multi-tenant    setup    multi-tenant-setup
4 Library           SSHLibrary
5 Resource          ../../../../../libraries/Utils.robot
6 Resource          ../../../../../libraries/GBP/OpenFlowUtils.robot
7 Variables         ../../../../../variables/Variables.py
8 Resource          ../Variables.robot
9
10
11 *** Variables ***
12 ${timeout} =     10s
13
14
15 *** Testcases ***
16
17 Wait For Flows
18     Sleep    30s
19     ${passed} =  Run Keyword And Return Status    OpenFlowUtils.Wait For Flows On Switch  ${GBP1}  sw1
20     Run Keyword Unless    ${passed}    Fatal Error    Flows not created on sw1!
21     ${passed} =  Run Keyword And Return Status    OpenFlowUtils.Wait For Flows On Switch  ${GBP2}  sw2
22     Run Keyword Unless    ${passed}    Fatal Error    Flows not created on sw2!
23     ${passed} =  Run Keyword And Return Status    OpenFlowUtils.Wait For Flows On Switch  ${GBP3}  sw3
24     Run Keyword Unless    ${passed}    Fatal Error    Flows not created on sw3!