Commit 684352bf authored by Christopher Huhn's avatar Christopher Huhn 🥚
Browse files

Add crontab check

parent da3c7c74
......@@ -26,7 +26,7 @@ end
describe command 'gpg --no-default-keyring --list-keys --keyring /srv/debmirror/.gnupg/trustedkeys.gpg' do
its(:exit_status) { should be_zero }
its(:stdout) { should contain "CernVM Administrator" }
its(:stdout) { should contain 'CernVM Administrator' }
# its(:stderr) { should be_empty } # complains about "unsafe ownership on /home/vagrant/.gnupg"
end
......@@ -46,3 +46,9 @@ describe file '/srv/debmirror/cvmfs' do
it { should exist }
it { should be_directory }
end
describe command 'crontab -u nobody -l' do
its(:exit_status) { should be_zero }
its(:stdout) { should match '^((\d+|\*) ){5}run-parts --regex=\.sh\$ /etc/debmirror\.d$' }
its(:stderr) { should be_empty }
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment