760f258224d357b3cd950f8fba6cc7fbb2c10665
[integration/test.git] / csit / suites / tsdr / HBase / 030_FlowTableMetrics.robot
1 *** Settings ***
2 Documentation     Test suite for Hbase DataStore Flow Table Stats Verification
3 Suite Setup       Start Tsdr Suite
4 Suite Teardown    Stop Tsdr Suite
5 Library           SSHLibrary
6 Library           Collections
7 Library           String
8 Library           ../../../libraries/Common.py
9 Resource          ../../../libraries/KarafKeywords.robot
10 Resource          ../../../libraries/TsdrUtils.robot
11 Variables         ../../../variables/Variables.py
12
13 *** Variables ***
14 ${TSDR_FLOWTABLE_STATS}    tsdr:list FLOWTABLESTATS
15
16 *** Test Cases ***
17 Verification of TSDR FlowTableMetrics
18     [Documentation]    Verify the TSDR FlowTableMetrics
19     Wait Until Keyword Succeeds    120s    1s    Verify the Metric is Collected?    ${TSDR_FLOWTABLE_STATS}    MN
20     ${output}=    Issue Command On Karaf Console    ${TSDR_FLOWTABLE_STATS}    ${ODL_SYSTEM_IP}    ${KARAF_SHELL_PORT}    30
21     Should Contain    ${output}    MN
22
23 Verification of FlowTableMetrics on Karaf Console
24     [Documentation]    Verify the FlowTableMetrics has been updated thru tsdr:list command on karaf console
25     ${tsdr_cmd}=    Concatenate the String    ${TSDR_FLOWTABLE_STATS}    | grep ActiveFlows | head
26     ${output}=    Issue Command On Karaf Console    ${tsdr_cmd}    ${ODL_SYSTEM_IP}    ${KARAF_SHELL_PORT}    90
27     Should Contain    ${output}    ActiveFlows
28
29 Verification of FlowTableMetrics-ActiveFlows on HBase Client
30     [Documentation]    Verify the FlowTableMetrics has been updated on HBase Datastore
31     Verify the Metrics Attributes on Hbase Client    ActiveFlows    Node:openflow:1,Table:0    FLOWTABLESTATS
32
33 Verification of FlowTableMetrics-PacketMatch on HBase Client
34     [Documentation]    Verify the FlowTableMetrics has been updated on HBase Datastore
35     Verify the Metrics Attributes on Hbase Client    PacketMatch    Node:openflow:1,Table:0    FLOWTABLESTATS
36
37 Verification of FlowTableMetrics-PacketLookup on HBase Client
38     [Documentation]    Verify the FlowTableMetrics has been updated on HBase Datastore
39     Verify the Metrics Attributes on Hbase Client    PacketLookup    Node:openflow:1,Table:0    FLOWTABLESTATS