diff options
| author | Luke Kanies <luke@madstop.com> | 2007-12-21 17:52:06 -0600 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2007-12-21 17:52:06 -0600 |
| commit | c59ff622a33b82f413207a146edd4ff6e011e729 (patch) | |
| tree | 7d7efd74b8aab5c8e9c0bbf7a3f90304edae9caf /test/network | |
| parent | 4d28b10cd1ac8b549d488f18d272ad589c75445d (diff) | |
| download | puppet-c59ff622a33b82f413207a146edd4ff6e011e729.tar.gz puppet-c59ff622a33b82f413207a146edd4ff6e011e729.tar.xz puppet-c59ff622a33b82f413207a146edd4ff6e011e729.zip | |
Further fixes toward #965. Turned out that the previous fix
caused other problems.
This whole thing will hopefully get *drastically* easier once we
get rid of global resources.
Diffstat (limited to 'test/network')
| -rwxr-xr-x | test/network/client/master.rb | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/test/network/client/master.rb b/test/network/client/master.rb index 3ec1d4d36..696d08bfd 100755 --- a/test/network/client/master.rb +++ b/test/network/client/master.rb @@ -333,54 +333,6 @@ end assert(FileTest.exists?(file), "file was not created on second run") end - def test_default_resources - client = mkclient() - - # Make sure they start out missing - assert_nil(Puppet::Type.type(:filebucket)["puppet"], - "default filebucket already exists") - assert_nil(Puppet::Type.type(:schedule)["daily"], - "default schedules already exists") - - client.make_default_resources - - # Now make sure they got created - assert(Puppet::Type.type(:filebucket)["puppet"], - "default filebucket not found") - assert(Puppet::Type.type(:schedule)["daily"], - "default schedules not found") - - # clear everything, and make sure we can recreate them - Puppet::Type.allclear - assert_nil(Puppet::Type.type(:filebucket)["puppet"], - "default filebucket not removed") - assert_nil(Puppet::Type.type(:schedule)["daily"], - "default schedules not removed") - assert_nothing_raised { client.make_default_resources } - assert(Puppet::Type.type(:filebucket)["puppet"], - "default filebucket not found") - assert(Puppet::Type.type(:schedule)["daily"], - "default schedules not found") - - - # Make sure we've got schedules - assert(Puppet::Type.type(:schedule)["hourly"], "Could not retrieve hourly schedule") - assert(Puppet::Type.type(:filebucket)["puppet"], "Could not retrieve default bucket") - end - - # #965 - make sure default objects don't conflict with existing - # objects. - def test_default_resources_do_not_conflict_with_managed_resources - # Create some that conflict with our defaults - bucket = Puppet::Type.type(:filebucket).create :name => "puppet" - schedule = Puppet::Type.type(:schedule).create :name => "daily" - - client = mkclient() - - # Then make sure creating new defaults doesn't throw an exception. - assert_nothing_raised("Default resources conflicted with resources in the catalog") { client.make_default_resources } - end - # #540 - make sure downloads aren't affected by noop def test_download_in_noop source = tempfile |
