spec/inputs/yasuri_spec.rb in logstash-input-yasuri-2.0.7 vs spec/inputs/yasuri_spec.rb in logstash-input-yasuri-5.0.3
- old
+ new
@@ -28,31 +28,17 @@
}
| # end of "parse_tree"
)
}
- let(:input_from_parse_tree_file) {
- input_from_parse_tree_file = LogStash::Plugin.lookup("input", "yasuri").new(
- "split" => true,
- "url" => "https://news.ycombinator.com/",
- "parse_tree_path" => "spec/inputs/res/parse_tree.json"
- )
- }
-
it "should register" do
# register will try to load jars and raise if it cannot find jars or if org.apache.log4j.spi.LoggingEvent class is not present
expect {input.register}.to_not raise_error
end
let(:queue) { [] }
it "enqueues some events" do
input.register
input.inner_run(queue)
- expect(queue.size).not_to be_zero
- end
-
- it "enqueues some events from input_from_parse_tree_file" do
- input_from_parse_tree_file.register
- input_from_parse_tree_file.inner_run(queue)
expect(queue.size).not_to be_zero
end
end