Sha256: 5385215615c4a1ee1bb3b3705098d718ea28090cff65931931f62c69ae75362a

Contents?: true

Size: 762 Bytes

Versions: 18

Compression:

Stored size: 762 Bytes

Contents

# This test verifies that calling facter with both --no-custom-facts and --custom-dir results
# in an options conflict error
test_name "C100001: custom fact commandline options --no-custom-facts together with --custom-dir should produce an error" do
  tag 'risk:low'

  agents.each do |agent|
    custom_dir = agent.tmpdir('custom_dir')

    teardown do
      on(agent, "rm -rf '#{custom_dir}'")
    end

    step "Agent #{agent}: --no-custom-facts and --custom-dir options should result in a error" do
      on(agent, facter("--no-custom-facts --custom-dir '#{custom_dir}'"), :acceptable_exit_codes => 1) do |facter_output|
        assert_match(/options conflict/, facter_output.stderr.chomp, "Output does not contain error string")
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 2 rubygems

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