summaryrefslogtreecommitdiffstats
path: root/acceptance/tests/ticket_4233_resource_with_a_newline.rb
blob: 11924b550e45fc3b3de5ab21e11850d875a9c1f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
test_name "#4233: resource with a newline"

# 2010-07-22 Jeff McCune <jeff@puppetlabs.com>
# AffectedVersion: 2.6.0rc3
# FixedVersion: 2.6.0

# JJM We expect 2.6.0rc3 to return an error
# and 2.6.0 final to not return an error line.
# Look for the line in the output and fail the test
# if we find it.

agents.each do |host|
  apply_manifest_on(host, 'exec { \'/bin/echo -e "\nHello World\n"\': }') do
    assert_no_match(/err:/, stdout, "error report in output on #{host}")
  end
end