Add test to cover LOGSTASH-641

This commit is contained in:
Jordan Sissel 2012-10-23 16:03:16 -07:00
parent efa2924828
commit fa76299b23

View file

@ -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