Update L2switch test case
[integration/test.git] / test / csit / suites / karaf-l2switch / 030__LoopRemoval_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     [Tags]   Get
18         Write   pingall
19         ${result}    Read Until         mininet>
20         Should Contain   ${result}   0% dropped
21         Should Contain X Times    ${result}   h1    3
22         Should Contain X Times    ${result}   h2    3
23         Should Contain X Times    ${result}   h3    3
24         Should Not Contain    ${result}    X
25
26
27 Ping h1 to h2
28     [Documentation]    Ping h1 to h2, verify no packet loss or duplicates
29     [Tags]   Get
30         Write   h1 ping -w 6 h2
31         Read Until      mininet>
32         Write   h2 ping -w 6 h1
33         ${result}    Read Until         mininet>
34         Should Contain   ${result}   0% packet loss
35         Should Not Contain    ${result}    duplicates
36