mirror of https://github.com/apache/nifi.git
NIFI-6443 - ParseSyslog5424 n-th SD-ELEMENT isn't parsed
Signed-off-by: Pierre Villard <pierre.villard.fr@gmail.com> This closes #3588.
This commit is contained in:
parent
f2db1539a8
commit
3fb4454375
|
@ -26,7 +26,7 @@
|
|||
<dependency>
|
||||
<groupId>com.github.palindromicity</groupId>
|
||||
<artifactId>simple-syslog-5424</artifactId>
|
||||
<version>0.0.11</version>
|
||||
<version>0.0.13</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.nifi</groupId>
|
||||
|
|
|
@ -191,7 +191,7 @@ public abstract class BaseStrictSyslog5424ParserTest {
|
|||
|
||||
final Syslog5424Event event = parser.parseEvent(buffer);
|
||||
Assert.assertTrue(event.isValid());
|
||||
Assert.assertNull(event.getFieldMap().get(SyslogAttributes.SYSLOG_BODY));
|
||||
Assert.assertNull(event.getFieldMap().get(SyslogAttributes.SYSLOG_BODY.key()));
|
||||
}
|
||||
|
||||
|
||||
|
@ -229,5 +229,6 @@ public abstract class BaseStrictSyslog5424ParserTest {
|
|||
Assert.assertNotNull(event);
|
||||
Assert.assertTrue(event.isValid());
|
||||
Assert.assertEquals(sender, event.getSender());
|
||||
Assert.assertEquals("Removing instance", event.getFieldMap().get(SyslogAttributes.SYSLOG_BODY.key()));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue