Skip to content

Commit

Permalink
Add test for modifying the dynflow sidekiq service file
Browse files Browse the repository at this point in the history
  • Loading branch information
highpingblorg committed Oct 22, 2024
1 parent a28e1af commit fcd0a0d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions spec/classes/foreman_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,24 @@
end
end

describe 'with custom redis for dynflow' do
context 'with redis_url for dynflow' do
let(:params) do
super().merge(
dynflow_redis_url: 'redis://127.0.0.1:6379/7',
rails_cache_store: {type: 'file'}
)
end

it { should_not contain_class('redis') }
it { should_not contain_class('redis::instance') }
it do
is_expected.to contain_file('/usr/lib/systemd/system/[email protected]')
.with_content(/^.*redis:\/\/127\.0\.0\.1:6379\/7.*$/)
end
end
end

describe 'with non-Puppet SSL certificates' do
let(:params) do
super().merge(
Expand Down

0 comments on commit fcd0a0d

Please sign in to comment.