forked from theforeman/puppet-foreman
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test for modifying the dynflow sidekiq service file
Fixes theforemanGH-1191
- Loading branch information
1 parent
a28e1af
commit fcd0a0d
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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( | ||
|