inspec/test/integration/default/postgres_session_spec.rb

13 lines
326 B
Ruby
Raw Normal View History

# encoding: utf-8
2016-05-10 19:23:11 +02:00
# TODO: do not run those tests on docker yet
return if ENV['DOCKER']
# postgres-server is installed on these platforms
if ['ubuntu', 'centos'].include? os['family']
postgres = postgres_session('postgres', 'inspec')
describe postgres.query('show ssl;') do
its('output') { should eq 'on' }
end
end