MCPcopy Create free account
hub / github.com/apache/arrow / test_tls_do_get

Function test_tls_do_get

python/pyarrow/tests/test_flight.py:1789–1798  ·  view source on GitHub ↗

Try a simple do_get call over TLS.

()

Source from the content-addressed store, hash-verified

1787
1788@pytest.mark.requires_testing_data
1789def 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

Callers

nothing calls this directly

Calls 6

FlightClientClass · 0.90
simple_ints_tableFunction · 0.85
example_tls_certsFunction · 0.85
equalsMethod · 0.80
do_getMethod · 0.45

Tested by

no test coverage detected