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,10 @@
control 'Postgres configuration' do
title 'should include the directory'
describe file('/srv/my_tablespace') do
it { should be_directory }
it { should be_owned_by 'postgres' }
it { should be_grouped_into 'postgres' }
its('mode') { should cmp '0700' }
end
end