mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
- add tests for drop filter
- promote drop filter to milestone 3
This commit is contained in:
parent
aef6671a81
commit
9518347f62
2 changed files with 20 additions and 1 deletions
|
@ -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
19
spec/filters/drop.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue