Sha256: 8b0b84156267c78509444e2d06a750e402f5f500ad2d24e0d76ef55dad298866
Contents?: true
Size: 956 Bytes
Versions: 2
Compression:
Stored size: 956 Bytes
Contents
test_name 'C89524: facter should not crash with invalid locale setting' do tag 'risk:high', 'facter_3' confine :except, :platform => 'windows' confine :except, :platform => /^cisco_/ # See CISCO-43 confine :except, :platform => /^huawei/ # See HUAWEI-24 agents.each do |agent| step 'facter should run when started with an invalid locale' do on(agent, facter('facterversion'), :environment => {'LANG' => 'ABCD'}) do |facter_output| assert_match(/^\d+\.\d+\.\d+$/, facter_output.stdout, 'facter did not continue running') if agent['platform'] !~ /solaris|aix|cumulus|osx/ step 'facter should return an error message when started with an invalid locale' do assert_match(/locale environment variables were bad; continuing with LANG=C LC_ALL=C/, facter_output.stderr, 'Expected facter to return a locale error message') end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
facter-4.0.29 | acceptance/tests/ticket_1123_facter_with_invalid_locale.rb |
facter-4.0.28 | acceptance/tests/ticket_1123_facter_with_invalid_locale.rb |