(cls, pytest_config=None)
| 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): |
no test coverage detected