Replace Bierman02 with RFC8040 for OpenFlow Plugin
[integration/test.git] / csit / suites / openflowplugin / MD_SAL_NSF_OF13 / 030_restconf_statistics.robot
1 *** Settings ***
2 Documentation     Test suite for RESTCONF statistics
3 Suite Setup       Create Session    session    http://${ODL_SYSTEM_IP}:${RESTCONFPORT}    auth=${AUTH}    headers=${HEADERS_XML}
4 Suite Teardown    Delete All Sessions
5 Library           Collections
6 Library           RequestsLibrary
7 Library           ../../../libraries/Common.py
8 Variables         ../../../variables/Variables.py
9 Resource          ../../../libraries/Utils.robot
10 Resource          ../../../variables/openflowplugin/Variables.robot
11
12 *** Variables ***
13 @{node_list}      openflow:1    openflow:2    openflow:3
14
15 *** Test Cases ***
16 Get Stats for all nodes
17     [Documentation]    Get the stats for all nodes
18     Wait Until Keyword Succeeds    10s    2s    Check For Elements At URI    ${RFC8040_OPERATIONAL_NODES_API}    ${node_list}
19
20 Get Stats for node 1
21     [Documentation]    Get the stats for a node
22     Wait Until Keyword Succeeds    10s    2s    Check Nodes Stats    openflow%3A1
23
24 Get Stats for node 2
25     [Documentation]    Get the stats for a node
26     Wait Until Keyword Succeeds    10s    2s    Check Nodes Stats    openflow%3A2
27
28 Get Stats for node 3
29     [Documentation]    Get the stats for a node
30     Wait Until Keyword Succeeds    10s    2s    Check Nodes Stats    openflow%3A3