Skip to content

Commit 1bed1c6

Browse files
committed
switch to use case I actually use
1 parent ad8e019 commit 1bed1c6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

spec/acceptance/suites/default/redis_deferred_spec.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,18 @@ class { 'redis':
1010
manage_repo => true,
1111
redis_apt_repo => true,
1212
port => 10001,
13-
masterauth => Deferred('inline_epp',['<%= $pass %>\n',{'pass' => 'topsecret'}]),
13+
requirepass => Deferred('inline_epp',['<%= $pass %>',{'pass' => 'topsecret'}]),
1414
}
1515
PUPPET
1616
end
1717
end
1818

1919
describe command('redis-cli -p 10001 -a topsecret ping') do
20+
its(:exit_status) { is_expected.to eq 0 }
2021
its(:stdout) { is_expected.to match %r{PONG} }
2122
end
23+
24+
describe command('redis-cli -p 10001 -a nonsense ping') do
25+
its(:stdout) { is_expected.not_to match %r{PONG} }
26+
end
2227
end

0 commit comments

Comments
 (0)