summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorJay Mundrawala <jdmundrawala@gmail.com>2016-01-22 15:20:24 -0800
committerJay Mundrawala <jdmundrawala@gmail.com>2016-01-25 09:54:21 -0800
commit242eb86fbb1cd2d34126421214cd790614f7caee (patch)
treeabef76ce0f82da2396863d802ff829ce0851f702 /spec
parent2bcb7d06dcb49c953b9e666b24c8bd3cb56da2c5 (diff)
downloadchef-242eb86fbb1cd2d34126421214cd790614f7caee.tar.gz
Do openssl initialization in chef-fips test pipeline
Diffstat (limited to 'spec')
-rw-r--r--spec/spec_helper.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 378381ddcc..34716e5fd8 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -67,6 +67,10 @@ require "chef/util/file_edit"
require "chef/config"
+if ENV["CHEF_FIPS"] == "1"
+ Chef::Config.init_openssl
+end
+
# If you want to load anything into the testing environment
# without versioning it, add it to spec/support/local_gems.rb
require "spec/support/local_gems.rb" if File.exists?(File.join(File.dirname(__FILE__), "support", "local_gems.rb"))