rsyslog/tests/testsuites/execonlywhenprevsuspended-queue.conf
Rainer Gerhards 3e4dabd229 testbench: add check for "execonly...suspended" with action on queue
This exposes a problem with the current code base, as such the
test will currently fail. A bugfix will follow.

see also https://github.com/rsyslog/rsyslog/issues/375
2015-05-27 10:27:52 +02:00

19 lines
585 B
Plaintext

# See main .sh file for info
# rgerhards, 2015-05-27
main_queue(queue.workerthreads="1")
$IncludeConfig diag-common.conf
# omtesting provides the ability to cause "SUSPENDED" action state
module(load="../plugins/omtesting/.libs/omtesting")
$MainMsgQueueTimeoutShutdown 100000
template(name="outfmt" type="string" string="%msg:F,58:2%\n")
:msg, contains, "msgnum:" {
:omtesting:fail 2 0 # omtesting has only legacy params!
action(type="omfile" file="rsyslog.out.log" template="outfmt"
queue.type="linkedList"
action.ExecOnlyWhenPreviousIsSuspended="on"
)
}