summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-10-08 22:13:52 -0500
committerLuke Kanies <luke@madstop.com>2008-10-08 22:32:56 -0500
commitb08002e45aa051b84e2feaab75dce8fd5016ce39 (patch)
treee19224bc5afa7a16688c67e32b5f9fec70eae36b
parent2bf0ba5651bfebf202bac5636063cece0208b667 (diff)
downloadpuppet-b08002e45aa051b84e2feaab75dce8fd5016ce39.tar.gz
puppet-b08002e45aa051b84e2feaab75dce8fd5016ce39.tar.xz
puppet-b08002e45aa051b84e2feaab75dce8fd5016ce39.zip
Fixing some tests that were broken in the fix for #1633
Signed-off-by: Luke Kanies <luke@madstop.com>
-rw-r--r--test/lib/puppettest/reporttesting.rb2
-rwxr-xr-xtest/other/report.rb6
2 files changed, 2 insertions, 6 deletions
diff --git a/test/lib/puppettest/reporttesting.rb b/test/lib/puppettest/reporttesting.rb
index 9b1764cf6..4d88c3cfc 100644
--- a/test/lib/puppettest/reporttesting.rb
+++ b/test/lib/puppettest/reporttesting.rb
@@ -6,8 +6,6 @@ module PuppetTest::Reporttesting
3.times { |i|
# We have to use warning so that the logs always happen
log = Puppet.warning("Report test message %s" % i)
- log.tags = %w{a list of tags}
- log.tags << "tag%s" % i
report.newlog(log)
}
diff --git a/test/other/report.rb b/test/other/report.rb
index 9894e2a8d..9d0bb4852 100755
--- a/test/other/report.rb
+++ b/test/other/report.rb
@@ -21,7 +21,7 @@ class TestReports < Test::Unit::TestCase
# Make every third file
File.open(file, "w") { |f| f.puts "" } if i % 3 == 0
- objects << Puppet::Type.newfile(
+ objects << Puppet::Type.type(:file).create(
:path => file,
:ensure => "file"
)
@@ -44,7 +44,7 @@ class TestReports < Test::Unit::TestCase
}
# Now make a file for testing logging
- file = Puppet::Type.newfile(:path => tempfile(), :ensure => "file")
+ file = Puppet::Type.type(:file).create(:path => tempfile(), :ensure => "file")
file.finish
log = nil
@@ -91,8 +91,6 @@ class TestReports < Test::Unit::TestCase
3.times { |i|
log = Puppet.warning("Report test message %s" % i)
- log.tags = %w{a list of tags}
- log.tags << "tag%s" % i
report.newlog(log)
}