This file is indexed.

/usr/share/puppet/modules.available/puppet-community-mcollective/spec/spec_helper_system.rb is in puppet-module-puppet-community-mcollective 0.6.2-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
require 'rspec-system/spec_helper'
require 'rspec-system-puppet/helpers'

include RSpecSystemPuppet::Helpers

RSpec.configure do |c|
  # Project root for the firewall code
  proj_root = File.expand_path(File.join(File.dirname(__FILE__), '..'))

  # Enable colour in Jenkins
  c.tty = true

  c.include RSpecSystemPuppet::Helpers

  # This is where we 'setup' the nodes before running our tests
  c.before :suite do
    puppet_install

    rcp(:source_path => proj_root + '/spec/fixtures/hiera.yaml',
        :destination_path => '/etc/puppet/hiera.yaml')

    rcp(:source_path => proj_root + '/spec/fixtures/data',
        :destination_path => '/etc/puppet/data')

    puppet_module_install(:source => proj_root, :module_name => 'mcollective')
    puppet_module_install(:source => proj_root + '/spec/fixtures/modules/site_mcollective', :module_name => 'site_mcollective')
    puppet_module_install(:source => proj_root + '/spec/fixtures/modules/site_nagios', :module_name => 'site_nagios')
    # XXX would be better if puppet_module_install parsed this out of the
    # Modulefile
    #
    shell 'puppet module install puppetlabs/activemq'
    shell 'puppet module install puppetlabs/java_ks'
    shell 'puppet module install puppetlabs/rabbitmq'
    shell 'puppet module install richardc/datacat'
  end
end