aboutsummaryrefslogtreecommitdiffstats
path: root/test/functional/cases/411_logging/000_console/000_systemd_logger.robot
blob: 88178461bb1b3d077e309ad852bd03dedf8612fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
*** Settings ***
Suite Setup     Rspamd Setup
Suite Teardown  Systemd Teardown
Library         ${RSPAMD_TESTDIR}/lib/rspamd.py
Resource        ${RSPAMD_TESTDIR}/lib/rspamd.robot
Variables       ${RSPAMD_TESTDIR}/lib/vars.py

*** Variables ***
${CONFIG}                         ${RSPAMD_TESTDIR}/configs/loggingtest.conf
${RSPAMD_LOGGINGTYPE}             console
${RSPAMD_JSON}                    false
${RSPAMD_SYSTEMD}                 true
${RSPAMD_SCOPE}                   Suite

*** Test Cases ***
EMPTY TEST
  Pass Execution  No worries

*** Keywords ***
Systemd Teardown
  Touch  ${RSPAMD_TMPDIR}/rspamd.log
  Rspamd Teardown
  ${log} =  Get File  ${EXECDIR}/robot-save/rspamd.stderr.last
  Should Match Regexp  ${log}  \\n\\(main\\) lua; lua_cfg_transform\\.lua:\\d+: overriding actions from the legacy metric settings\\n