summaryrefslogtreecommitdiff
path: root/files/puppet/modules/pixelated/spec/classes/syslog_spec.rb
blob: f1b98a46f8f1a74fab25aa535d231e58d5766c2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
require 'spec_helper'

describe 'pixelated::syslog' do
  let(:facts) do
      {
        :operatingsystem  => 'Debian',
        :osfamily         => 'Debian',
        :lsbdistcodename  => 'jessie',
      }
  end
  let(:pre_condition) { [
      "class stdlib {}",
      "define rsyslog::snippet($content) {}",
      "define shorewall::rule($source,$destination,$action,$order) {}",
      "define apache::vhost::file($content,$mod_security) {}",
      "define apt::sources_list($content='deb url') {}",
      "define apt::apt_conf($source='file url') {}",
      "define apt::preferences_snippet($release='stable',$priority='999',$pin='release o=Debian') {}",
    ] }

 
  it { should contain_rsyslog__snippet('05-pixelated')}
  it { should contain_file('/etc/logrotate.d/pixelated')}
end