Tidy new and updated test suites.
[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 Verification of TSDR HBase Feature Installation
13     [Documentation]    Install and Verify the TSDR Cassandra Syslog Features
14     Wait Until Keyword Succeeds    24x    10 sec    Check Karaf Log Has Messages    tsdr.syslog
15     Verify Feature Is Installed    odl-tsdr-hbase
16     Verify Feature Is Installed    odl-tsdr-syslog-collector
17
18 Sending syslog to ODL Syslog collector using Logger command
19     [Documentation]    Verifying if syslogs is collected and getting stored.
20     Query the Data from HBaseClient    truncate 'SYSLOG'
21     : FOR    ${key}    IN ZIP    &{syslog_facility}
22     \    ${value}=    Get From Dictionary    ${syslog_facility}    ${key}
23     \    ${f_value}=    Evaluate    ${value} * 8
24     \    Generate Syslog    ${f_value}
25     ${output}=    Query the Data from HBaseClient    scan 'SYSLOG'
26     Should Contain X Times    ${output}    ${MESSAGE_PATTERN}    1
27     : FOR    ${key}    IN ZIP    &{syslog_facility}
28     \    ${value}=    Get From Dictionary    ${syslog_facility}    ${key}
29     \    ${f_value}=    Evaluate    ${value} * 8
30     \    Should Match    ${output}    *${f_value}>*