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

Function example_tls_certs

python/pyarrow/tests/test_flight.py:97–111  ·  view source on GitHub ↗

Get the paths to test TLS certificates.

()

Source from the content-addressed store, hash-verified

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