diff options
author | Jay Mundrawala <jdmundrawala@gmail.com> | 2016-02-25 15:11:57 -0800 |
---|---|---|
committer | Jay Mundrawala <jdmundrawala@gmail.com> | 2016-02-25 15:11:57 -0800 |
commit | e51833571aa603e70e46893c5fdc6c11263009a6 (patch) | |
tree | ccc3417054a1adc4410172906049d8eab13ec70c | |
parent | 6e88c0b22fb5ef7873d73e255af98ad6a3bf40be (diff) | |
download | chef-e51833571aa603e70e46893c5fdc6c11263009a6.tar.gz |
Add a shared context for allowing md5
This will allow MD5 for certain tests even in fips
mode.
-rw-r--r-- | spec/support/shared/context/md5.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/support/shared/context/md5.rb b/spec/support/shared/context/md5.rb new file mode 100644 index 0000000000..00a0fd98ff --- /dev/null +++ b/spec/support/shared/context/md5.rb @@ -0,0 +1,15 @@ +require "chef/config" +require "chef/mixin/fips" +require "spec_helper" + +shared_context "allow md5" do + include Chef::Mixin::FIPS + before do + allow_md5 if fips? + end + + after do + disallow_md5 if fips? + end + +end |