From f1b4a14042dc2305035d859cb954e03efdcf71ed Mon Sep 17 00:00:00 2001 From: Martin Schuppert Date: Tue, 3 Nov 2020 09:19:02 +0100 Subject: [PATCH] Fix duplicated user keys c7f44fde73896c762ea19ac89bd3d605b74227ff 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 --- spec/classes/nova_cron_purge_shadow_tables.rb | 3 --- 1 file changed, 3 deletions(-) diff --git a/spec/classes/nova_cron_purge_shadow_tables.rb b/spec/classes/nova_cron_purge_shadow_tables.rb index d276ee1fb..1277b499a 100644 --- a/spec/classes/nova_cron_purge_shadow_tables.rb +++ b/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],