(self)
| 2150 | @unittest.skipIf(os.environ.get('PGHOST'), 'unmanaged cluster') |
| 2151 | class 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'): |
nothing calls this directly
no test coverage detected