mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
- remove 'type' references and fix up style
- use new time object comparison
This commit is contained in:
parent
c55b493c32
commit
684c070249
1 changed files with 2 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue