Sha256: 97409b0e4851fa175b8f91e3f11d43f1ac160b2cd0791c45a44ab2cd260bc58d

Contents?: true

Size: 856 Bytes

Versions: 16

Compression:

Stored size: 856 Bytes

Contents

# This tests is intended to verify that passing the `--list-cache-groups` flag
# will cause the names of cacheable resolvers to be printed to stdout.
test_name "C99970: the `--list-cache-groups` command line flag prints available cache groups to stdout" do
  tag 'risk:medium'

  agents.each do |agent|
    step "the various cache groups should be listed" do
      on(agent, facter("--list-cache-groups")) do |facter_output|
        assert_match(/EC2/, facter_output.stdout, "EC2 group should be listed as cacheable")
        assert_match(/ec2_metadata/, facter_output.stdout, "EC2 group's facts should be listed")
        assert_match(/kernel/, facter_output.stdout, "kernel group should be listed as cacheable")
        assert_match(/kernelversion/, facter_output.stdout, "kernel group's facts should be listed as cacheable")
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

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