This file is indexed.

/usr/share/puppet/modules.available/puppetlabs-mongodb/spec/classes/server_install_spec.rb is in puppet-module-puppetlabs-mongodb 0.7.0-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
require 'spec_helper'

describe 'mongodb::server::install', :type => :class do

  describe 'it should create package and dbpath file' do
    let(:pre_condition) { ["class mongodb::server { $package_ensure = true $dbpath = '/var/lib/mongo' $user = 'mongodb' $package_name = 'mongodb-server' }", "include mongodb::server"]}

    it {
      should contain_package('mongodb_server').with({
        :ensure => 'present',
        :name   => 'mongodb-server',
      })
    }
  end

end