From 768a2492ba01396c4d60b34ba83479f45bef184f Mon Sep 17 00:00:00 2001 From: Steffen Siering Date: Mon, 15 Feb 2021 16:34:23 +0100 Subject: [PATCH] Syslog system tests: be more forgiving (#24021) --- filebeat/tests/system/test_syslog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filebeat/tests/system/test_syslog.py b/filebeat/tests/system/test_syslog.py index a535bdf970f9..be4a600f7143 100644 --- a/filebeat/tests/system/test_syslog.py +++ b/filebeat/tests/system/test_syslog.py @@ -254,7 +254,7 @@ def assert_syslog(self, syslog, has_address=True): assert syslog["event.severity"] == 5 assert syslog["hostname"] == "wopr.mymachine.co" assert syslog["input.type"] == "syslog" - assert syslog["message"] == "'su root' failed for lonvick on /dev/pts/8 0" + assert syslog["message"].startswith("'su root' failed for lonvick on /dev/pts/8") assert syslog["process.pid"] == 2000 assert syslog["process.program"] == "postfix/smtpd" assert syslog["syslog.facility"] == 1