Add test coverage for LOGSTASH-705

This commit is contained in:
Jordan Sissel 2012-11-16 10:19:18 -08:00
parent 57c9d2c41c
commit cdb2d442ef

View file

@ -142,7 +142,12 @@ describe LogStash::Filters::Date do
} }
CONFIG CONFIG
sample "@fields" => { "mydate" => "Jun 12 11:22:33" } do sample "@fields" => { "mydate" => "this will not parse" } do
# nothing to do, if this crashes it's an error..
end
# No 'mydate' field at all
sample "@fields" => { } do
# nothing to do, if this crashes it's an error.. # nothing to do, if this crashes it's an error..
end end
end end