MCPcopy Index your code
hub / github.com/MagicStack/asyncpg / get_server_settings

Method get_server_settings

tests/test_connect.py:1798–1810  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

1796class BaseTestSSLConnection(tb.ConnectedTestCase):
1797 @classmethod
1798 def get_server_settings(cls):
1799 conf = super().get_server_settings()
1800 conf.update({
1801 'ssl': 'on',
1802 'ssl_cert_file': SSL_CERT_FILE,
1803 'ssl_key_file': SSL_KEY_FILE,
1804 'ssl_ca_file': CLIENT_CA_CERT_FILE,
1805 })
1806 if cls.cluster.get_pg_version() >= (12, 0):
1807 conf['ssl_min_protocol_version'] = 'TLSv1.2'
1808 conf['ssl_max_protocol_version'] = 'TLSv1.2'
1809
1810 return conf
1811
1812 @classmethod
1813 def setup_cluster(cls):

Callers

nothing calls this directly

Calls 2

get_pg_versionMethod · 0.80
get_server_settingsMethod · 0.45

Tested by

no test coverage detected