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)
(cherry picked from commit 447c4f4a05)
(cherry picked from commit fd64d33ae5)
(cherry picked from commit b43e741e16)
(cherry picked from commit 3d1a6f4085)
changes/18/762118/1
Martin Schuppert 12 months ago
parent
commit
230c1aa8ef
  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