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

Method create_new_instance

tests/common/environ.py:271–281  ·  view source on GitHub ↗
(cls, pytest_config=None)

Source from the content-addressed store, hash-verified

269
270 @classmethod
271 def create_new_instance(cls, pytest_config=None):
272 web_ui_url = IMPALA_REMOTE_URL or DEFAULT_LOCAL_WEB_UI_URL
273 if IMPALA_REMOTE_URL:
274 # If IMPALA_REMOTE_URL is set, prefer detecting from the web UI.
275 build_flavor, link_type =\
276 ImpalaTestClusterFlagsDetector.detect_using_web_ui(web_ui_url)
277 else:
278 build_flavor, link_type =\
279 ImpalaTestClusterFlagsDetector.detect_using_build_root_or_web_ui(IMPALA_HOME)
280 return ImpalaTestClusterProperties(
281 build_flavor, link_type, web_ui_url, pytest_config=pytest_config)
282
283 @classmethod
284 def get_instance(cls, pytest_config=None):

Callers 2

get_instanceMethod · 0.80
build_flavor_timeoutFunction · 0.80

Tested by

no test coverage detected