diff options
author | Jay Mundrawala <jdmundrawala@gmail.com> | 2016-01-22 14:53:49 -0800 |
---|---|---|
committer | Jay Mundrawala <jdmundrawala@gmail.com> | 2016-01-25 09:54:21 -0800 |
commit | 6e784ba749b543b13f667a2e267877f0d54141cb (patch) | |
tree | 9da2c4eb2b35f0fffc22cba70644670edc4f2831 /spec/unit/http | |
parent | 724c32510f097ebdffdcc387392862a9ae5f835c (diff) | |
download | chef-6e784ba749b543b13f667a2e267877f0d54141cb.tar.gz |
Skip Version0 encrypted databag tests when in fips mode
aes-256-cbc does not seem to work when openssl is in fips mode.
The only other reference I could find to this was:
https://access.redhat.com/solutions/176633
Diffstat (limited to 'spec/unit/http')
-rw-r--r-- | spec/unit/http/ssl_policies_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/http/ssl_policies_spec.rb b/spec/unit/http/ssl_policies_spec.rb index 98f1fa9c37..510a1a66bc 100644 --- a/spec/unit/http/ssl_policies_spec.rb +++ b/spec/unit/http/ssl_policies_spec.rb @@ -109,7 +109,7 @@ describe "HTTP SSL Policy" do Chef::Config[:ssl_client_cert] = CHEF_SPEC_DATA + "/ssl/chef-rspec.cert" Chef::Config[:ssl_client_key] = CHEF_SPEC_DATA + "/ssl/chef-rspec.key" expect(http_client.cert.to_s).to eq(OpenSSL::X509::Certificate.new(IO.read(CHEF_SPEC_DATA + "/ssl/chef-rspec.cert")).to_s) - expect(http_client.key.to_s).to eq(IO.read(CHEF_SPEC_DATA + "/ssl/chef-rspec.key")) + expect(http_client.key.to_s).to eq(OpenSSL::PKey::RSA.new(IO.read(CHEF_SPEC_DATA + "/ssl/chef-rspec.key")).to_s) end end |