You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
control 'postgres-12' do
impact 1.0
title 'Define max client connections'
desc 'Define max client connections'
describe postgres_conf do
its('max_connections') { should eq '100' }
end
end
and got the error:
postgres-12: Define max client connections (1 failed)
undefined method `max_connections' for PostgreSQL Configuration:Inspec::Resource::Registry::PostgresConf
I applied the chef-postgres-hardening cookbook. I can provide you access to my fork of the chef-postgres-hardening. Because i am switching the tests from serverspec to inspec for the project.
The text was updated successfully, but these errors were encountered:
Description
I add the following test to my inspec profile:
and got the error:
I execute the test with:
If i execute the test within the inspec shell like this:
postgres_conf.params['max_connections'].eql?'100'
I get the expected result:InSpec and Platform Version
inspec version 0.27.0
Replication Case
I started the ubuntu 16.04 (https://atlas.hashicorp.com/ubuntu/boxes/xenial64/versions/20160627.0.0/providers/virtualbox.box)
I applied the chef-postgres-hardening cookbook. I can provide you access to my fork of the chef-postgres-hardening. Because i am switching the tests from serverspec to inspec for the project.
The text was updated successfully, but these errors were encountered: