mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
25 lines
695 B
Ruby
25 lines
695 B
Ruby
require_relative '../framework/fixture'
|
|
require_relative '../framework/settings'
|
|
require_relative '../services/logstash_service'
|
|
require "rspec/wait"
|
|
|
|
describe "Kafka Input" do
|
|
let(:timeout_seconds) { 5 }
|
|
before(:all) {
|
|
@fixture = Fixture.new(__FILE__)
|
|
}
|
|
|
|
after(:all) {
|
|
@fixture.teardown
|
|
}
|
|
|
|
it "can ingest 37 apache log lines from Kafka broker" do
|
|
logstash_service = @fixture.get_service("logstash")
|
|
logstash_service.start_background(@fixture.config)
|
|
|
|
wait(timeout_seconds).for { @fixture.output_exists? }.to be true
|
|
expect(@fixture.output_equals_expected?).to be true
|
|
lambda { "Expected File output to match what was ingested into Kafka." }
|
|
end
|
|
|
|
end
|