Fixing mininet reads so that we always clear mininet
[integration/test.git] / test / csit / suites / sp-of13 / 020__MD_SAL_NSF_OF13 / 020__restconf_statistics.txt
1 *** Settings ***
2 Documentation     Test suite for RESTCONF statistics
3 Suite Setup       Create Session   session   http://${CONTROLLER}:${PORT}   auth=${AUTH}   headers=${HEADERS_XML}
4 Suite Teardown    Delete All Sessions
5 Library           Collections
6 Library           ../../../libraries/RequestsLibrary.py
7 Library           ../../../libraries/Common.py
8 Variables         ../../../variables/Variables.py
9
10 *** Variables ***
11 ${REST_CONTEXT}    /restconf/operational/opendaylight-inventory:nodes
12
13 *** Test Cases ***      
14 Get Stats for node 1
15     [Documentation]    Get the stats for a node
16         ${resp}    Get    session    ${REST_CONTEXT}/node/openflow:1
17         Should Be Equal As Strings   ${resp.status_code}    200
18         Should Contain     ${resp.content}      opendaylight-port-statistics
19         Should Contain     ${resp.content}      opendaylight-flow-table-statistics
20
21 Get Stats for node 2
22     [Documentation]    Get the stats for a node
23         ${resp}    Get    session    ${REST_CONTEXT}/node/openflow:2
24         Should Be Equal As Strings   ${resp.status_code}    200
25         Should Contain     ${resp.content}      opendaylight-port-statistics
26         Should Contain     ${resp.content}      opendaylight-flow-table-statistics
27
28 Get Stats for node 3
29     [Documentation]    Get the stats for a node
30         ${resp}    Get    session    ${REST_CONTEXT}/node/openflow:3
31         Should Be Equal As Strings   ${resp.status_code}    200
32         Should Contain     ${resp.content}      opendaylight-port-statistics
33         Should Contain     ${resp.content}      opendaylight-flow-table-statistics