- add tests for drop filter

- promote drop filter to milestone 3
This commit is contained in:
Jordan Sissel 2013-08-28 07:12:16 -07:00
parent aef6671a81
commit 9518347f62
2 changed files with 20 additions and 1 deletions

View file

@ -17,7 +17,7 @@ require "logstash/namespace"
# "debug". This will cause all events matching to be dropped.
class LogStash::Filters::Drop < LogStash::Filters::Base
config_name "drop"
milestone 1
milestone 3
public
def register

19
spec/filters/drop.rb Normal file
View file

@ -0,0 +1,19 @@
require "test_utils"
require "logstash/filters/drop"
describe LogStash::Filters::Drop do
extend LogStash::RSpec
describe "drop the event" do
config <<-CONFIG
filter {
drop { }
}
CONFIG
sample "hello" do
insist { subject }.nil?
end
end
end