Sha256: 91cb2032378b3745fb9ff687e11dafe2753e491fed8fa017b17ce73216a8fbfd

Contents?: true

Size: 610 Bytes

Versions: 12

Compression:

Stored size: 610 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

12 entries across 12 versions & 1 rubygems

Version Path
chef-18.4.12-x64-mingw-ucrt spec/integration/client/fips_spec.rb
chef-18.4.12 spec/integration/client/fips_spec.rb
chef-18.4.2-x64-mingw-ucrt spec/integration/client/fips_spec.rb
chef-18.4.2 spec/integration/client/fips_spec.rb
chef-18.3.0-x64-mingw-ucrt spec/integration/client/fips_spec.rb
chef-18.3.0 spec/integration/client/fips_spec.rb
chef-18.2.7-x64-mingw-ucrt spec/integration/client/fips_spec.rb
chef-18.2.7 spec/integration/client/fips_spec.rb
chef-18.1.29 spec/integration/client/fips_spec.rb
chef-18.1.29-x64-mingw-ucrt spec/integration/client/fips_spec.rb
chef-18.1.0-x64-mingw-ucrt spec/integration/client/fips_spec.rb
chef-18.1.0 spec/integration/client/fips_spec.rb