Try a simple do_get call over TLS.
()
| 1787 | |
| 1788 | @pytest.mark.requires_testing_data |
| 1789 | def test_tls_do_get(): |
| 1790 | """Try a simple do_get call over TLS.""" |
| 1791 | table = simple_ints_table() |
| 1792 | certs = example_tls_certs() |
| 1793 | |
| 1794 | with ConstantFlightServer(tls_certificates=certs["certificates"]) as s, \ |
| 1795 | FlightClient(('localhost', s.port), |
| 1796 | tls_root_certs=certs["root_cert"]) as client: |
| 1797 | data = client.do_get(flight.Ticket(b'ints')).read_all() |
| 1798 | assert data.equals(table) |
| 1799 | |
| 1800 | |
| 1801 | @pytest.mark.requires_testing_data |
nothing calls this directly
no test coverage detected