Files
puppet-keystone/spec/classes/keystone_cron_token_flush_spec.rb
Emilien Macchi d080da7d36 token flushing: don't override log file
Modify the crontab which flush old tokens to not override the log file,
and avoid deleting previous logs.

Change-Id: I11566d62b633f2d396badcb0b3e99f62929dfec9
Signed-off-by: Emilien Macchi <emilien.macchi@enovance.com>
2014-09-01 14:23:06 +02:00

22 lines
544 B
Ruby

require 'spec_helper'
describe 'keystone::cron::token_flush' do
let :facts do
{ :osfamily => 'Debian' }
end
it 'configures a cron' do
should contain_cron('keystone-manage token_flush').with(
:command => 'keystone-manage token_flush >>/var/log/keystone/keystone-tokenflush.log 2>&1',
:environment => 'PATH=/bin:/usr/bin:/usr/sbin',
:user => 'keystone',
:minute => 1,
:hour => 0,
:monthday => '*',
:month => '*',
:weekday => '*'
)
end
end