Fix ignored unit tests
Unit test files should be named like *_spec.rb. Change-Id: I3fe97b4d5c9c2bb3709e37c561af353b859495ef
This commit is contained in:
parent
9aed3eff73
commit
5b135ed130
@ -26,7 +26,7 @@ describe 'nova::cron::purge_shadow_tables' do
|
||||
|
||||
it 'configures a nova purge cron with verbose output' do
|
||||
is_expected.to contain_cron('nova-manage db purge').with(
|
||||
:command => "nova-manage db purge --before `date --date='today - #{params[:age]} days' +\\%D` --verbose >>#{params[:destination]} 2>&1",
|
||||
:command => "nova-manage db purge --before `date --date='today - #{params[:age]} days' +\\%D` --verbose >>#{params[:destination]} 2>&1",
|
||||
:environment => 'PATH=/bin:/usr/bin:/usr/sbin SHELL=/bin/sh',
|
||||
:user => params[:user],
|
||||
:minute => params[:minute],
|
||||
@ -48,7 +48,7 @@ describe 'nova::cron::purge_shadow_tables' do
|
||||
|
||||
it 'configures a nova purge cron without verbose output' do
|
||||
is_expected.to contain_cron('nova-manage db purge').with(
|
||||
:command => "nova-manage db purge --before `date --date='today - #{params[:age]} days' +\\%D` >>#{params[:destination]} 2>&1",
|
||||
:command => "nova-manage db purge --before `date --date='today - #{params[:age]} days' +\\%D` >>#{params[:destination]} 2>&1",
|
||||
:environment => 'PATH=/bin:/usr/bin:/usr/sbin SHELL=/bin/sh',
|
||||
:user => params[:user],
|
||||
:minute => params[:minute],
|
||||
@ -70,7 +70,7 @@ describe 'nova::cron::purge_shadow_tables' do
|
||||
|
||||
it 'configures a nova purge cron with all cells enabled' do
|
||||
is_expected.to contain_cron('nova-manage db purge').with(
|
||||
:command => "nova-manage db purge --before `date --date='today - #{params[:age]} days' +%D` --verbose --all-cells >>#{params[:destination]} 2>&1",
|
||||
:command => "nova-manage db purge --before `date --date='today - #{params[:age]} days' +\\%D` --all-cells >>#{params[:destination]} 2>&1",
|
||||
:environment => 'PATH=/bin:/usr/bin:/usr/sbin SHELL=/bin/sh',
|
||||
:user => params[:user],
|
||||
:minute => params[:minute],
|
||||
@ -92,7 +92,7 @@ describe 'nova::cron::purge_shadow_tables' do
|
||||
|
||||
it 'configures a nova purge cron with maxdelay' do
|
||||
is_expected.to contain_cron('nova-manage db purge').with(
|
||||
:command => "sleep `expr ${RANDOM} \\% #{params[:maxdelay]}`; nova-manage db purge --before `date --date='today - #{params[:age]} days' +\\%D` --verbose --all-cells >>#{params[:destination]} 2>&1",
|
||||
:command => "sleep `expr ${RANDOM} \\% #{params[:maxdelay]}`; nova-manage db purge --before `date --date='today - #{params[:age]} days' +\\%D` >>#{params[:destination]} 2>&1",
|
||||
:environment => 'PATH=/bin:/usr/bin:/usr/sbin SHELL=/bin/sh',
|
||||
:user => params[:user],
|
||||
:minute => params[:minute],
|
Loading…
x
Reference in New Issue
Block a user