diff options
author | Luke Kanies <luke@madstop.com> | 2009-02-14 11:56:58 -0600 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2009-02-14 12:24:42 -0600 |
commit | 72bd378d62504cefda02f106954302de7c3600ca (patch) | |
tree | 7a54f95be6c1bdd24baf41a2112a99655ea2eca1 /test | |
parent | 682dd8b933c5feeed389b644b75f27e66e863276 (diff) | |
download | puppet-72bd378d62504cefda02f106954302de7c3600ca.tar.gz puppet-72bd378d62504cefda02f106954302de7c3600ca.tar.xz puppet-72bd378d62504cefda02f106954302de7c3600ca.zip |
Removing a no-longer-valid test.
The fix for #1884 removed this no-longer-needed
feature, so this test is now unnecessary.
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'test')
-rwxr-xr-x | test/language/resource.rb | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/test/language/resource.rb b/test/language/resource.rb index b3eaf0390..07bdd5b9d 100755 --- a/test/language/resource.rb +++ b/test/language/resource.rb @@ -254,44 +254,4 @@ class TestResource < PuppetTest::TestCase assert_nil(hash[:owner], "got a value for an undef parameter") end - - # #643 - Make sure virtual defines result in virtual resources - def test_virtual_defines - parser = mkparser - define = parser.newdefine("yayness", - :code => resourcedef("file", varref("name"), - "mode" => "644")) - - config = mkcompiler(parser) - - res = mkresource :type => "yayness", :title => "foo", :params => {}, :scope => config.topscope - res.virtual = true - - result = nil - assert_nothing_raised("Could not evaluate defined resource") do - result = res.evaluate - end - - scope = res.scope - newres = scope.findresource("File[foo]") - assert(newres, "Could not find resource") - - assert(newres.virtual?, "Virtual defined resource generated non-virtual resources") - - # Now try it with exported resources - res = mkresource :type => "yayness", :title => "bar", :params => {}, :scope => config.topscope - res.exported = true - - result = nil - assert_nothing_raised("Could not evaluate exported resource") do - result = res.evaluate - end - - scope = res.scope - newres = scope.findresource("File[bar]") - assert(newres, "Could not find resource") - - assert(newres.exported?, "Exported defined resource generated non-exported resources") - assert(newres.virtual?, "Exported defined resource generated non-virtual resources") - end end |