Commit 8c2c8158 authored by Tim Smith's avatar Tim Smith
Browse files

Remove FreeBSD inspec testing


Signed-off-by: default avatarTim Smith <tsmith@chef.io>
parent d595502a
......@@ -18,29 +18,23 @@ if %w(debian ubuntu fedora redhat).include?(os[:family])
end
end
if os[:family] == 'freebsd'
describe file('/etc/crontab') do
its(:content) { should match(/\* \* \* \* \* appuser \/bin\/true/) }
end
else
# make sure the :create_if_missing didn't overwrite the :create
describe file('/etc/cron.d/test-weekday-usage-report') do
its(:content) { should match(/\/srv\/app\/scripts\/generate_report/) }
end
describe file('/etc/cron.d/nil_value_check') do
its(:content) { should match(/\* \* \* \* \* appuser \/bin\/true/) }
end
describe file('/etc/cron.d/delete_cron') do
it { should_not exist }
end
describe file('/etc/cron.d/job-with-periods') do
it { should exist }
end
# make sure the :create_if_missing didn't overwrite the :create
describe file('/etc/cron.d/test-weekday-usage-report') do
its(:content) { should match(/\/srv\/app\/scripts\/generate_report/) }
end
describe file('/etc/cron.d/nil_value_check') do
its(:content) { should match(/\* \* \* \* \* appuser \/bin\/true/) }
end
describe file('/etc/cron.d/delete_cron') do
it { should_not exist }
end
describe file('/etc/cron.d/job-with-periods') do
it { should exist }
end
# we created this in the test recipe and the provider should clean it up
describe file('/etc/cron.d/job.with.periods') do
it { should_not exist }
end
# we created this in the test recipe and the provider should clean it up
describe file('/etc/cron.d/job.with.periods') do
it { should_not exist }
end
describe file('/etc/cron.allow') do
......
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