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