(self)
| 1851 | @unittest.skipIf(os.environ.get('PGHOST'), 'unmanaged cluster') |
| 1852 | class TestSSLConnection(BaseTestSSLConnection): |
| 1853 | def _add_hba_entry(self): |
| 1854 | self.cluster.add_hba_entry( |
| 1855 | type='hostssl', address=ipaddress.ip_network('127.0.0.0/24'), |
| 1856 | database='postgres', user='ssl_user', |
| 1857 | auth_method='trust') |
| 1858 | |
| 1859 | self.cluster.add_hba_entry( |
| 1860 | type='hostssl', address=ipaddress.ip_network('::1/128'), |
| 1861 | database='postgres', user='ssl_user', |
| 1862 | auth_method='trust') |
| 1863 | |
| 1864 | async def test_ssl_connection_custom_context(self): |
| 1865 | ssl_context = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT) |
nothing calls this directly
no test coverage detected