test(inspec): enable use_upstream_repo for debian & centos-6

* Add new `centos-6` image
* Install `9.6` from upstream repo
This commit is contained in:
Imran Iqbal
2019-05-01 14:53:03 +01:00
parent 4cfde8d6e9
commit 49fdd3333b
4 changed files with 15 additions and 16 deletions

View File

@@ -1,8 +1,14 @@
# Overide by OS
service_name = 'postgresql'
if os[:name] == 'centos' and os[:release].start_with?('6')
service_name = 'postgresql-9.6'
end
control 'Postgres service' do
impact 0.5
title 'should be running and enabled'
describe service('postgresql') do
describe service(service_name) do
it { should be_enabled }
it { should be_running }
end