Improve compatibility with PostgreSQL 12 and 13 (#1523)

There were two new connection parameters introduced:
1. `gssencmode` in 12
2. `channel_binding` in 13
This commit is contained in:
Alexander Kukushkin
2020-05-13 13:13:25 +02:00
committed by GitHub
parent ffb879c6e6
commit 0d957076ca
3 changed files with 18 additions and 9 deletions
+1 -1
View File
@@ -93,7 +93,7 @@ class TestPostgresql(BaseTestPostgresql):
@patch('subprocess.call', Mock(return_value=0))
@patch('os.rename', Mock())
@patch('patroni.postgresql.CallbackExecutor', Mock())
@patch.object(Postgresql, 'get_major_version', Mock(return_value=120000))
@patch.object(Postgresql, 'get_major_version', Mock(return_value=130000))
@patch.object(Postgresql, 'is_running', Mock(return_value=True))
def setUp(self):
super(TestPostgresql, self).setUp()