Added match config option to date filter (with test) - LOGSTASH-735

This commit is contained in:
Louis Zuckerman 2012-11-30 23:33:44 -05:00
parent c64ea7f8be
commit 45616712ac

View file

@ -173,9 +173,9 @@ describe LogStash::Filters::Date do
time = "2001-09-09T01:46:40.000Z"
sample({"@fields" => {"mydate" => time}}) do
#insist { subject["mydate"] } == time
#insist { subject.timestamp } == time
#insist { subject["@timestamp"] } == time
insist { subject["mydate"] } == time
insist { subject.timestamp } == time
insist { subject["@timestamp"] } == time
end
end
end