Previously in Beaker, you could use a standalone stdout method to
access output from remote machines.
This was deprecated in 2013 with voxpupuli/beaker@
28b2510 and dropped
entirely in voxpupuli/beaker@
73a31c7.
This commit replaces stdout in favor of calling stdout on Result
objects.
non_windows_agents.each do |agent|
it 'queries for the mail alias with puppet' do
- on(agent, puppet_resource('mailalias', name)) do
- fail_test "didn't find the scheduled_task #{name}" unless stdout.include? 'present'
+ on(agent, puppet_resource('mailalias', name)) do |res|
+ fail_test "didn't find the scheduled_task #{name}" unless res.stdout.include? 'present'
end
end
end