Assert db purge cron job

This makes sure the db purge cron job is properly configured in
acceptance tests. The job was enabled in the common manifest a while
ago by the dependent change.

Depends-on: https://review.opendev.org/792743
Change-Id: Ic83d6595cd23319e286719c2e7f766ea1aa3e4da
This commit is contained in:
Takashi Kajinami 2022-11-28 15:38:01 +09:00
parent ee6ef7d496
commit 1c0d3e0181
1 changed files with 4 additions and 0 deletions

View File

@ -33,5 +33,9 @@ describe 'glance class' do
describe port(9292) do
it { is_expected.to be_listening }
end
describe cron do
it { is_expected.to have_entry('1 0 * * * glance-manage db purge --age_in_days 30 --max_rows 100 >>/var/log/glance/glance-rowsflush.log 2>&1').with_user('glance') }
end
end
end