summaryrefslogtreecommitdiffstats
path: root/test/lib/puppettest/reporttesting.rb
blob: 54a2f6799450c8a11fa13c34ab4f3d78c1906d35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
module PuppetTest::Reporttesting
  def fakereport
    # Create a bunch of log messages in an array.
    report = Puppet::Transaction::Report.new("apply")

    3.times { |i|
      # We have to use warning so that the logs always happen
      log = Puppet.warning("Report test message #{i}")

      report << log
    }

    report
  end
end