Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions spec/configuration/kafka_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# frozen_string_literal: true

require 'spec_helper'
set :os, family: 'redhat', release: '9', arch: 'x86_64'
pipelines = %w[
rb_flow
rb_nmsp
rb_state
rb_vault
sflow
]

describe 'Check logstash config' do
describe file('/etc/kafka/topics_definitions.yml') do
it { should exist }
it { should be_file }
it { should be_readable }
it { should be_writable.by_user('kafka') }
it { should_not be_writable.by('others') }
it { should_not be_executable }
pipelines.each do |pipeline|
it { should contain pipeline }
end
end
end