summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Mundrawala <jdmundrawala@gmail.com>2016-01-26 11:31:59 -0800
committerJay Mundrawala <jdmundrawala@gmail.com>2016-01-26 11:31:59 -0800
commit15ee9bd1b9ff3332d2197e29fffdffff82dda06f (patch)
treede5ad3a6473e3c3574788f742f79a2f05f19d885
parent2c389f40b1527599ebc45e95ddea46643872ccdc (diff)
downloadchef-jdm/1.3-fips.tar.gz
Fix client_specjdm/1.3-fips
-rw-r--r--spec/unit/client_spec.rb8
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