mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
Add test to cover LOGSTASH-641
This commit is contained in:
parent
efa2924828
commit
fa76299b23
1 changed files with 14 additions and 0 deletions
|
@ -132,4 +132,18 @@ describe LogStash::Filters::Date do
|
|||
end
|
||||
end # times.each
|
||||
end
|
||||
|
||||
describe "failed parses should not cause a failure (LOGSTASH-641)" do
|
||||
config <<-CONFIG
|
||||
filter {
|
||||
date {
|
||||
mydate => [ "MMM d HH:mm:ss", "MMM dd HH:mm:ss" ]
|
||||
}
|
||||
}
|
||||
CONFIG
|
||||
|
||||
sample "@fields" => { "mydate" => "Jun 12 11:22:33" } do
|
||||
# nothing to do, if this crashes it's an error..
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue