File: defaults_debian_spec.rb

package info (click to toggle)
puppet-module-rodjek-logrotate 1.1.1%2Bds1-7
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 248 kB
  • sloc: ruby: 906; sh: 32; makefile: 10
file content (25 lines) | stat: -rw-r--r-- 634 bytes parent folder | download | duplicates (4)
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
require 'spec_helper'

describe 'logrotate::defaults::debian' do
  it do
    should contain_logrotate__rule('wtmp').with({
      'rotate_every' => 'month',
      'rotate'       => '1',
      'create'       => true,
      'create_mode'  => '0664',
      'create_owner' => 'root',
      'create_group' => 'utmp',
      'missingok'    => true,
    })

    should contain_logrotate__rule('btmp').with({
      'rotate_every' => 'month',
      'rotate'       => '1',
      'create'       => true,
      'create_mode'  => '0660',
      'create_owner' => 'root',
      'create_group' => 'utmp',
      'missingok'    => true,
    })
  end
end