Remove Beryllium specific test code
[integration/test.git] / csit / suites / tsdr / HBase / 040_QueueMetrics.robot
1 *** Settings ***
2 Documentation     Test suite for Hbase DataStore Queue Stats Verification
3 Suite Setup       Run Keywords    Start Tsdr Suite    Configuration of Queue on Switch
4 Suite Teardown    Stop Tsdr Suite
5 Library           SSHLibrary
6 Library           Collections
7 Library           String
8 Library           ../../../libraries/Common.py
9 Resource          ../../../libraries/CompareStream.robot
10 Resource          ../../../libraries/KarafKeywords.robot
11 Resource          ../../../libraries/TsdrUtils.robot
12 Variables         ../../../variables/Variables.py
13
14 *** Variables ***
15 @{QUEUE_METRICS}    TransmittedPackets    TransmittedBytes    TransmissionErrors
16
17 *** Test Cases ***
18 Init Variables
19     [Documentation]    Initialize ODL version specific variables using resource CompareStream.
20     Init Variables Master
21
22 Verify the Queue Metrics attributes exist thru Karaf console
23     [Documentation]    Verify the QueueMetrics attributes exist on Karaf Console
24     Wait Until Keyword Succeeds    180s    1s    Verify the Metric is Collected?    ${TSDR_QUEUESTATS}    Transmitted
25     ${output}=    Issue Command On Karaf Console    ${TSDR_QUEUESTATS}    ${ODL_SYSTEM_IP}    ${KARAF_SHELL_PORT}    90
26     : FOR    ${list}    IN    @{QUEUE_METRICS}
27     \    Should Contain    ${output}    ${list}
28
29 Verification of QueueMetrics-TransmittedPackets on Karaf Console
30     [Documentation]    Verify the QueueMetrics has been updated thru tsdr:list command on karaf console
31     ${tsdr_cmd}=    Concatenate the String    ${TSDR_QUEUESTATS}    | grep TransmittedPackets | head
32     ${output}=    Issue Command On Karaf Console    ${tsdr_cmd}    ${ODL_SYSTEM_IP}    ${KARAF_SHELL_PORT}    90
33     Should Contain    ${output}    TransmittedPackets
34
35 Verification of QueueMetrics-TransmittedPackets on HBase Client
36     [Documentation]    Verify the QueueMetrics has been updated on HBase Datastore
37     Verify the Metrics Attributes on Hbase Client    TransmittedPackets    ${node_connector}    ${queuestats}
38
39 Verification of QueueMetrics-TransmittedBytes on HBase Client
40     [Documentation]    Verify the QueueMetrics has been updated on HBase Datastore
41     Verify the Metrics Attributes on Hbase Client    TransmittedBytes    ${node_connector}    ${queuestats}
42
43 Verification of QueueMetrics-TransmissionErrors on HBase Client
44     [Documentation]    Verify the QueueMetrics has been updated on HBase Datastore
45     Verify the Metrics Attributes on Hbase Client    TransmissionErrors    ${node_connector}    ${queuestats}
46
47 *** Keywords ***
48 Configuration of Queue on Switch
49     [Documentation]    Queue configuration on openvswitch
50     Configure the Queue on Switch    s2-eth2
51
52 Init Variables Master
53     [Documentation]    Sets variables specific to latest(master) version
54     Set Suite Variable    ${TSDR_QUEUESTATS}    tsdr:list QUEUESTATS
55     set Suite Variable    ${node_connector}    Node:openflow:2
56     set suite Variable    ${queuestats}    QUEUESTATS