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
|