summaryrefslogtreecommitdiffstats
path: root/test/network
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-10-03 13:11:44 -0500
committerLuke Kanies <luke@madstop.com>2008-10-03 13:11:44 -0500
commit6bcfd9f021be13bfd3269eaa72bc289eab37a64f (patch)
treed4053041420e68113d5af14186a04727becddbb4 /test/network
parent67136f111c60779a1b87b43a6b949a2357399836 (diff)
downloadpuppet-6bcfd9f021be13bfd3269eaa72bc289eab37a64f.tar.gz
puppet-6bcfd9f021be13bfd3269eaa72bc289eab37a64f.tar.xz
puppet-6bcfd9f021be13bfd3269eaa72bc289eab37a64f.zip
Fixing #947 - pluginsync no longer fails poorly when no plugins exist
Note that it still fails -- it's just a more reasonable failure. Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'test/network')
-rwxr-xr-xtest/network/handler/fileserver.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/network/handler/fileserver.rb b/test/network/handler/fileserver.rb
index a705dbf4b..873657e5d 100755
--- a/test/network/handler/fileserver.rb
+++ b/test/network/handler/fileserver.rb
@@ -437,6 +437,14 @@ class TestFileServer < Test::Unit::TestCase
assert_nil(retval, "Description of non-existent mounts returned a value")
end
+ def test_describe_does_not_fail_when_mount_does_not_find_file
+ server = Puppet::Network::Handler.fileserver.new(:Local => true, :Config => false)
+
+ assert_nothing_raised("Failed when describing missing plugins") do
+ server.describe "/plugins"
+ end
+ end
+
# test that our config file is parsing and working as planned
def test_configfile
server = nil