dd0d8d97dff7804047ba8c94003e8303af4382ae
[integration/test.git] / csit / suites / tsdr / HBase / 050_SyslogTable.robot
1 *** Settings ***
2 Documentation     Test suite for HBase Syslog Verification
3 Library           SSHLibrary
4 Library           Collections
5 Library           String
6 Library           ../../../libraries/Common.py
7 Resource          ../../../libraries/KarafKeywords.robot
8 Resource          ../../../libraries/TsdrUtils.robot
9 Variables         ../../../variables/Variables.py
10
11 *** Test Cases ***
12
13 Verification of TSDR HBase Feature Installation
14     [Documentation]    Install and Verify the TSDR Cassandra Syslog Features
15     Wait Until Keyword Succeeds    24x    10 sec    Check Karaf Log Has Messages    tsdr.syslog
16     Verify Feature Is Installed    odl-tsdr-hbase
17     Verify Feature Is Installed    odl-tsdr-syslog-collector
18
19 Sending syslog to ODL Syslog collector using Logger command
20     [Documentation]    Verifying if syslogs is collected and getting stored.
21     Query the Data from HBaseClient    truncate 'SYSLOG'
22     :FOR    ${key}    IN ZIP   &{syslog_facility}
23     \    ${value}=    Get From Dictionary    ${syslog_facility}    ${key}
24     \    ${f_value}=    Evaluate    ${value} * 8
25     \    Generate Syslog    ${f_value}
26
27     ${output}=    Query the Data from HBaseClient    scan 'SYSLOG'
28     Should Contain X Times    ${output}    ${MESSAGE_PATTERN}    1
29     :FOR    ${key}    IN ZIP   &{syslog_facility}
30     \    ${value}=    Get From Dictionary    ${syslog_facility}    ${key}
31     \    ${f_value}=    Evaluate    ${value} * 8
32     \    Should Match    ${output}    *${f_value}>*
33