2 Documentation Test suite for RESTCONF statistics
3 Suite Setup Create Session session http://${CONTROLLER}:8080 auth=${AUTH} headers=${HEADERS_XML}
4 Suite Teardown Delete All Sessions
6 Library ../../../libraries/RequestsLibrary.py
7 Library ../../../libraries/Common.py
8 Variables ../../../variables/Variables.py
11 ${REST_CONTEXT} /restconf/operational/opendaylight-inventory:nodes
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
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
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