Sha256: 6cca3c48b950c87d5620a4cbc9d534900215fd6c324f4eb746fa0ae6329178a7
Contents?: true
Size: 1.06 KB
Versions: 18
Compression:
Stored size: 1.06 KB
Contents
# This test is intended to demonstrate that setting the cli.debug field to true # causes DEBUG information to be printed to stderr. test_name "C99965: setting the debug config field to true prints debug info to stderr" do tag 'risk:high' require 'facter/acceptance/user_fact_utils' extend Facter::Acceptance::UserFactUtils config = <<EOM cli : { debug : true } EOM agents.each do |agent| step "Agent #{agent}: create config file" do config_dir = get_default_fact_dir(agent['platform'], on(agent, facter('kernelmajversion')).stdout.chomp.to_f) config_file = File.join(config_dir, "facter.conf") on(agent, "mkdir -p '#{config_dir}'") create_remote_file(agent, config_file, config) teardown do on(agent, "rm -rf '#{config_dir}'", :acceptable_exit_codes => [0,1]) end step "debug output should print when config file is loaded" do on(agent, facter("")) do |facter_output| assert_match(/DEBUG/, facter_output.stderr, "Expected DEBUG information in stderr") end end end end end
Version data entries
18 entries across 18 versions & 2 rubygems