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

Function test_tls_disable_server_verification

python/pyarrow/tests/test_flight.py:1764–1777  ·  view source on GitHub ↗

Try a simple do_get call over TLS with server verification disabled.

()

Source from the content-addressed store, hash-verified

1762
1763@pytest.mark.requires_testing_data
1764def 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

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected