From 6bfc2fad2f07f432f1e93d16464b973a18910338 Mon Sep 17 00:00:00 2001 From: Vasu1105 Date: Thu, 1 Jul 2021 15:28:58 +0530 Subject: [PATCH] Fixed failing specs Signed-off-by: Vasu1105 --- test/helpers/mock_loader.rb | 2 +- test/unit/resources/postgres_ident_conf_test.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/helpers/mock_loader.rb b/test/helpers/mock_loader.rb index 300540fa4..4ed1805f2 100644 --- a/test/helpers/mock_loader.rb +++ b/test/helpers/mock_loader.rb @@ -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"), diff --git a/test/unit/resources/postgres_ident_conf_test.rb b/test/unit/resources/postgres_ident_conf_test.rb index 2d8a6ef18..859d9b3b9 100644 --- a/test/unit/resources/postgres_ident_conf_test.rb +++ b/test/unit/resources/postgres_ident_conf_test.rb @@ -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"]