diff options
author | Jesse Wolfe <jes5199@gmail.com> | 2009-11-23 16:57:04 -0800 |
---|---|---|
committer | James Turnbull <james@lovedthanlost.net> | 2009-12-02 13:15:34 +1100 |
commit | f7c5ceb325da912e05457cd69eb74e03f541cc9f (patch) | |
tree | 0c8128e7b197c2ad2e3881e684b697583623f2a9 /spec/unit/network | |
parent | 07b94b4687686acd4f1bc2567f7902e676c2338f (diff) | |
download | puppet-f7c5ceb325da912e05457cd69eb74e03f541cc9f.tar.gz puppet-f7c5ceb325da912e05457cd69eb74e03f541cc9f.tar.xz puppet-f7c5ceb325da912e05457cd69eb74e03f541cc9f.zip |
Fixing 2725 Error message when permissions incorrect on file server directory
No message was being displayed on the server if a file could not be
opened by the file server.
Signed-off-by: Jesse Wolfe <jes5199@gmail.com>
Diffstat (limited to 'spec/unit/network')
-rwxr-xr-x | spec/unit/network/http/handler.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/unit/network/http/handler.rb b/spec/unit/network/http/handler.rb index 1addb5890..559812159 100755 --- a/spec/unit/network/http/handler.rb +++ b/spec/unit/network/http/handler.rb @@ -230,6 +230,16 @@ describe Puppet::Network::HTTP::Handler do @handler.do_find(@irequest, @request, @response) end + it "should write a log message when no model instance can be found" do + @model_class.stubs(:name).returns "my name" + @model_class.stubs(:find).returns(nil) + + Puppet.expects(:info).with("Could not find my_handler for 'my_result'") + + @handler.do_find(@irequest, @request, @response) + end + + it "should serialize the result in with the appropriate format" do @model_instance = stub('model instance') |