]> review.fuel-infra Code Review - puppet-modules/puppetlabs-firewall.git/commitdiff
Don't check stderr
authorMorgan Haskel <morgan@puppetlabs.com>
Tue, 3 Jun 2014 19:04:52 +0000 (15:04 -0400)
committerMorgan Haskel <morgan@puppetlabs.com>
Tue, 3 Jun 2014 19:04:52 +0000 (15:04 -0400)
spec/acceptance/resource_cmd_spec.rb

index f964df79e742d2c9936b128f4f23f51bfae2055a..1a10fdd4bd2d3c4d922d84e11b2ae8e6f5511e53 100644 (file)
@@ -9,7 +9,7 @@ describe 'puppet resource firewall command:', :unless => UNSUPPORTED_PLATFORMS.i
       shell('puppet resource firewall') do |r|
         r.exit_code.should be_zero
         # don't check stdout, some boxes come with rules, that is normal
-        r.stderr.should be_empty
+        # don't check stderr, puppet throws deprecation warnings
       end
     end
   end
@@ -23,7 +23,6 @@ describe 'puppet resource firewall command:', :unless => UNSUPPORTED_PLATFORMS.i
     it do
       shell('puppet resource firewall') do |r|
         r.exit_code.should be_zero
-        r.stderr.should be_empty
         r.stdout.should == "\n"
       end
     end
@@ -39,7 +38,7 @@ describe 'puppet resource firewall command:', :unless => UNSUPPORTED_PLATFORMS.i
       shell('puppet resource firewall') do |r|
         r.exit_code.should be_zero
         # don't check stdout, testing preexisting rules, output is normal
-        r.stderr.should be_empty
+        # don't check stderr, puppet throws deprecation warnings
       end
     end
   end
@@ -54,7 +53,7 @@ describe 'puppet resource firewall command:', :unless => UNSUPPORTED_PLATFORMS.i
       shell('puppet resource firewall') do |r|
         r.exit_code.should be_zero
         # don't check stdout, testing preexisting rules, output is normal
-        r.stderr.should be_empty
+        # don't check stderr, puppet throws deprecation warnings
       end
     end
   end
@@ -71,7 +70,7 @@ describe 'puppet resource firewall command:', :unless => UNSUPPORTED_PLATFORMS.i
       shell('puppet resource firewall') do |r|
         r.exit_code.should be_zero
         # don't check stdout, testing preexisting rules, output is normal
-        r.stderr.should be_empty
+        # don't check stderr, puppet throws deprecation warnings
       end
     end
   end
@@ -86,7 +85,7 @@ describe 'puppet resource firewall command:', :unless => UNSUPPORTED_PLATFORMS.i
       shell('puppet resource firewall') do |r|
         r.exit_code.should be_zero
         # don't check stdout, testing preexisting rules, output is normal
-        r.stderr.should be_empty
+        # don't check stderr, puppet throws deprecation warnings
       end
     end
   end