~ubuntu-branches/ubuntu/precise/puppet/precise-proposed

« 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): Micah Anderson
  • Date: 2012-02-23 18:24:48 UTC
  • mfrom: (1.1.28) (3.1.36 sid)
  • Revision ID: package-import@ubuntu.com-20120223182448-belun93murza4w99
Tags: 2.7.11-1
* New upstream release
* Urgency set to high due to regressions in previous release
  and security vulnerabilities
* Execs when run with a user specified, but no group, get the root
  group. Similarly unexpected privileges are given to providers and
  types (egid remains as root), this is fixed with a patch from
  upstream (CVE-2012-1053)
* Fix Klogin write through symlink (CVE-2012-1054)

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
 
 
12
agents.each do |host|
 
13
  apply_manifest_on(host, 'exec { \'/bin/echo -e "\nHello World\n"\': }') do
 
14
    assert_no_match(/err:/, stdout, "error report in output on #{host}")
 
15
  end
 
16
end