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:1802–1815  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

1800
1801@pytest.mark.requires_testing_data
1802def test_tls_disable_server_verification():
1803 """Try a simple do_get call over TLS with server verification disabled."""
1804 table = simple_ints_table()
1805 certs = example_tls_certs()
1806
1807 with ConstantFlightServer(tls_certificates=certs["certificates"]) as s:
1808 try:
1809 client = FlightClient(('localhost', s.port),
1810 disable_server_verification=True)
1811 except NotImplementedError:
1812 pytest.skip('disable_server_verification feature is not available')
1813 data = client.do_get(flight.Ticket(b'ints')).read_all()
1814 assert data.equals(table)
1815 client.close()
1816
1817
1818@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