mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-15 12:50:41 +01:00
Make existing test more reliable and cover new bug scenario. see also https://github.com/rsyslog/rsyslog/issues/4011
20 lines
677 B
Bash
Executable File
20 lines
677 B
Bash
Executable File
#!/bin/bash
|
|
# check disabling a config construct via config.enable. Most
|
|
# importantly ensure that it does not emit any error messages
|
|
# for object parameters.
|
|
# addd 2019-12-09 by RGerhards, released under ASL 2.0
|
|
. ${srcdir:=.}/diag.sh init
|
|
generate_conf
|
|
add_conf '
|
|
module(load="../plugins/imfile/.libs/imfile")
|
|
input(type="imfile" file="/tmp/notyet.txt" tag="testing-tag" config.enabled="on" invalid.param="error")
|
|
action(type="omfile" file="'$RSYSLOG_OUT_LOG'")
|
|
'
|
|
startup
|
|
shutdown_when_empty
|
|
wait_shutdown
|
|
content_check 'imfile: on startup file'
|
|
content_check --regex 'parameter.*invalid.param.*not known'
|
|
check_not_present 'parameter.*config.enabled.*not known'
|
|
exit_test
|