Remove remnants of sfc project
[integration/test.git] / csit / suites / tsdr / HSQLDB / 030_FlowTableMetrics.robot
1 *** Settings ***
2 Documentation       Test suite for HSQLDB DataStore Flow Table Metrics Verification
3
4 Library             SSHLibrary
5 Library             Collections
6 Library             String
7 Library             ../../../libraries/Common.py
8 Resource            ../../../libraries/CompareStream.robot
9 Resource            ../../../libraries/KarafKeywords.robot
10 Resource            ../../../libraries/TsdrUtils.robot
11 Variables           ../../../variables/Variables.py
12
13 Suite Setup         Start Tsdr Suite
14 Suite Teardown      Stop Tsdr Suite
15
16
17 *** Variables ***
18 @{FLOWTABLE_METRICS}    ActiveFlows    PacketLookup    PacketMatch
19
20
21 *** Test Cases ***
22 Init Variables
23     [Documentation]    Initialize ODL version specific variables
24     Init Variables Master
25
26 Verification of TSDR FLOWTABLESTATS
27     [Documentation]    Verify the TSDR FlowiTableStats
28     Wait Until Keyword Succeeds
29     ...    60s
30     ...    1s
31     ...    Verify the Metric is Collected?
32     ...    ${TSDR_FLOWTABLE_STATS}| grep ActiveFlow | grep openflow:1
33     ...    FLOWTABLESTATS
34     ${output}=    Issue Command On Karaf Console
35     ...    ${TSDR_FLOWTABLE_STATS}| grep openflow:1 | head
36     ...    ${ODL_SYSTEM_IP}
37     ...    ${KARAF_SHELL_PORT}
38     ...    180
39     FOR    ${list}    IN    @{FLOWTABLE_METRICS}
40         Should Contain    ${output}    ${list}
41     END
42
43
44 *** Keywords ***
45 Init Variables Master
46     [Documentation]    Sets variables specific to latest(master) version
47     Set Suite Variable    ${TSDR_FLOWTABLE_STATS}    tsdr:list FLOWTABLESTATS