test(inspec): replace serverspec with inspec tests

This commit is contained in:
Imran Iqbal
2019-04-25 03:01:31 +01:00
parent c64d9e4ab9
commit 58ac122d50
5 changed files with 41 additions and 23 deletions

View File

@@ -0,0 +1,13 @@
control 'Postgres service' do
impact 0.5
title 'should be running and enabled'
describe service('postgresql') do
it { should be_enabled }
it { should be_running }
end
describe port(5432) do
it { should be_listening }
end
end