From cfda651f88d12249f29706d2bedbfddce7a2e6f7 Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Mon, 14 Jan 2008 13:34:06 -0800 Subject: Another round of test-fixes toward eliminating global resource references. This should have gotten rid of all of them, and now it's just a question of fixing a few hopefully unrelated failing tests. --- test/network/client/resource.rb | 5 ----- 1 file changed, 5 deletions(-) (limited to 'test/network/client') diff --git a/test/network/client/resource.rb b/test/network/client/resource.rb index eb8e829eb..f3c564d9d 100755 --- a/test/network/client/resource.rb +++ b/test/network/client/resource.rb @@ -38,7 +38,6 @@ class TestResourceClient < Test::Unit::TestCase assert_instance_of(Puppet::TransObject, tobj) - Puppet::Type.allclear obj = nil assert_nothing_raised { obj = tobj.to_type @@ -49,7 +48,6 @@ class TestResourceClient < Test::Unit::TestCase File.unlink(file) # Now test applying - Puppet::Type.allclear result = nil assert_nothing_raised { result = client.apply(tobj) @@ -57,7 +55,6 @@ class TestResourceClient < Test::Unit::TestCase assert(FileTest.exists?(file), "File was not created on apply") # Lastly, test "list" - Puppet::Type.allclear list = nil assert_nothing_raised { list = client.list("user") @@ -70,14 +67,12 @@ class TestResourceClient < Test::Unit::TestCase break if count > 3 assert_instance_of(Puppet::TransObject, tobj) - Puppet::Type.allclear tobj2 = nil assert_nothing_raised { tobj2 = client.describe(tobj.type, tobj.name) } obj = nil - Puppet::Type.allclear assert_nothing_raised { obj = tobj2.to_type } -- cgit