~ubuntu-branches/ubuntu/trusty/puppet/trusty

« back to all changes in this revision

Viewing changes to acceptance/tests/ticket_4233_resource_with_a_newline.rb

  • Committer: Package Import Robot
  • Author(s): Stig Sandbeck Mathisen
  • Date: 2011-10-22 14:08:22 UTC
  • mfrom: (1.1.25) (3.1.32 sid)
  • Revision ID: package-import@ubuntu.com-20111022140822-odxde5lohc45yhuz
Tags: 2.7.6-1
* New upstream release (CVE-2011-3872)
* Remove cherry-picked "groupadd_aix_warning" patch
* Install all new manpages

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
test_name "#4233: resource with a newline"
2
 
 
3
 
# 2010-07-22 Jeff McCune <jeff@puppetlabs.com>
4
 
# AffectedVersion: 2.6.0rc3
5
 
# FixedVersion: 2.6.0
6
 
 
7
 
# JJM We expect 2.6.0rc3 to return an error
8
 
# and 2.6.0 final to not return an error line.
9
 
# Look for the line in the output and fail the test
10
 
# if we find it.
11
 
apply_manifest_on(agents, 'exec { \'/bin/echo -e "\nHello World\n"\': }') do
12
 
  stdout =~ /err:/ and fail_test("error report in output, sorry")
13
 
end