Files
puppet-nova/spec/classes/nova_cron_archive_deleted_rows_spec.rb
Emilien Macchi 54802658ad crontab: ensure nova-common is installed before
Because we create a crontab with 'nova' user, we need to ensure it
exists. So we need to make sure Nova is installed (common package).

Otherwise, it can lead to dependencies issues.

Change-Id: I5157e710e4f2e95c4ec9c1f45b414e4a3dbf9228
2015-05-04 17:24:11 -04:00

23 lines
636 B
Ruby

require 'spec_helper'
describe 'nova::cron::archive_deleted_rows' do
let :facts do
{ :osfamily => 'Debian' }
end
it 'configures a cron' do
is_expected.to contain_cron('nova-manage db archive_deleted_rows').with(
:command => 'nova-manage db archive_deleted_rows --max_rows 100 >>/var/log/nova/nova-rowsflush.log 2>&1',
:environment => 'PATH=/bin:/usr/bin:/usr/sbin SHELL=/bin/sh',
:user => 'nova',
:minute => 1,
:hour => 0,
:monthday => '*',
:month => '*',
:weekday => '*',
:require => 'Package[nova-common]',
)
end
end