Fixing mininet reads so that we always clear mininet
[integration/test.git] / test / csit / suites / base-of13 / 040__AD_SAL_NSF_OF13 / 020__statistics_manager.txt
1 *** Settings ***
2 Documentation     Test suite for Statistics Manager
3 Suite Setup       Create Session   session   http://${CONTROLLER}:${RESTPORT}   auth=${AUTH}   headers=${HEADERS}
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 ${node1}       "00:00:00:00:00:00:00:01"
12 ${node2}       "00:00:00:00:00:00:00:02"
13 ${node3}       "00:00:00:00:00:00:00:03"
14 ${key}             portStatistics
15 ${REST_CONTEXT}    /controller/nb/v2/statistics
16
17 *** Test Cases ***
18 get port stats
19     [Documentation]    Show port stats and validate result
20     [Tags]    get
21     ${resp}    Get    session    ${REST_CONTEXT}/${CONTAINER}/port
22     Should Be Equal As Strings    ${resp.status_code}    200 
23     Should Contain X Times   ${resp.content}    ${node1}    4
24     Should Contain X Times   ${resp.content}    ${node2}    5
25     Should Contain X Times   ${resp.content}    ${node3}    5
26 get flow stats
27     [Documentation]    Show flow stats and validate result
28     [Tags]    get
29     ${resp}    Get    session    ${REST_CONTEXT}/${CONTAINER}/flow
30     Should Be Equal As Strings    ${resp.status_code}    200 
31     Should Contain    ${resp.content}    ${node1}
32     Should Contain    ${resp.content}    ${node2}
33     Should Contain    ${resp.content}    ${node3}
34 get table stats
35     [Documentation]    Show flow stats and validate result
36     [Tags]    get
37     ${resp}    Get    session    ${REST_CONTEXT}/${CONTAINER}/table
38     Should Be Equal As Strings    ${resp.status_code}    200 
39     Should Contain    ${resp.content}    ${node1}
40     Should Contain    ${resp.content}    ${node2}
41     Should Contain    ${resp.content}    ${node3}
42
43