Sha256: d22a0d7c318bd22658698667ecbec2a55194453f95427b0b170725bf93ab7f87
Contents?: true
Size: 611 Bytes
Versions: 2
Compression:
Stored size: 611 Bytes
Contents
require "spec_helper" describe "chef-client fips" do def enable_fips OpenSSL.fips_mode = true end # All tests assume fips mode is off at present after { OpenSSL.fips_mode = false } # For non-FIPS OSes/builds of Ruby, enabling FIPS should error example "Error enabling fips_mode if FIPS not linked", fips_mode: false do expect { enable_fips }.to raise_error(OpenSSL::OpenSSLError) end # For FIPS OSes/builds of Ruby, enabling FIPS should not error example "Do not error enabling fips_mode if FIPS linked", fips_mode: true do expect { enable_fips }.not_to raise_error end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
chef-16.18.30-universal-mingw32 | spec/integration/client/fips_spec.rb |
chef-16.18.30 | spec/integration/client/fips_spec.rb |