Merge "removing failing tests"
[integration/test.git] / test / csit / suites / karaf-l2switch / 010__AddressTracking_OF13 / 010__restconf_inv_addresses.txt
1 *** Settings ***
2 Documentation     Test suite for AddressObservations in RESTCONF inventory
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 ${IP_1}           "10.0.0.1"
14 ${IP_2}           "10.0.0.2"
15 ${IP_3}           "10.0.0.3"
16
17 *** Test Cases ***
18 Get list of nodes
19     [Documentation]    Get the inventory, should not contain address observations
20         ${resp}    Get    session    ${REST_CONTEXT}
21         Should Be Equal As Strings    ${resp.status_code}    200
22         Should Contain     ${resp.content}      openflow:1
23         Should Contain     ${resp.content}      openflow:2
24         Should Contain     ${resp.content}      openflow:3
25         Should Contain X Times    ${resp.content}   forwarding  4
26         Should Not Contain    ${resp.content}    ${IP_1}
27         Should Not Contain    ${resp.content}    ${IP_2}
28         Should Not Contain    ${resp.content}    ${IP_3}
29
30 Ping All
31     [Documentation]    Pingall, verify no packet loss
32     [Tags]   Get
33         Write   pingall
34         ${result}    Read Until         mininet>
35         Should Contain   ${result}   0% dropped
36         Should Not Contain    ${result}    X
37         Sleep   3 
38
39 Get node 1 addresses
40     [Documentation]    Get the address observations for node 1
41         ${resp}    Get    session    ${REST_CONTEXT}/node/openflow:1
42         Should Be Equal As Strings   ${resp.status_code}    200
43         Should Contain     ${resp.content}      openflow:1:1
44         Should Contain     ${resp.content}      openflow:1:2
45         Should Contain     ${resp.content}      addresses
46         Should Contain X Times    ${resp.content}   ${IP_1}  1
47         Should Not Contain    ${resp.content}    ${IP_2}
48         Should Not Contain    ${resp.content}    ${IP_3}
49
50 Get node 2 addresses
51     [Documentation]    Get the address observations for node 2
52         ${resp}    Get    session    ${REST_CONTEXT}/node/openflow:2
53         Should Be Equal As Strings   ${resp.status_code}    200
54         Should Contain     ${resp.content}      openflow:2:1
55         Should Contain     ${resp.content}      openflow:2:2
56         Should Contain     ${resp.content}      openflow:2:3
57         Should Contain     ${resp.content}      addresses
58         Should Not Contain    ${resp.content}    ${IP_1}
59         Should Contain X Times    ${resp.content}   ${IP_2}  1
60         Should Not Contain    ${resp.content}    ${IP_3}
61
62 Get node 3 addresses
63     [Documentation]    Get the address observations for node 3
64         ${resp}    Get    session    ${REST_CONTEXT}/node/openflow:3
65         Should Be Equal As Strings   ${resp.status_code}    200
66         Should Contain     ${resp.content}      openflow:3:1
67         Should Contain     ${resp.content}      openflow:3:2
68         Should Contain     ${resp.content}      addresses
69         Should Not Contain    ${resp.content}    ${IP_1}
70         Should Not Contain    ${resp.content}    ${IP_2}
71         Should Contain X Times    ${resp.content}   ${IP_3}  1