mirror of
https://github.com/inspec/inspec
synced 2024-11-23 05:03:07 +00:00
Fixed failing specs
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
This commit is contained in:
parent
471b7b4550
commit
6bfc2fad2f
2 changed files with 2 additions and 2 deletions
|
@ -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"),
|
||||
|
|
|
@ -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"]
|
||||
|
|
Loading…
Reference in a new issue