]> gitweb.fluxo.info Git - puppet-mailalias_core.git/commitdiff
Update stdout call
authorMichael Hashizume <michael.hashizume@puppet.com>
Fri, 2 Feb 2024 00:40:00 +0000 (16:40 -0800)
committerMichael Hashizume <michael.hashizume@puppet.com>
Fri, 2 Feb 2024 00:40:00 +0000 (16:40 -0800)
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.

spec/acceptance/tests/query_spec.rb

index 17e0bbf97d7dcb2db2f9cd653d728951fcfd147b..43bbcafa1abdbd317750539d35b860975e456b07 100644 (file)
@@ -27,8 +27,8 @@ RSpec.context 'should be able to find an exisitng email alias' do
 
   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