Introducing karaf-all and karaf-l2switch suites
[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         Sleep   5
20         ${result}    Read
21         Should Contain   ${result}   0% dropped
22         Should Contain X Times    ${result}   h1    3
23         Should Contain X Times    ${result}   h2    3
24         Should Contain X Times    ${result}   h3    3
25         Should Not Contain    ${result}    X
26
27
28 Ping h1 to h2
29     [Documentation]    Ping h1 to h2, verify no packet loss or duplicates
30     [Tags]   Get
31         Write   h1 ping -w 6 h2
32         Sleep   5
33         Write   h2 ping -w 6 h1
34         Sleep   5
35         ${result}    Read
36         Should Contain   ${result}   0% packet loss
37         Should Not Contain    ${result}    duplicates
38