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

Method _add_hba_entry

tests/test_connect.py:2152–2161  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2150@unittest.skipIf(os.environ.get('PGHOST'), 'unmanaged cluster')
2151class TestNoSSLConnection(BaseTestSSLConnection):
2152 def _add_hba_entry(self):
2153 self.cluster.add_hba_entry(
2154 type='hostnossl', address=ipaddress.ip_network('127.0.0.0/24'),
2155 database='postgres', user='ssl_user',
2156 auth_method='trust')
2157
2158 self.cluster.add_hba_entry(
2159 type='hostnossl', address=ipaddress.ip_network('::1/128'),
2160 database='postgres', user='ssl_user',
2161 auth_method='trust')
2162
2163 async def test_nossl_connection_sslmode(self):
2164 async def verify_works(sslmode, *, host='localhost'):

Callers

nothing calls this directly

Calls 1

add_hba_entryMethod · 0.45

Tested by

no test coverage detected