PascalWithopf
bd8a1b8136
freeBSD: disable tests that are not working
...
FreeBSD is not able to run all tests, therefore all tests that can't be run will be disabled.
2017-10-27 12:18:59 +02:00
Rainer Gerhards
87a831d6e1
Merge pull request #1901 from PascalWithopf/imudp_address_error
...
imudp: add error msg when listener wasn't created
2017-10-26 09:40:37 +02:00
Rainer Gerhards
bf9fd03639
testbench: implement basic test for imjournal
...
this ensures that the module is at least loading and doing
part of its work.
see also https://github.com/rsyslog/rsyslog/issues/1895
closes https://github.com/rsyslog/rsyslog/issues/164
2017-10-26 08:47:29 +02:00
PascalWithopf
aaa4f76721
imudp: add test for new error msg
...
Adds a test for the new error message when a listener could not be created.
2017-10-25 15:22:47 +02:00
PascalWithopf
03a5c4332b
omrelp: add test for certificate check
...
Test checks that there is no Segmentation Fault when a certificate cannot be accessed.
2017-10-25 11:48:13 +02:00
Rainer Gerhards
8feb529984
CI: use clang 5.0 for static analyzer
2017-10-24 11:23:29 +02:00
Rainer Gerhards
cc3b61bfaa
CI: add script to run static analyzer
2017-10-23 14:04:57 +02:00
Rainer Gerhards
9015b45c1e
travis: enable building mmcount
...
while it is "just" a contributed module, we should make sure it
builds at least
closes https://github.com/rsyslog/rsyslog/issues/1879
2017-10-23 10:18:36 +02:00
Rainer Gerhards
f4f53b06eb
Merge pull request #1859 from rgerhards/i-1832
...
omfile: hande file open error via SUSPEND mode
2017-10-19 13:34:39 +02:00
Rainer Gerhards
b85f2cc6d5
Merge pull request #1857 from rgerhards/i-1122
...
core bugfix: potential segfault when shutting down rsyslog
2017-10-19 13:33:18 +02:00
Rainer Gerhards
c503c70913
Merge pull request #1855 from rgerhards/i-1838
...
fix imgssapi
2017-10-19 11:14:09 +02:00
Rainer Gerhards
f4540ec6d6
build: remove compiler warnings from testbench tool syslog_caller
2017-10-18 12:45:03 +02:00
Rainer Gerhards
75ed9c0955
omfile: hande file open error via SUSPEND mode
...
For a while, this lead to suspension as the data error was
not detected by the rule engine. This has changed with fixes
in 8.30.0. I asked users what they prefer (and expect) and
everyone meant it should still be handled via suspension. See
github tracker below for more details.
closes https://github.com/rsyslog/rsyslog/issues/1832
2017-10-18 11:34:07 +02:00
Rainer Gerhards
4b564e760a
testbench: add test for nested ruleset termination
...
see also https://github.com/rsyslog/rsyslog/issues/1122
2017-10-18 11:08:42 +02:00
Rainer Gerhards
2fd3fcca1e
travis: remove temporary package override
...
this was needed while libfastjson 0.99.7 was not released
We just uncomment it so that the override can be easily re-enabled
the next time a similar need arises (what routinely happens)
closes https://github.com/rsyslog/rsyslog/issues/1848
2017-10-18 08:20:22 +02:00
Rainer Gerhards
07ea27a2e6
travis: enable build of gssapi components
2017-10-18 08:07:39 +02:00
Rainer Gerhards
c0b80d8756
testbench: harden tests against hanging previous instances
...
cleaning at exit does not always work because it sometimes is
not reached, especially in cases that go really wrong
2017-10-17 10:27:48 +02:00
Rainer Gerhards
3ebe1dcaa7
solaris CI: fix invalid build of librelp dependency
...
looks like a left-over from previous testing :-(
2017-10-17 10:27:48 +02:00
Rainer Gerhards
45d6de2821
testbench: enable relp tests on solaris
2017-10-17 10:27:42 +02:00
Rainer Gerhards
01fa86307b
Merge pull request #1846 from rgerhards/fix
...
cleanup: remove accidently added files from testbench
2017-10-16 11:43:36 +02:00
Rainer Gerhards
ad040017e8
Merge pull request #1807 from rgerhards/case-sensitive
...
handle (JSON) variables in case-insensitive way
2017-10-16 11:09:56 +02:00
Rainer Gerhards
8a0938d8cd
cleanup: remove accidently added files from testbench
2017-10-16 10:06:27 +02:00
Rainer Gerhards
78da65a19a
Merge pull request #1814 from mrworkman/rscript-format-time
...
WIP: Add RainerScript format_time() funcion to format UNIX timestamps.
2017-10-16 10:05:09 +02:00
Rainer Gerhards
6af7996d8b
testbench: add (commented-out) troubleshooting support for solaris
2017-10-15 10:59:21 +02:00
Rainer Gerhards
3c84972299
travis: add capability to temporarily use v8-devel package
...
required due to new-version requirement for next release.
Else we could not run the CI tests.
2017-10-13 18:51:37 +02:00
Rainer Gerhards
6fe8153be9
handle (JSON) variables in case-insensitive way
...
The variable system inside rsyslog is JSON based (for easy consumption
of JSON input, the prime source of structured data). In JSON, keys
("variable names") are case-sensitive. This causes constant problems
inside rsyslog configurations. A major nit is that case-insensitivity
option inside templates (even if turned on) does not work with JSON
keys because they of inner workings*1.
It is much more natural to treat keys in a case-INsensitive way (e.g.
"$!Key" and "$!key" are the same). We do not expect any real problems
out of this, as key names only differing in case is highly unlikely.
However, as it is possible we provide a way to enable case-sensitivity
via the global(variables.casesensitve="on") global config object.
Note that the default is to do case-insensitive matches. The reason
is that this is the right thing to do in almost all cases, and we do
not envision any problems at all in existing deployments.
*1 Note: case-insensitivity in rsyslog is achieved by converting all
names to lower case. So that the higher speed of strcmp() can be used.
The template option does actually that, convert the template keys to
lower case. Unfortunately, this does not work with JSON, as JSON keys
are NOT converted to lower case.
closes https://github.com/rsyslog/rsyslog/issues/1805
2017-10-13 09:39:56 +02:00
Rainer Gerhards
a80edc0492
testbench: do not spam test log
2017-10-12 16:14:22 +02:00
Rainer Gerhards
0017262e2c
testbench: add test for DATAFAIL handling in action object
2017-10-12 13:26:10 +02:00
Rainer Gerhards
c30a882b59
testbench: remove inconsistent omfile test
...
see also https://github.com/rsyslog/rsyslog/issues/1832
2017-10-12 13:26:10 +02:00
Stephen Workman
0ff332ab87
Remove NULL checks.
2017-10-11 17:19:34 -04:00
Stephen Workman
993f2ca187
Remove use of strftime(), for portability reasons.
2017-10-08 17:50:33 -04:00
Stephen Workman
7b5b6c2295
Use gmtime, and var2Number.
2017-10-05 21:31:26 -04:00
Stephen Workman
8d82d59343
Move formatting code to datetime.c, and update test.
2017-10-05 09:57:19 -04:00
Stephen Workman
2fdb567032
Set executable bit.
2017-10-05 06:25:43 -04:00
Stephen Workman
e6edbbc598
Wip.
2017-10-04 22:08:49 -04:00
Stephen Workman
8391e0fdf1
Initial testing of format_time().
2017-10-04 13:04:44 -04:00
Rainer Gerhards
98dc68df43
Merge pull request #1785 from PascalWithopf/tls_errorMsg
...
TLS errmsg more specific when file can not be read
2017-10-04 08:35:33 +02:00
Rainer Gerhards
3d1007ab70
Merge pull request #1803 from rgerhards/i-120
...
omrelp: fix segfault when rebindinterval parameter is used
2017-10-04 08:30:04 +02:00
Rainer Gerhards
50d10a6113
testbench: add test for omrelp rebind interval paramter
2017-09-29 11:37:38 +02:00
Thomas Deutschmann
023707617c
testbench: Run mmnormalize tests only when mmnormalize module was actually enabled
...
This commit fixes a regression caused by commit 835e645b73babf1290b691ef2ef137da206f6eff
and will restore the removed if nesting necessary to run mmnormalize tests
only when mmnormalize module was actually enabled.
Bug: https://bugs.gentoo.org/631246
2017-09-24 19:20:08 +02:00
PascalWithopf
d9ba47f52a
tls: test for errmsg when certificate is not found
...
This test is for checking that an error message is put out when
a certificate is missing.
2017-09-21 14:52:18 +02:00
Rainer Gerhards
c5af2f440e
Merge pull request #1746 from mrworkman/fix-debugless-build
...
Fix broken 'debugless' build.
2017-09-12 18:03:45 +02:00
mrworkman
bb60c206f0
Fix broken 'debugless' build.
2017-09-12 08:01:39 -04:00
Rainer Gerhards
fffbcc2ddc
Merge pull request #1758 from rgerhards/pr-1633
...
implement fileoffset metadata
2017-09-12 08:54:09 +02:00
Rainer Gerhards
960bb25902
testbench: download kafka in quiet mode
...
... otherwise the testbench log is spammed by wget status display.
2017-09-11 12:53:10 +02:00
Rainer Gerhards
17c5df885e
travis: do line length check only in some subtests
2017-09-11 12:53:10 +02:00
ab8e59657c
testbench: Updated kafka server version from 0.9.0.1 to 0.10.2.1
2017-09-11 10:57:46 +02:00
e5d48d89c0
testbench: Added support to dump kafka / zookeeper server logs on test failure
2017-09-11 10:17:12 +02:00
Rainer Gerhards
0858209381
imfile: adjust offset metadata to give begin offset of file
2017-09-07 17:08:21 +02:00
Rainer Gerhards
090f105e9d
testbench: improve queue test diagnostics
...
this is a bit more verbose, but helps greatly when diagnosing
queue file related issues
closes https://github.com/rsyslog/rsyslog/issues/170 (kind of...)
2017-09-07 09:26:56 +02:00