| 1 | require 'spec_helper' |
| 2 | |
| 3 | describe 'logrotate::defaults::debian' do |
| 4 | it do |
| 5 | should contain_logrotate__rule('wtmp').with({ |
| 6 | 'rotate_every' => 'month', |
| 7 | 'rotate' => '1', |
| 8 | 'create' => true, |
| 9 | 'create_mode' => '0664', |
| 10 | 'create_owner' => 'root', |
| 11 | 'create_group' => 'utmp', |
| 12 | 'missingok' => true, |
| 13 | }) |
| 14 | |
| 15 | should contain_logrotate__rule('btmp').with({ |
| 16 | 'rotate_every' => 'month', |
| 17 | 'rotate' => '1', |
| 18 | 'create' => true, |
| 19 | 'create_mode' => '0660', |
| 20 | 'create_owner' => 'root', |
| 21 | 'create_group' => 'utmp', |
| 22 | 'missingok' => true, |
| 23 | }) |
| 24 | end |
| 25 | end |