Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check topics definition in config file and check some pipelines are t… #15

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
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
Loading