From f419d734655166f7367d9e6e595988d03ec3c267 Mon Sep 17 00:00:00 2001 From: Michael Banck Date: Thu, 13 Feb 2020 15:06:36 +0100 Subject: [PATCH] Set postgresql.pgpass to ./pgpass (#1386) This avoids test failures if $HOME is not available (fixes: #1385). --- tests/test_ctl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_ctl.py b/tests/test_ctl.py index 46759ff7..239058a4 100644 --- a/tests/test_ctl.py +++ b/tests/test_ctl.py @@ -32,7 +32,7 @@ def test_rw_config(): @patch('patroni.ctl.load_config', - Mock(return_value={'scope': 'alpha', 'postgresql': {'data_dir': '.', 'parameters': {}, 'retry_timeout': 5}, + Mock(return_value={'scope': 'alpha', 'postgresql': {'data_dir': '.', 'pgpass': './pgpass', 'parameters': {}, 'retry_timeout': 5}, 'restapi': {'listen': '::', 'certfile': 'a'}, 'etcd': {'host': 'localhost:2379'}})) class TestCtl(unittest.TestCase):