Skip to content

Commit

Permalink
switch to use case I actually use
Browse files Browse the repository at this point in the history
  • Loading branch information
traylenator committed Apr 23, 2024
1 parent ad8e019 commit 1bed1c6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion spec/acceptance/suites/default/redis_deferred_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,18 @@ class { 'redis':
manage_repo => true,
redis_apt_repo => true,
port => 10001,
masterauth => Deferred('inline_epp',['<%= $pass %>\n',{'pass' => 'topsecret'}]),
requirepass => Deferred('inline_epp',['<%= $pass %>',{'pass' => 'topsecret'}]),
}
PUPPET
end
end

describe command('redis-cli -p 10001 -a topsecret ping') do
its(:exit_status) { is_expected.to eq 0 }
its(:stdout) { is_expected.to match %r{PONG} }
end

describe command('redis-cli -p 10001 -a nonsense ping') do
its(:stdout) { is_expected.not_to match %r{PONG} }
end
end

0 comments on commit 1bed1c6

Please sign in to comment.