diff options
author | Jay Mundrawala <jdmundrawala@gmail.com> | 2016-01-26 11:31:59 -0800 |
---|---|---|
committer | Jay Mundrawala <jdmundrawala@gmail.com> | 2016-01-26 11:31:59 -0800 |
commit | 15ee9bd1b9ff3332d2197e29fffdffff82dda06f (patch) | |
tree | de5ad3a6473e3c3574788f742f79a2f05f19d885 /spec | |
parent | 2c389f40b1527599ebc45e95ddea46643872ccdc (diff) | |
download | chef-15ee9bd1b9ff3332d2197e29fffdffff82dda06f.tar.gz |
Fix client_specjdm/1.3-fips
Diffstat (limited to 'spec')
-rw-r--r-- | spec/unit/client_spec.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/spec/unit/client_spec.rb b/spec/unit/client_spec.rb index 82adf057dc..60b274a774 100644 --- a/spec/unit/client_spec.rb +++ b/spec/unit/client_spec.rb @@ -45,12 +45,16 @@ describe Chef::Client do end describe "authentication protocol selection" do - context "when openssl is not compiled with the FIPS module" do + context "when FIPS is disabled" do + before do + Chef::Config[:fips] = false + end + it "defaults to 1.1" do expect(Chef::Config[:authentication_protocol_version]).to eq("1.1") end end - context "when openssl is compiled with the FIPS module" do + context "when FIPS is enabled" do before do Chef::Config[:fips] = true end |