Assert cron job definition

Depends-on: https://review.opendev.org/877876
Change-Id: I08b9c4927cbe104ec7dade52e3d46f91c8769e98
This commit is contained in:
Takashi Kajinami 2023-03-22 23:58:13 +09:00
parent 3f3c5dfd46
commit 4c56946003

View File

@ -25,6 +25,9 @@ describe 'basic watcher' do
describe port(9322) do
it { is_expected.to be_listening }
end
end
describe cron do
it { is_expected.to have_entry('1 0 * * * watcher-db-manage purge -d 30 >>/var/log/watcher/watcher-rowsflush.log 2>&1').with_user('watcher') }
end
end
end