Browse Source

Fix duplicated user keys

c7f44fde73 fixed this for
spec/classes/nova_cron_archive_deleted_rows_spec.rb , lets
fix it also for spec/classes/nova_cron_purge_shadow_tables.rb .

Change-Id: I817ec7c497c510a410590c66b9f3f6f66ffc1b90
(cherry picked from commit f1b4a14042)
changes/92/761392/1
Martin Schuppert 9 months ago
parent
commit
447c4f4a05
  1. 3
      spec/classes/nova_cron_purge_shadow_tables.rb

3
spec/classes/nova_cron_purge_shadow_tables.rb

@ -27,7 +27,6 @@ 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",
:user => 'nova',
:environment => 'PATH=/bin:/usr/bin:/usr/sbin SHELL=/bin/sh',
:user => params[:user],
:minute => params[:minute],
@ -50,7 +49,6 @@ 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",
:user => 'nova',
:environment => 'PATH=/bin:/usr/bin:/usr/sbin SHELL=/bin/sh',
:user => params[:user],
:minute => params[:minute],
@ -73,7 +71,6 @@ 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",
:user => 'nova',
:environment => 'PATH=/bin:/usr/bin:/usr/sbin SHELL=/bin/sh',
:user => params[:user],
:minute => params[:minute],

Loading…
Cancel
Save