Try a simple do_get call over TLS with server verification disabled.
()
| 1762 | |
| 1763 | @pytest.mark.requires_testing_data |
| 1764 | def test_tls_disable_server_verification(): |
| 1765 | """Try a simple do_get call over TLS with server verification disabled.""" |
| 1766 | table = simple_ints_table() |
| 1767 | certs = example_tls_certs() |
| 1768 | |
| 1769 | with ConstantFlightServer(tls_certificates=certs["certificates"]) as s: |
| 1770 | try: |
| 1771 | client = FlightClient(('localhost', s.port), |
| 1772 | disable_server_verification=True) |
| 1773 | except NotImplementedError: |
| 1774 | pytest.skip('disable_server_verification feature is not available') |
| 1775 | data = client.do_get(flight.Ticket(b'ints')).read_all() |
| 1776 | assert data.equals(table) |
| 1777 | client.close() |
| 1778 | |
| 1779 | |
| 1780 | @pytest.mark.requires_testing_data |
nothing calls this directly
no test coverage detected