b6420ea529f26cbcaca7ef3e502b35319b651622
[integration/test.git] / csit / suites / groupbasedpolicy / GBP / 3-node / gbp1 / 002_wait_flows.robot
1 *** Settings ***
2 Documentation       Waiting until flows are created
3
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 Default Tags        single-tenant    setup    single-tenant-setup
11
12
13 *** Variables ***
14 ${timeout}      10s
15
16
17 *** Test Cases ***
18 Wait For Flows
19     Sleep    30s
20     ${passed} =    Run Keyword And Return Status    OpenFlowUtils.Wait For Flows On Switch    ${GBP1}    sw1
21     IF    not ${passed}    Fatal Error    Flows not created on sw1!
22     ${passed} =    Run Keyword And Return Status    OpenFlowUtils.Wait For Flows On Switch    ${GBP2}    sw2
23     IF    not ${passed}    Fatal Error    Flows not created on sw2!
24     ${passed} =    Run Keyword And Return Status    OpenFlowUtils.Wait For Flows On Switch    ${GBP3}    sw3
25     IF    not ${passed}    Fatal Error    Flows not created on sw3!