patroni/debian/patches/pgpass_in_testsuite.patch
2017-09-14 14:55:13 +02:00

12 lines
856 B
Diff

--- ./tests/test_postgresql.py.orig 2017-09-12 13:00:06.189831872 +0200
+++ ./tests/test_postgresql.py 2017-09-12 13:00:28.966391766 +0200
@@ -174,7 +174,7 @@
if not os.path.exists(self.data_dir):
os.makedirs(self.data_dir)
self.p = Postgresql({'name': 'test0', 'scope': 'batman', 'data_dir': self.data_dir,
- 'config_dir': self.config_dir, 'retry_timeout': 10,
+ 'config_dir': self.config_dir, 'retry_timeout': 10, 'pgpass': '/tmp/pgpass0',
'listen': '127.0.0.2, 127.0.0.3:5432', 'connect_address': '127.0.0.2:5432',
'authentication': {'superuser': {'username': 'test', 'password': 'test'},
'replication': {'username': 'replicator', 'password': 'rep-pass'}},