Validate cache cron jobs

Depends-on: https://review.opendev.org/911023
Change-Id: If64ffbb0fefa05629a1b78be677f5adf18f52648
This commit is contained in:
Takashi Kajinami
2024-03-05 11:57:15 +09:00
parent 0dcda53bb3
commit 664f39dc34

View File

@@ -36,6 +36,8 @@ describe 'glance class' do
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') }
it { is_expected.to have_entry('1 0 * * * glance-cache-cleaner').with_user('glance') }
it { is_expected.to have_entry('*/30 * * * * glance-cache-pruner').with_user('glance') }
end
end
end