Riza Suminto has uploaded this change for review. ( http://gerrit.cloudera.org:8080/22336
Change subject: IMPALA-13668: Add default_test_protocol parameter to py.test ...................................................................... IMPALA-13668: Add default_test_protocol parameter to py.test ImpalaTestSuite.client is always initialized as beeswax client. And many tests use it directly rather than going through helper method such as execute_query(). This patch add add default_test_protocol parameter to conftest.py. It control whether to initialize ImpalaTestSuite.client equals to 'beeswax_client', 'hs2_client', or 'hs2_http_client'. This parameter is still default to 'beeswax'. This patch also adds helper method 'default_client_protocol_dimension', 'beeswax_client_protocol_dimension' and 'hs2_client_protocol_dimension' for convenience and traceability. Reduced occurrence where test method manually override ImpalaTestSuite.client. They are replaced by combination of ImpalaTestSuite.create_impala_clients and ImpalaTestSuite.close_impala_clients. Testing: - Pass core tests. Change-Id: I9165ea220b2c83ca36d6e68ef3b88b128310af23 --- M tests/common/impala_test_suite.py M tests/common/test_dimensions.py M tests/conftest.py M tests/custom_cluster/test_coordinators.py M tests/custom_cluster/test_parquet_max_page_header.py M tests/custom_cluster/test_partition.py M tests/custom_cluster/test_permanent_udfs.py M tests/custom_cluster/test_workload_mgmt_init.py 8 files changed, 63 insertions(+), 31 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/36/22336/1 -- To view, visit http://gerrit.cloudera.org:8080/22336 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I9165ea220b2c83ca36d6e68ef3b88b128310af23 Gerrit-Change-Number: 22336 Gerrit-PatchSet: 1 Gerrit-Owner: Riza Suminto <[email protected]>
