Set postgresql.pgpass to ./pgpass (#1386)

This avoids test failures if $HOME is not available (fixes: #1385).
This commit is contained in:
Michael Banck
2020-02-13 15:06:36 +01:00
committed by GitHub
parent 4737af48bf
commit f419d73465
+1 -1
View File
@@ -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):