test(inspec): rename all files to avoid unnecessary _spec suffix
This commit is contained in:
26
test/integration/default/controls/services.rb
Normal file
26
test/integration/default/controls/services.rb
Normal file
@@ -0,0 +1,26 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
service_name = 'postgresql'
|
||||
|
||||
pg_port =
|
||||
case platform[:family]
|
||||
when 'debian', 'suse'
|
||||
5433
|
||||
else
|
||||
5432
|
||||
end
|
||||
|
||||
control 'Postgres service' do
|
||||
impact 0.5
|
||||
title 'should be installed, enabled and running'
|
||||
|
||||
describe service(service_name) do
|
||||
it { should be_installed }
|
||||
it { should be_enabled }
|
||||
it { should be_running }
|
||||
end
|
||||
|
||||
describe port(pg_port) do
|
||||
it { should be_listening }
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user