be343b01b061ae11a94e17cbf9ac28dbf9ea4d51
[integration/test.git] / test / csit / suites / l2switch / Loop_Removal_OF13 / 020__ping.txt
1 *** Settings ***
2 Documentation     Test suite for Pinging in Ring/Loop topology of size 3
3 Suite Setup       Create Session   session   http://${CONTROLLER}:${PORT}   auth=${AUTH}   headers=${HEADERS_XML}
4 Suite Teardown    Delete All Sessions
5 Library           SSHLibrary
6 Library           Collections
7 Library           ../../../libraries/RequestsLibrary.py
8 Library           ../../../libraries/Common.py
9 Variables         ../../../variables/Variables.py
10
11 *** Variables ***
12 ${REST_CONTEXT}    /restconf/operational/opendaylight-inventory:nodes
13
14 *** Test Cases ***
15 Ping All
16     [Documentation]    Pingall, verify no packet loss
17         Write   pingall
18         ${result}    Read Until         mininet>
19         Should Contain   ${result}   0% dropped
20         Should Contain X Times    ${result}   h1    3
21         Should Contain X Times    ${result}   h2    3
22         Should Contain X Times    ${result}   h3    3
23         Should Not Contain    ${result}    X
24
25
26 Ping h1 to h2
27     [Documentation]    Ping h1 to h2, verify no packet loss or duplicates
28         Write   h1 ping -w 6 h2
29         Read Until      mininet>
30         Write   h2 ping -w 6 h1
31         ${result}    Read Until         mininet>
32         Should Contain   ${result}   0% packet loss
33         Should Not Contain    ${result}    duplicates
34