Fixed failing specs

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
This commit is contained in:
Vasu1105 2021-07-01 15:28:58 +05:30
parent 471b7b4550
commit 6bfc2fad2f
2 changed files with 2 additions and 2 deletions

View file

@ -153,7 +153,7 @@ class MockLoader
"database.xml" => mockfile.call("database.xml"),
"/test/path/to/postgres/pg_hba.conf" => mockfile.call("pg_hba.conf"),
"/etc/postgresql/9.5/main/pg_ident.conf" => mockfile.call("pg_ident.conf"),
"C:/etc/postgresql/9.5/main/pg_ident.conf" => mockfile.call("pg_ident.conf"),
"C:/Program Files/PostgreSQL/9.5/main/pg_ident.conf" => mockfile.call("pg_ident.conf"),
"/etc/postgresql/9.5/main" => mockfile.call("9.5.main"),
"/var/lib/postgresql/9.5/main" => mockfile.call("var.9.5.main"),
"/etc/hosts" => mockfile.call("hosts"),

View file

@ -5,7 +5,7 @@ require "inspec/resources/directory"
describe "Inspec::Resources::PGIdentConf" do
describe "PGIdentConf Paramaters" do
resource = load_resource("postgres_ident_conf")
resource = load_resource("postgres_ident_conf", "C:/Program Files/PostgreSQL/9.5/main/pg_ident.conf")
it "Verify postgres_ident_conf filtering by `system_username`" do
entries = resource.where { system_username == "bryanh" }
_(entries.map_name).must_equal ["omicron"]