Sha256: 85caef3bc6a9204d8d43759a7b86c490c253786a48642aa8b3bb1d0b999e25a7

Contents?: true

Size: 340 Bytes

Versions: 49

Compression:

Stored size: 340 Bytes

Contents

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

Version data entries

49 entries across 49 versions & 3 rubygems

Version Path
puppet-2.7.4 test/lib/puppettest/reporttesting.rb
puppet-2.6.10 test/lib/puppettest/reporttesting.rb
puppet-2.7.3 test/lib/puppettest/reporttesting.rb
puppet-2.7.1 test/lib/puppettest/reporttesting.rb
puppet-2.6.9 test/lib/puppettest/reporttesting.rb
puppet-2.6.8 test/lib/puppettest/reporttesting.rb
puppet-2.6.7 test/lib/puppettest/reporttesting.rb
puppet-2.6.6 test/lib/puppettest/reporttesting.rb
puppet-2.6.5 test/lib/puppettest/reporttesting.rb