diff options
author | Irving Popovetsky <irving@getchef.com> | 2015-05-05 11:26:26 -0700 |
---|---|---|
committer | Irving Popovetsky <irving@getchef.com> | 2015-05-05 11:26:26 -0700 |
commit | 014113b5c6a8f1650c5968da1385a4ae4237b84e (patch) | |
tree | 29a423cc008fa879624d1f405d8b4deb2ec261d7 /spec | |
parent | 1656fd7b8d34348541311e063192964ac014159d (diff) | |
download | chef-014113b5c6a8f1650c5968da1385a4ae4237b84e.tar.gz |
Remove now-redundant verify_mode because DefaultSSLPolicy takes care of it for us
Diffstat (limited to 'spec')
-rw-r--r-- | spec/unit/cookbook_site_streaming_uploader_spec.rb | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/spec/unit/cookbook_site_streaming_uploader_spec.rb b/spec/unit/cookbook_site_streaming_uploader_spec.rb index ef0f649163..0041a142dc 100644 --- a/spec/unit/cookbook_site_streaming_uploader_spec.rb +++ b/spec/unit/cookbook_site_streaming_uploader_spec.rb @@ -121,27 +121,6 @@ describe Chef::CookbookSiteStreamingUploader do }) end - describe "http verify mode" do - before do - @uri = "https://cookbooks.dummy.com/api/v1/cookbooks" - uri_info = URI.parse(@uri) - @http = Net::HTTP.new(uri_info.host, uri_info.port) - expect(Net::HTTP).to receive(:new).with(uri_info.host, uri_info.port).and_return(@http) - end - - it "should be VERIFY_NONE when ssl_verify_mode is :verify_none" do - Chef::Config[:ssl_verify_mode] = :verify_none - Chef::CookbookSiteStreamingUploader.make_request(:post, @uri, 'bill', @secret_filename) - expect(@http.verify_mode).to eq(OpenSSL::SSL::VERIFY_NONE) - end - - it "should be VERIFY_PEER when ssl_verify_mode is :verify_peer" do - Chef::Config[:ssl_verify_mode] = :verify_peer - Chef::CookbookSiteStreamingUploader.make_request(:post, @uri, 'bill', @secret_filename) - expect(@http.verify_mode).to eq(OpenSSL::SSL::VERIFY_PEER) - end - end - end # make_request describe "StreamPart" do |