From 352d7be1a2d3ec6a5930aa4c19c5451e63fdab2e Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Fri, 12 Dec 2008 17:55:54 -0600 Subject: Refactoring the Settings class to use Puppet::Resource It also now uses the Catalog instead of the recursive TransObject stuff. Signed-off-by: Luke Kanies --- test/util/settings.rb | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) (limited to 'test') diff --git a/test/util/settings.rb b/test/util/settings.rb index 049c005b9..286b14800 100755 --- a/test/util/settings.rb +++ b/test/util/settings.rb @@ -42,23 +42,6 @@ class TestSettings < Test::Unit::TestCase assert(count > 0, "Found no users") end - def test_to_transportable - set_configs - trans = nil - assert_nothing_raised("Could not convert to a transportable") { - trans = @config.to_transportable - } - - comp = nil - assert_nothing_raised("Could not convert transportable to component") { - comp = trans.to_ral - } - - assert_nothing_raised("Could not retrieve transported config") { - comp.retrieve - } - end - def test_to_config set_configs @@ -565,7 +548,7 @@ yay = /a/path } ) - config = @config.to_configuration + config = @config.to_catalog assert(! config.resource(:file, "/dev/testing"), "Created dev file") end @@ -918,7 +901,7 @@ yay = /a/path # Now enable it so they'll be added config[:mkusers] = true - comp = config.to_configuration + comp = config.to_catalog comp.vertices.find_all { |r| r.class.name == :user }.each do |u| assert(u.name != "root", "Tried to manage root user") -- cgit