mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
- Add test coverage for #213
This commit is contained in:
parent
0079aa6cff
commit
74be47dc84
1 changed files with 14 additions and 0 deletions
|
@ -91,6 +91,20 @@ describe LogStash::Filters::Date do
|
|||
end # times.each
|
||||
end
|
||||
|
||||
describe "parsing microsecond-precise times with UNIX (#213)" do
|
||||
config <<-CONFIG
|
||||
filter {
|
||||
date {
|
||||
mydate => "UNIX"
|
||||
}
|
||||
}
|
||||
CONFIG
|
||||
|
||||
sample({"@fields" => {"mydate" => "1350414944.123456"}}) do
|
||||
insist { subject.timestamp } == "2012-10-16T19:15:44.123Z"
|
||||
end
|
||||
end
|
||||
|
||||
describe "parsing with UNIX_MS" do
|
||||
config <<-CONFIG
|
||||
filter {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue