Update Robot Framework format - step 15
[integration/test.git] / csit / suites / tsdr / HSQLDB / 060_syslog_Collector.robot
1 *** Settings ***
2 Documentation       Test suite for HSQLDB DataStore Syslog Stats 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 HSQLDB Feature Installation
15     [Documentation]    Install and Verify the TSDR Cassandra Syslog Features
16     COMMENT    Install a Feature    odl-tsdr-hsqldb-all    ${ODL_SYSTEM_IP}    ${KARAF_SHELL_PORT}    60
17     COMMENT    Install a Feature    odl-tsdr-syslog-collector    ${ODL_SYSTEM_IP}    ${KARAF_SHELL_PORT}    60
18     Wait Until Keyword Succeeds    24x    10 sec    Check Karaf Log Has Messages    tsdr.syslog
19     Verify Feature Is Installed    odl-tsdr-hsqldb
20     Verify Feature Is Installed    odl-tsdr-syslog-collector
21
22 Sending syslog to ODL Syslog collector using Logger command
23     [Documentation]    Verifying if syslogs is getting generated.
24     FOR    ${key}    IN ZIP    &{syslog_facility}
25         ${value}=    Get From Dictionary    ${syslog_facility}    ${key}
26         ${f_value}=    Evaluate    ${value} * 8
27         Generate Syslog    ${f_value}
28     END
29     Wait Until Keyword Succeeds    24x    10 sec    Check HSQLDB    1    SYSLOG | grep SYSLOG | wc -l
30
31 Verifying TSDR Data Store For Syslog Entries
32     [Documentation]    Verifying if syslogs is getting stored.
33     ${output}=    Issue Command On Karaf Console    tsdr:list SYSLOG
34     Should Contain X Times    ${output}    SYSLOG    1
35     Should Contain    ${output}    ${MESSAGE_PATTERN}