Upgrade RF syntax for v3.2 compatibility
[integration/test.git] / csit / suites / tsdr / HSQLDB / 060_syslog_Collector.robot
1 *** Settings ***
2 Documentation     Test suite for HSQLDB DataStore Syslog Stats 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 HSQLDB Feature Installation
13     [Documentation]    Install and Verify the TSDR Cassandra Syslog Features
14     COMMENT    Install a Feature    odl-tsdr-hsqldb-all    ${ODL_SYSTEM_IP}    ${KARAF_SHELL_PORT}    60
15     COMMENT    Install a Feature    odl-tsdr-syslog-collector    ${ODL_SYSTEM_IP}    ${KARAF_SHELL_PORT}    60
16     Wait Until Keyword Succeeds    24x    10 sec    Check Karaf Log Has Messages    tsdr.syslog
17     Verify Feature Is Installed    odl-tsdr-hsqldb
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 getting generated.
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     END
27     Wait Until Keyword Succeeds    24x    10 sec    Check HSQLDB    1    SYSLOG | grep SYSLOG | wc -l
28
29 Verifying TSDR Data Store For Syslog Entries
30     [Documentation]    Verifying if syslogs is getting stored.
31     ${output}=    Issue Command On Karaf Console    tsdr:list SYSLOG
32     Should Contain X Times    ${output}    SYSLOG    1
33     Should Contain    ${output}    ${MESSAGE_PATTERN}