summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorAndrew Shafer <andrew@reductivelabs.com>2008-07-14 19:54:52 -0600
committerAndrew Shafer <andrew@reductivelabs.com>2008-07-14 19:54:52 -0600
commit4ce7159baba4c637867c91519b5a3b16627dfca5 (patch)
tree6db7b423ed490deca8858caecce3bff5d09784d7 /spec
parent4c5293b837807f61002365114fd7004d2f74ad57 (diff)
downloadpuppet-4ce7159baba4c637867c91519b5a3b16627dfca5.tar.gz
puppet-4ce7159baba4c637867c91519b5a3b16627dfca5.tar.xz
puppet-4ce7159baba4c637867c91519b5a3b16627dfca5.zip
Fail instead of log when rescuing remote file connections
Issue 1397 one line fix, very simple
Diffstat (limited to 'spec')
-rwxr-xr-xspec/unit/type/file.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/unit/type/file.rb b/spec/unit/type/file.rb
index f0ae70cd0..3ea4c3731 100755
--- a/spec/unit/type/file.rb
+++ b/spec/unit/type/file.rb
@@ -64,6 +64,11 @@ describe Puppet::Type.type(:file) do
@file.property(:source).retrieve
lambda { @file.property(:source).sync }.should raise_error(Puppet::Error)
end
+
+ it "should fail if it cannot describe remote contents" do
+ @filesource.server.stubs(:describe).raises(Puppet::Network::XMLRPCClientError.new("Testing"))
+ lambda { @file.retrieve }.should raise_error(Puppet::Error)
+ end
end
describe "when managing links" do