Remove remnants of sfc project
[integration/test.git] / csit / suites / tsdr / H2 / 020_FlowMetrics.robot
1 *** Settings ***
2 Documentation       Test suite for H2 DataStore Flow Metrics Verification
3
4 Library             SSHLibrary
5 Library             Collections
6 Library             String
7 Library             ../../../libraries/Common.py
8 Resource            ../../../libraries/KarafKeywords.robot
9 Resource            ../../../libraries/TsdrUtils.robot
10 Variables           ../../../variables/Variables.py
11
12 Suite Setup         Start Tsdr Suite
13 Suite Teardown      Stop Tsdr Suite
14
15
16 *** Variables ***
17 @{FLOW_METRICS}         PacketCount    ByteCount
18 ${TSDR_FLOWSTATS}       tsdr:list FlowStats
19
20
21 *** Test Cases ***
22 Verification of TSDR FlowMetrics
23     [Documentation]    Verify the TSDR FlowStats
24     Wait Until Keyword Succeeds    60s    1s    Verify the Metric is Collected?    ${TSDR_FLOWSTATS}    PacketCount
25     ${output}=    Issue Command On Karaf Console    ${TSDR_FLOWSTATS}    ${ODL_SYSTEM_IP}    ${KARAF_SHELL_PORT}    30
26     FOR    ${list}    IN    @{FLOW_METRICS}
27         Should Contain    ${output}    ${list}
28     END
29
30 Verify FlowStats-Attributes on H2 Datastore using JDBC Client
31     [Documentation]    Verify the PortStats,attributes on H2 Datastore using JDBC Client
32     FOR    ${list}    IN    @{FLOW_METRICS}
33         ${output}=    Query Metrics on H2 Datastore    FLOWSTATS    ${list}
34         Should Contain    ${output}    ${list}
35     END