Sha256: 0acc92bdf09c8301275e568a2e4ed0a9e343f11d8d390b94a1a4e3173a8a0d7c
Contents?: true
Size: 382 Bytes
Versions: 1
Compression:
Stored size: 382 Bytes
Contents
require "test_utils" describe "http dates", :if => RUBY_ENGINE == "jruby" do extend LogStash::RSpec config <<-'CONFIG' filter { date { match => [ "timestamp", "dd/MMM/yyyy:HH:mm:ss Z" ] } } CONFIG sample("timestamp" => "25/Mar/2013:20:33:56 +0000") do insist { subject["@timestamp"] } == Time.iso8601("2013-03-25T20:33:56.000Z") end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
logstash-lib-1.3.2 | spec/support/date-http.rb |