From 1bed1c61c7a304879ee6108044bb0e9b7641e7ee Mon Sep 17 00:00:00 2001 From: Steve Traylen Date: Tue, 23 Apr 2024 20:19:10 +0200 Subject: [PATCH] switch to use case I actually use --- spec/acceptance/suites/default/redis_deferred_spec.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/spec/acceptance/suites/default/redis_deferred_spec.rb b/spec/acceptance/suites/default/redis_deferred_spec.rb index bf7fc799..3797732b 100644 --- a/spec/acceptance/suites/default/redis_deferred_spec.rb +++ b/spec/acceptance/suites/default/redis_deferred_spec.rb @@ -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