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

Function test_tls_do_get

python/pyarrow/tests/test_flight.py:1751–1760  ·  view source on GitHub ↗

Try a simple do_get call over TLS.

()

Source from the content-addressed store, hash-verified

1749
1750@pytest.mark.requires_testing_data
1751def 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

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