From 684c070249a94c577943fac1b6cbbf119d8831ef Mon Sep 17 00:00:00 2001 From: Jordan Sissel Date: Wed, 19 Jun 2013 10:12:01 -0700 Subject: [PATCH] - remove 'type' references and fix up style - use new time object comparison --- spec/examples/graphite-input.rb | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/spec/examples/graphite-input.rb b/spec/examples/graphite-input.rb index 7147d6e5e..e117fd284 100644 --- a/spec/examples/graphite-input.rb +++ b/spec/examples/graphite-input.rb @@ -17,14 +17,11 @@ describe "receive graphite input" do grok { pattern => "%{DATA:name} %{NUMBER:value:float} %{POSINT:ts}" singles => true - type => "graphite" } date { - type => "graphite" match => ["ts", UNIX] } mutate { - type => "graphite" remove => ts } } @@ -32,13 +29,13 @@ describe "receive graphite input" do type "graphite" - sample 'foo.bar.baz 4025.34 1364606522' do + sample "foo.bar.baz 4025.34 1364606522" do insist { subject }.include?("name") insist { subject }.include?("value") insist { subject["name"] } == "foo.bar.baz" insist { subject["value"] } == 4025.34 - insist { subject["@timestamp"] } == "2013-03-30T01:22:02.000Z" + insist { subject["@timestamp"] } == Time.iso8601("2013-03-30T01:22:02.000Z") end end