f842c5a9cfd8b1edcfceab020beaa5cce3e205e3
[integration/test.git] / test / csit / suites / karaf-compatible / 020__MD_SAL_NSF_OF13 / 030__restconf_statistics.txt
1 *** Settings ***
2 Documentation     Test suite for RESTCONF statistics
3 Suite Setup       Create Session    session    http://${CONTROLLER}:${RESTCONFPORT}    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 Resource          ../../../libraries/Utils.txt
10
11 *** Variables ***
12 ${REST_CONTEXT}    /restconf/operational/opendaylight-inventory:nodes
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 a node
18     Wait Until Keyword Succeeds    30s    2s    Ensure All Nodes Are In Response    ${REST_CONTEXT}    ${node_list}
19 Get Stats for node 1
20     [Documentation]    Get the stats for a node
21     Wait Until Keyword Succeeds    60s    2s    Check Nodes Stats    openflow:1
22
23 Get Stats for node 2
24     [Documentation]    Get the stats for a node
25     Wait Until Keyword Succeeds    60s    2s    Check Nodes Stats    openflow:2
26
27 Get Stats for node 3
28     [Documentation]    Get the stats for a node
29     Wait Until Keyword Succeeds    60s    2s    Check Nodes Stats    openflow:3