Sha256: b34175741d500050c147326da0514e5bcbfc25a65048b6be5af1aadd926ccf41

Contents?: true

Size: 729 Bytes

Versions: 18

Compression:

Stored size: 729 Bytes

Contents

test_name 'C100193: Facter os, processors, and kernel facts resolve on all platforms' do
  tag 'risk:high'

  require 'json'
  require 'facter/acceptance/base_fact_utils'
  extend Facter::Acceptance::BaseFactUtils

  agents.each do |agent|
    step 'Ensure the os, processors, and kernel fact resolves as expected' do
      expected_facts = os_processors_and_kernel_expected_facts(agent)
      on(agent, facter('--json')) do |facter_result|
        results = JSON.parse(facter_result.stdout)
        expected_facts.each do |fact, value|
          actual_fact = json_result_fact_by_key_path(results, fact)
          assert_match(value, actual_fact.to_s, "Incorrect fact value for #{fact}")
        end
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
facter-4.0.29 acceptance/tests/facts/os_processors_and_kernel.rb
facter-4.0.28 acceptance/tests/facts/os_processors_and_kernel.rb
facter-3.12.2.cfacter.20181217 ext/facter/facter/acceptance/tests/facts/os_processors_and_kernel.rb
facter-3.12.1.cfacter.20181031 ext/facter/facter/acceptance/tests/facts/os_processors_and_kernel.rb
facter-3.11.6.cfacter.20181031 ext/facter/facter/acceptance/tests/facts/os_processors_and_kernel.rb
facter-3.12.1.cfacter.20181023 ext/facter/facter/acceptance/tests/facts/os_processors_and_kernel.rb
facter-3.11.5.cfacter.20181022 ext/facter/facter/acceptance/tests/facts/os_processors_and_kernel.rb
facter-3.12.0.cfacter.20181004 ext/facter/facter/acceptance/tests/facts/os_processors_and_kernel.rb
facter-3.12.0.cfacter.20181001 ext/facter/facter/acceptance/tests/facts/os_processors_and_kernel.rb
facter-3.12.0.cfacter.20180918 ext/facter/facter/acceptance/tests/facts/os_processors_and_kernel.rb
facter-3.11.4.cfacter.20180821 ext/facter/facter/acceptance/tests/facts/os_processors_and_kernel.rb
facter-3.11.3.cfacter.20180716 ext/facter/facter/acceptance/tests/facts/os_processors_and_kernel.rb
facter-3.11.2.cfacter.20180612 ext/facter/facter/acceptance/tests/facts/os_processors_and_kernel.rb
facter-3.9.6.cfacter.20180612 ext/facter/facter/acceptance/tests/facts/os_processors_and_kernel.rb
facter-3.11.2.cfacter.20180606 ext/facter/facter/acceptance/tests/facts/os_processors_and_kernel.rb
facter-3.9.6.cfacter.20180606 ext/facter/facter/acceptance/tests/facts/os_processors_and_kernel.rb
facter-3.11.0.cfacter.20180319 ext/facter/facter/acceptance/tests/facts/os_processors_and_kernel.rb
cfacter-3.11.0.rc.20180314 ext/facter/facter/acceptance/tests/facts/os_processors_and_kernel.rb