Try a simple do_get call over TLS with server verification disabled.
()
| 1800 | |
| 1801 | @pytest.mark.requires_testing_data |
| 1802 | def test_tls_disable_server_verification(): |
| 1803 | """Try a simple do_get call over TLS with server verification disabled.""" |
| 1804 | table = simple_ints_table() |
| 1805 | certs = example_tls_certs() |
| 1806 | |
| 1807 | with ConstantFlightServer(tls_certificates=certs["certificates"]) as s: |
| 1808 | try: |
| 1809 | client = FlightClient(('localhost', s.port), |
| 1810 | disable_server_verification=True) |
| 1811 | except NotImplementedError: |
| 1812 | pytest.skip('disable_server_verification feature is not available') |
| 1813 | data = client.do_get(flight.Ticket(b'ints')).read_all() |
| 1814 | assert data.equals(table) |
| 1815 | client.close() |
| 1816 | |
| 1817 | |
| 1818 | @pytest.mark.requires_testing_data |
nothing calls this directly
no test coverage detected