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

Function example_tls_certs

python/pyarrow/tests/test_flight.py:95–109  ·  view source on GitHub ↗

Get the paths to test TLS certificates.

()

Source from the content-addressed store, hash-verified

93
94
95def example_tls_certs():
96 """Get the paths to test TLS certificates."""
97 return {
98 "root_cert": read_flight_resource("root-ca.pem"),
99 "certificates": [
100 flight.CertKeyPair(
101 cert=read_flight_resource("cert0.pem"),
102 key=read_flight_resource("cert0.key"),
103 ),
104 flight.CertKeyPair(
105 cert=read_flight_resource("cert1.pem"),
106 key=read_flight_resource("cert1.key"),
107 ),
108 ]
109 }
110
111
112def simple_ints_table():

Callers 6

test_tls_failsFunction · 0.85
test_tls_do_getFunction · 0.85
test_mtlsFunction · 0.85
test_generic_optionsFunction · 0.85

Calls 1

read_flight_resourceFunction · 0.85

Tested by

no test coverage detected