inspec/test/unit/resources/postgres_conf_test.rb
Ryan Davis a5309ea392 blindly applied chefstyle -a
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-06-11 18:52:03 -07:00

14 lines
587 B
Ruby

require "helper"
require "inspec/resource"
require "inspec/resources/postgres_conf"
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