Try a simple do_get call over TLS.
()
| 1749 | |
| 1750 | @pytest.mark.requires_testing_data |
| 1751 | def test_tls_do_get(): |
| 1752 | """Try a simple do_get call over TLS.""" |
| 1753 | table = simple_ints_table() |
| 1754 | certs = example_tls_certs() |
| 1755 | |
| 1756 | with ConstantFlightServer(tls_certificates=certs["certificates"]) as s, \ |
| 1757 | FlightClient(('localhost', s.port), |
| 1758 | tls_root_certs=certs["root_cert"]) as client: |
| 1759 | data = client.do_get(flight.Ticket(b'ints')).read_all() |
| 1760 | assert data.equals(table) |
| 1761 | |
| 1762 | |
| 1763 | @pytest.mark.requires_testing_data |
nothing calls this directly
no test coverage detected