This file is indexed.

/usr/share/puppet/modules.available/puppet-community-mcollective/spec/defines/mcollective__common__setting_spec.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
require 'spec_helper'

describe 'mcollective::common::setting' do
  context 'some_setting' do
    let(:title) { 'some_setting' }
    let(:params) { { 'value' => 'pie' } }
    it { should contain_mcollective__setting('mcollective::common::setting some_setting') }
    it { should contain_mcollective__setting('mcollective::common::setting some_setting').with_setting('some_setting') }
    it { should contain_mcollective__setting('mcollective::common::setting some_setting').with_value('pie') }
    it { should contain_mcollective__setting('mcollective::common::setting some_setting').with_target(%w( mcollective::server mcollective::client )) }
  end

  context 'some_setting with different title' do
    let(:title) { 'some_other_setting' }
    let(:params) { { 'setting' => 'some_setting', 'value' => 'pie' } }
    it { should contain_mcollective__setting('mcollective::common::setting some_other_setting') }
    it { should contain_mcollective__setting('mcollective::common::setting some_other_setting').with_setting('some_setting') }
    it { should contain_mcollective__setting('mcollective::common::setting some_other_setting').with_value('pie') }
    it { should contain_mcollective__setting('mcollective::common::setting some_other_setting').with_target(%w( mcollective::server mcollective::client )) }
  end
end