Skip to content

Commit

Permalink
Auto-correct rubocop offenses
Browse files Browse the repository at this point in the history
  • Loading branch information
smortex committed Dec 26, 2022
1 parent 87f5343 commit c46bbdb
Show file tree
Hide file tree
Showing 13 changed files with 30 additions and 2 deletions.
2 changes: 2 additions & 0 deletions spec/acceptance/01_zookeeper_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'spec_helper_acceptance'

describe 'zookeeper prereq' do
Expand Down
2 changes: 2 additions & 0 deletions spec/acceptance/broker_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'spec_helper_acceptance'

case fact('osfamily')
Expand Down
2 changes: 2 additions & 0 deletions spec/acceptance/consumer_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'spec_helper_acceptance'

case fact('osfamily')
Expand Down
2 changes: 2 additions & 0 deletions spec/acceptance/init_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'spec_helper_acceptance'

case fact('osfamily')
Expand Down
2 changes: 2 additions & 0 deletions spec/acceptance/mirror_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'spec_helper_acceptance'

case fact('osfamily')
Expand Down
5 changes: 4 additions & 1 deletion spec/classes/broker_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'spec_helper'
require 'shared_examples_param_validation'

Expand Down Expand Up @@ -37,7 +39,8 @@
context 'defaults' do
it { is_expected.to contain_file('/opt/kafka/config/server.properties') }
end
context 'with manage_log4j => true' do

context 'with manage_log4j => true' do
let(:params) { { 'manage_log4j' => true } }

it { is_expected.to contain_file('/opt/kafka/config/log4j.properties').with_content(%r{^log4j.appender.kafkaAppender.MaxFileSize=50MB$}) }
Expand Down
5 changes: 4 additions & 1 deletion spec/classes/consumer_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'spec_helper'
require 'shared_examples_param_validation'

Expand Down Expand Up @@ -38,7 +40,8 @@
context 'defaults' do
it { is_expected.to contain_file('/opt/kafka/config/consumer.properties') }
end
context 'with manage_log4j => true' do

context 'with manage_log4j => true' do
let(:params) { { 'manage_log4j' => true } }

it { is_expected.to contain_file('/opt/kafka/config/log4j.properties').with_content(%r{^log4j.appender.kafkaAppender.MaxFileSize=50MB$}) }
Expand Down
2 changes: 2 additions & 0 deletions spec/classes/init_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'spec_helper'

describe 'kafka', type: :class do
Expand Down
2 changes: 2 additions & 0 deletions spec/classes/mirror_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'spec_helper'
require 'shared_examples_param_validation'

Expand Down
2 changes: 2 additions & 0 deletions spec/classes/producer_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'spec_helper'
require 'shared_examples_param_validation'

Expand Down
2 changes: 2 additions & 0 deletions spec/defines/topic_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'spec_helper'

describe 'kafka::topic', type: :define do
Expand Down
1 change: 1 addition & 0 deletions spec/shared_examples_param_validation.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true

RSpec.configure do |c|
c.alias_it_should_behave_like_to :it_validates_parameter, 'validates parameter:'
Expand Down
3 changes: 3 additions & 0 deletions spec/spec_helper_acceptance.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# frozen_string_literal: true

require 'voxpupuli/acceptance/spec_helper_acceptance'

configure_beaker do |host|
next unless fact('os.name') == 'Debian' && fact('os.release.major') == '8'

on host, 'echo "deb http://archive.debian.org/debian jessie-backports main" > /etc/apt/sources.list.d/backports.list'
on host, 'echo \'Acquire::Check-Valid-Until "false";\' > /etc/apt/apt.conf.d/check-valid'
on host, 'DEBIAN_FRONTEND=noninteractive apt-get -y update'
Expand Down

0 comments on commit c46bbdb

Please sign in to comment.