mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-17 12:50:43 +01:00
Most of the tests will not work in other default shells like on Freebsd or Solaris. So we make /bin/bash default now.
24 lines
721 B
Bash
Executable File
24 lines
721 B
Bash
Executable File
#!/bin/bash
|
|
# This file is part of the rsyslog project, released under ASL 2.0
|
|
echo ===============================================================================
|
|
echo \[es-bulk-errfile-popul-erronly\]: basic test for elasticsearch functionality
|
|
. $srcdir/diag.sh init
|
|
. $srcdir/diag.sh es-init
|
|
echo '{ "name" : "foo" }
|
|
{"name": bar"}
|
|
{"name": "baz"}
|
|
{"name": foz"}' > inESData.inputfile
|
|
. $srcdir/diag.sh startup es-bulk-errfile-popul-erronly.conf
|
|
. $srcdir/diag.sh shutdown-when-empty
|
|
. $srcdir/diag.sh wait-shutdown
|
|
rm -f inESData.inputfile
|
|
|
|
python $srcdir/elasticsearch-error-format-check.py erroronly
|
|
|
|
if [ $? -ne 0 ]
|
|
then
|
|
echo "error: Format for error file different! " $?
|
|
exit 1
|
|
fi
|
|
. $srcdir/diag.sh exit
|