mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-17 12:50:43 +01:00
18 lines
973 B
Bash
Executable File
18 lines
973 B
Bash
Executable File
#!/bin/bash
|
|
# added 2016-03-30 by singh.janmejay
|
|
# This file is part of the rsyslog project, released under ASL 2.0
|
|
echo ===============================================================================
|
|
echo \[stats-json-es.sh\]: test for verifying stats are reported correctly json-elasticsearch format
|
|
. $srcdir/diag.sh init
|
|
. $srcdir/diag.sh startup stats-json-es.conf
|
|
. $srcdir/diag.sh injectmsg-litteral $srcdir/testsuites/dynstats_input_1
|
|
. $srcdir/diag.sh wait-queueempty
|
|
. $srcdir/diag.sh wait-for-stats-flush 'rsyslog.out.stats.log'
|
|
echo doing shutdown
|
|
. $srcdir/diag.sh shutdown-when-empty
|
|
echo wait on shutdown
|
|
. $srcdir/diag.sh wait-shutdown
|
|
. $srcdir/diag.sh custom-content-check '{ "name": "an_action_that_is_never_called", "origin": "core.action", "processed": 0, "failed": 0, "suspended": 0, "suspended!duration": 0, "resumed": 0 }' 'rsyslog.out.stats.log'
|
|
. $srcdir/diag.sh custom-assert-content-missing '@cee' 'rsyslog.out.stats.log'
|
|
. $srcdir/diag.sh exit
|