Initial release
This commit is contained in:
30
test/integration/default/default_test.rb
Normal file
30
test/integration/default/default_test.rb
Normal file
@@ -0,0 +1,30 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user