summaryrefslogtreecommitdiffstats
path: root/test/lib/puppettest/reporttesting.rb
blob: 4d88c3cfc4cf25e42ed995b8978ba67a30594bc9 (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

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

            report.newlog(log)
        }

        return report
    end
end