summaryrefslogtreecommitdiffstats
path: root/test/lib
diff options
context:
space:
mode:
Diffstat (limited to 'test/lib')
-rw-r--r--test/lib/puppettest/reporttesting.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/lib/puppettest/reporttesting.rb b/test/lib/puppettest/reporttesting.rb
new file mode 100644
index 000000000..fa9937ab9
--- /dev/null
+++ b/test/lib/puppettest/reporttesting.rb
@@ -0,0 +1,18 @@
+module PuppetTest::Reporttesting
+ def fakereport
+ # Create a bunch of log messages in an array.
+ report = Puppet::Transaction::Report.new
+
+ 3.times { |i|
+ log = Puppet.info("Report test message %s" % i)
+ log.tags = %w{a list of tags}
+ log.tags << "tag%s" % i
+
+ report.newlog(log)
+ }
+
+ return report
+ end
+end
+
+# $Id$