diff options
author | Matt Wrock <matt@mattwrock.com> | 2016-04-25 13:14:41 -0700 |
---|---|---|
committer | Matt Wrock <matt@mattwrock.com> | 2016-04-25 13:14:41 -0700 |
commit | de243172e1b47afbc0873769d637caf7d4199114 (patch) | |
tree | 6a16704d430e6ed4c4746a1336346714dd6630cf /spec/support | |
parent | 32fbc8908cc41c218951d5e2c9413e7efc6df5f1 (diff) | |
download | chef-de243172e1b47afbc0873769d637caf7d4199114.tar.gz |
run in fips mode if node is fips enabled
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/shared/context/client.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/spec/support/shared/context/client.rb b/spec/support/shared/context/client.rb index d8676ef168..2f127c5cbd 100644 --- a/spec/support/shared/context/client.rb +++ b/spec/support/shared/context/client.rb @@ -16,11 +16,18 @@ shared_context "client" do :machinename => machinename, :platform => platform, :platform_version => platform_version, + :fips => { :kernel => { :enabled => false } }, } end let(:ohai_system) do - ohai = instance_double("Ohai::System", :all_plugins => true, :data => ohai_data) + ohai = instance_double( + "Ohai::System", + :all_plugins => true, + :data => ohai_data, + :load_plugins => nil, + :require_plugin => nil + ) allow(ohai).to receive(:[]) do |k| ohai_data[k] end |