MCPcopy Create free account
hub / github.com/apache/impala / create_client_protocol_dimension

Function create_client_protocol_dimension

tests/common/test_dimensions.py:174–184  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

172
173
174def create_client_protocol_dimension():
175 pytest_config = ImpalaTestClusterProperties.get_instance().pytest_config()
176 protocols_to_test = [HS2]
177 if ENABLE_BEESWAX and pytest_config.option.default_test_protocol == BEESWAX:
178 protocols_to_test.append(BEESWAX)
179 # IMPALA-8864: Older python versions do not support SSLContext object that the thrift
180 # http client implementation depends on. Otherwise, include HS2_HTTP.
181 import ssl
182 if hasattr(ssl, "create_default_context"):
183 protocols_to_test.append(HS2_HTTP)
184 return ImpalaTestDimension(PROTOCOL, *protocols_to_test)
185
186
187def create_client_protocol_http_transport():

Callers 15

add_test_dimensionsMethod · 0.90
add_test_dimensionsMethod · 0.90
add_test_dimensionsMethod · 0.90
add_test_dimensionsMethod · 0.90
add_test_dimensionsMethod · 0.90
add_test_dimensionsMethod · 0.90
add_test_dimensionsMethod · 0.90
add_test_dimensionsMethod · 0.90
add_test_dimensionsMethod · 0.90
add_test_dimensionsMethod · 0.90
add_test_dimensionsMethod · 0.90
add_test_dimensionsMethod · 0.90

Calls 4

ImpalaTestDimensionClass · 0.90
get_instanceMethod · 0.80
pytest_configMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected