Skip to content

Commit b606a8f

Browse files
committed
Force password_encryption to md5 while SCRAM is unsupported.
1 parent 9386fd5 commit b606a8f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

postgresql/test/test_connect.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,19 @@ def configure_cluster(self):
8080
if has_ipv6:
8181
listen_addresses += ',::1'
8282

83+
if self.cluster.installation.version_info >= (10, 0):
84+
pwe = 'md5'
85+
else:
86+
pwe = 'on'
87+
8388
self.cluster.settings.update(dict(
8489
port = str(self.cluster_port),
8590
max_connections = '6',
8691
shared_buffers = '24',
8792
listen_addresses = listen_addresses,
8893
log_destination = 'stderr',
8994
log_min_messages = 'FATAL',
95+
password_encryption = pwe,
9096
))
9197

9298
if self.disable_replication:

0 commit comments

Comments
 (0)