mirror of
https://github.com/inspec/inspec
synced 2024-11-23 21:23:29 +00:00
6c19e81a06
Signed-off-by: Miah Johnson <miah@chia-pet.org>
13 lines
521 B
Ruby
13 lines
521 B
Ruby
|
|
require 'helper'
|
|
|
|
describe 'Inspec::Resources::Postgres' do
|
|
it 'verify postgresql.conf config parsing of a simple key value' do
|
|
resource = load_resource('postgres_conf', '/etc/postgresql/9.4/main/postgresql.conf')
|
|
_(resource.params('log_connections')).must_equal 'on'
|
|
end
|
|
it 'verify postgresql.conf config parsing of a complex key value' do
|
|
resource = load_resource('postgres_conf', '/etc/postgresql/9.4/main/postgresql.conf')
|
|
_(resource.value(['pgaudit.log_parameter'])).must_equal 'on'
|
|
end
|
|
end
|