Add support for patroni replication user socket connection (#1865)

Close #1866
This commit is contained in:
melrifa
2021-04-20 09:43:05 +02:00
committed by GitHub
parent 3ae459c6d5
commit 6d6b504cb8
4 changed files with 17 additions and 18 deletions
+2 -1
View File
@@ -475,7 +475,8 @@ class TestPostgresql(BaseTestPostgresql):
parameters = self._PARAMETERS.copy()
parameters.pop('f.oo')
parameters['wal_buffers'] = '512'
config = {'pg_hba': [''], 'pg_ident': [''], 'use_unix_socket': True, 'authentication': {},
config = {'pg_hba': [''], 'pg_ident': [''], 'use_unix_socket': True, 'use_unix_socket_repl': True,
'authentication': {},
'retry_timeout': 10, 'listen': '*', 'krbsrvname': 'postgres', 'parameters': parameters}
self.p.reload_config(config)
mock_fetchone.side_effect = Exception