-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'spec_helper_acceptance' | ||
|
||
describe 'redis with deferred password' do | ||
it 'configures and work with no errors' do | ||
pp = <<-EOS | ||
class { 'redis': | ||
manage_repo => true, | ||
redis_apt_repo => true, | ||
port => 10001, | ||
masterauth => Deferred('inline_epp',['<%= $pass %>\n',{'pass' => 'topsecret'}]), | ||
} | ||
EOS | ||
|
||
apply_manifest(pp, catch_failures: true, debug: true) | ||
apply_manifest(pp, catch_changes: true, debug: true) | ||
end | ||
|
||
describe command('redis-cli -p 10001 -a topsecret ping') do | ||
its(:stdout) { is_expected.to match %r{PONG} } | ||
Check failure on line 21 in spec/acceptance/suites/default/redis_deferred_spec.rb GitHub Actions / Puppet / Puppet 8 - CentOS 9
Check failure on line 21 in spec/acceptance/suites/default/redis_deferred_spec.rb GitHub Actions / Puppet / Puppet 7 - CentOS 9
Check failure on line 21 in spec/acceptance/suites/default/redis_deferred_spec.rb GitHub Actions / Puppet / Puppet 8 - AlmaLinux 9
Check failure on line 21 in spec/acceptance/suites/default/redis_deferred_spec.rb GitHub Actions / Puppet / Puppet 7 - AlmaLinux 9
Check failure on line 21 in spec/acceptance/suites/default/redis_deferred_spec.rb GitHub Actions / Puppet / Puppet 8 - Rocky 9
Check failure on line 21 in spec/acceptance/suites/default/redis_deferred_spec.rb GitHub Actions / Puppet / Puppet 7 - Rocky 9
|
||
end | ||
end |