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