diff options
author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-06-30 22:30:27 +0000 |
---|---|---|
committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-06-30 22:30:27 +0000 |
commit | 34e779fcf2bfed1c6874084af6c99e072c4ecc7f (patch) | |
tree | c8d6cf6d26d8b6dfda7b7fe8f814f0e29cfd66de /test/server | |
parent | 24f07e0686cc9d81452d33daf215fa050ec89129 (diff) | |
download | puppet-34e779fcf2bfed1c6874084af6c99e072c4ecc7f.tar.gz puppet-34e779fcf2bfed1c6874084af6c99e072c4ecc7f.tar.xz puppet-34e779fcf2bfed1c6874084af6c99e072c4ecc7f.zip |
Significantly redoing metrics. There are now no class variables for metrics, nor no class methods for it.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1350 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test/server')
-rwxr-xr-x | test/server/report.rb | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/test/server/report.rb b/test/server/report.rb index 927052936..ba3bece4b 100755 --- a/test/server/report.rb +++ b/test/server/report.rb @@ -34,11 +34,14 @@ class TestServerRunner < Test::Unit::TestCase def test_report # Create a bunch of log messages in an array. - report = [] + report = Puppet::Transaction::Report.new + 10.times { |i| - report << info("Report test message %s" % i) - report[-1].tags = %w{a list of tags} - report[-1].tags << "tag%s" % i + log = info("Report test message %s" % i) + log.tags = %w{a list of tags} + log.tags << "tag%s" % i + + report.newlog(log) } # Now make our reporting client @@ -61,13 +64,16 @@ class TestServerRunner < Test::Unit::TestCase } # Make sure our report is valid and stuff. - report.zip(newreport).each do |ol,nl| + report.logs.zip(newreport.logs).each do |ol,nl| %w{level message time tags source}.each do |method| assert_equal(ol.send(method), nl.send(method), "%s got changed" % method) end end end + + def test_rrdgraph_report + end end # $Id$ |