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|
  resource = host.echo('-e "\nHello World\n"')
  apply_manifest_on(host, "exec { '#{resource}': }") do
    assert_no_match(/err:/, stdout, "error report in output on #{host}")
  end
end
