2024-06-07 19:37:45 +02:00

31 lines
630 B
Ruby

# Chef InSpec test for recipe strfry::default
# The Chef InSpec reference, with examples and extensive documentation, can be
# found at https://docs.chef.io/inspec/resources/
describe user('strfry') do
it { should exist }
end
describe group('strfry') do
it { should exist }
end
describe file('/usr/local/bin/strfry') do
it { should exist }
its('mode') { should cmp '00755' }
end
describe file('/etc/strfry.conf') do
it { should exist }
end
describe file('/var/lib/strfry') do
it { should be_directory }
end
describe port(7777) do
it { should be_listening }
its('addresses') { should include '0.0.0.0' }
end