diff options
| author | Luke Kanies <luke@madstop.com> | 2008-12-12 17:55:54 -0600 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2008-12-18 11:10:23 -0600 |
| commit | 352d7be1a2d3ec6a5930aa4c19c5451e63fdab2e (patch) | |
| tree | 7868a582feb2f6d707a164034bc91f695e251af3 /test/util | |
| parent | 91ff7c1f9c591936b0d39349baf0d1602a69923b (diff) | |
| download | puppet-352d7be1a2d3ec6a5930aa4c19c5451e63fdab2e.tar.gz puppet-352d7be1a2d3ec6a5930aa4c19c5451e63fdab2e.tar.xz puppet-352d7be1a2d3ec6a5930aa4c19c5451e63fdab2e.zip | |
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 <luke@madstop.com>
Diffstat (limited to 'test/util')
| -rwxr-xr-x | test/util/settings.rb | 21 |
1 files changed, 2 insertions, 19 deletions
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") |
