rsyslog/tests/glbl-internalmsg_severity-debug-shown.sh
Rainer Gerhards d9d12071f3
change default of internalmsg.severity global parameter, add tests
also fix a problem in handling this parameter when rsyslog processed
internal messages itself (it did not work). As the parameter was
introduced today, we do not flag this follow-up commit as "bugfix".
The issue was noticed when we added the additional tests.

see also https://github.com/rsyslog/rsyslog/issues/3650
see also https://github.com/rsyslog/rsyslog/issues/3639
2019-05-09 12:13:45 +02:00

18 lines
619 B
Bash
Executable File

#!/bin/bash
# check that info-severity messages are actually emitted; we use
# lookup table as a simple sample to get such a message.
# addd 2019-05-07 by RGerhards, released under ASL 2.0
. ${srcdir:=.}/diag.sh init
generate_conf
add_conf '
global(internalmsg.severity="debug")
lookup_table(name="xlate" file="'$RSYSLOG_DYNNAME'.xlate.lkp_tbl" reloadOnHUP="on")
action(type="omfile" file="'$RSYSLOG_OUT_LOG'")
'
cp -f $srcdir/testsuites/xlate.lkp_tbl $RSYSLOG_DYNNAME.xlate.lkp_tbl
startup
shutdown_when_empty
wait_shutdown
content_check "rsyslogd fully started up and initialized - begin actual processing"
exit_test