diff options
| author | Luke Kanies <luke@madstop.com> | 2009-02-19 16:51:50 -0600 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2009-02-19 17:51:22 -0600 |
| commit | c0d5037d11643fd551fdc9f20a9e0ba196c5345a (patch) | |
| tree | c206a8dcd267b61d6ed1bf17d374558126672992 /test/network/client/resource.rb | |
| parent | 262937ff6e505bbf86d15500279ff23398f9e1c8 (diff) | |
| download | puppet-c0d5037d11643fd551fdc9f20a9e0ba196c5345a.tar.gz puppet-c0d5037d11643fd551fdc9f20a9e0ba196c5345a.tar.xz puppet-c0d5037d11643fd551fdc9f20a9e0ba196c5345a.zip | |
Removing or fixing old tests
Most of these were just obsolete tests that have
been sitting around and broke with recent internal
changes.
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'test/network/client/resource.rb')
| -rwxr-xr-x | test/network/client/resource.rb | 34 |
1 files changed, 6 insertions, 28 deletions
diff --git a/test/network/client/resource.rb b/test/network/client/resource.rb index 86c6ccd2f..3ad9282bb 100755 --- a/test/network/client/resource.rb +++ b/test/network/client/resource.rb @@ -11,6 +11,12 @@ class TestResourceClient < Test::Unit::TestCase include PuppetTest::ServerTest include PuppetTest::Support::Utils + def setup + super + + Puppet::Type.type(:user).provider(:directoryservice).stubs(:get_macosx_version_major).returns "10.5" + end + def mkresourceserver Puppet::Network::Handler.resource.new end @@ -43,7 +49,6 @@ class TestResourceClient < Test::Unit::TestCase resource = tresource.to_ral } assert_events([], resource) - p resource.instance_variable_get("@stat") File.unlink(file) assert_events([:file_created], resource) File.unlink(file) @@ -54,33 +59,6 @@ class TestResourceClient < Test::Unit::TestCase result = client.apply(tresource) } assert(FileTest.exists?(file), "File was not created on apply") - - # Lastly, test "list" - list = nil - assert_nothing_raised { - list = client.list("user") - } - - assert_instance_of(Puppet::TransBucket, list) - - count = 0 - list.each do |tresource| - break if count > 3 - assert_instance_of(Puppet::TransObject, tresource) - - tresource2 = nil - assert_nothing_raised { - tresource2 = client.describe(tresource.type, tresource.name) - } - - resource = nil - assert_nothing_raised { - resource = tresource2.to_ral - } - assert_events([], resource) - - count += 1 - end end end |
