MCPcopy Create free account
hub / github.com/MagicStack/asyncpg / _add_hba_entries

Method _add_hba_entries

tests/test_connect.py:2084–2089  ·  view source on GitHub ↗
(self, connection_type, auth_method, *,
                         addresses=('127.0.0.0/24', '::1/128'))

Source from the content-addressed store, hash-verified

2082 raise NotImplementedError()
2083
2084 def _add_hba_entries(self, connection_type, auth_method, *,
2085 addresses=('127.0.0.0/24', '::1/128')):
2086 for address in addresses:
2087 self.cluster.add_hba_entry(
2088 type=connection_type, address=ipaddress.ip_network(address),
2089 database='postgres', user='ssl_user', auth_method=auth_method)
2090
2091 async def _test_works(self, *, expected_ssl=None, **conn_args):
2092 con = await self.connect(**conn_args)

Calls 1

add_hba_entryMethod · 0.45

Tested by

no test coverage detected