Sha256: cac247679773096b815484a38c98270feee67dd082a16f700adfaf874c49df68
Contents?: true
Size: 480 Bytes
Versions: 2
Compression:
Stored size: 480 Bytes
Contents
test_name 'C98098: --strict flag returns errors on non-existent facts' do tag 'risk:high' agents.each do |agent| step 'facter should return exit code 1 for querying non-existing-fact with --strict flag' do on(agent, facter('non-existing-fact --strict'), :acceptable_exit_codes => 1) do |facter_output| assert_match(/ERROR\s+.* - .*fact "non-existing-fact" does not exist/, facter_output.stderr, 'Unexpected error was detected!') end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
facter-4.0.29 | acceptance/tests/options/strict.rb |
facter-4.0.28 | acceptance/tests/options/strict.rb |