Râu Cao 5f661d7304
Make all config values configurable
And use a standard scheme for variable/key naming
2025-06-01 19:57:04 +04:00

32 lines
692 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 }
its('content') { should match(/name\s*=\s*"Test relay"/m) }
end
describe file('/var/lib/strfry') do
it { should be_directory }
end
describe port(7778) do
it { should be_listening }
its('addresses') { should include '0.0.0.0' }
end