mirror of
https://github.com/apache/impala.git
synced 2025-12-19 18:12:08 -05:00
IMPALA-13907: Remove reference to create_beeswax_client
This patch replace create_beeswax_client() reference to
create_hs2_client() or vector-based client creation to prepare towards
hs2 test migration.
test_session_expiration_with_queued_query is changed to use impala.dbapi
directly from Impyla due to limitation in ImpylaHS2Connection.
TestAdmissionControllerRawHS2 is migrated to use hs2 as default test
protocol.
Modify test_query_expiration.py to set query option through client
instead of SET query. test_query_expiration is slightly modified due to
behavior difference in hs2 ImpylaHS2Connection.
Remove remaining reference to BeeswaxConnection.QueryState.
Fixed a bug in ImpylaHS2Connection.wait_for_finished_timeout().
Fix some easy flake8 issues caught thorugh this command:
git show HEAD --name-only | grep '^tests.*py' \
| xargs -I {} impala-flake8 {} \
| grep -e U100 -e E111 -e E301 -e E302 -e E303 -e F...
Testing:
- Pass exhaustive tests.
Change-Id: I1d84251835d458cc87fb8fedfc20ee15aae18d51
Reviewed-on: http://gerrit.cloudera.org:8080/22700
Reviewed-by: Riza Suminto <riza.suminto@cloudera.com>
Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
This commit is contained in:
committed by
Impala Public Jenkins
parent
e3a6cb240b
commit
00dc79adf6
@@ -33,6 +33,7 @@ from tests.common.environ import IS_REDHAT_DERIVATIVE
|
||||
from tests.common.custom_cluster_test_suite import CustomClusterTestSuite
|
||||
from tests.common.impala_service import ImpaladService
|
||||
from tests.common.test_dimensions import create_client_protocol_dimension
|
||||
from tests.common.test_vector import BEESWAX
|
||||
from tests.shell.util import run_impala_shell_cmd, run_impala_shell_cmd_no_expect, \
|
||||
ImpalaShell, create_impala_shell_executable_dimension
|
||||
|
||||
@@ -53,6 +54,7 @@ else:
|
||||
SKIP_SSL_MSG = None
|
||||
CERT_DIR = "%s/be/src/testutil" % os.environ['IMPALA_HOME']
|
||||
|
||||
|
||||
class TestClientSsl(CustomClusterTestSuite):
|
||||
"""Tests for a client using SSL (particularly, the Impala Shell) """
|
||||
|
||||
@@ -93,7 +95,6 @@ class TestClientSsl(CustomClusterTestSuite):
|
||||
pytest.skip("Python version does not support tls 1.2")
|
||||
super(TestClientSsl, cls).setup_class()
|
||||
|
||||
|
||||
@pytest.mark.execute_serially
|
||||
@CustomClusterTestSuite.with_args(impalad_args=SSL_ARGS, statestored_args=SSL_ARGS,
|
||||
catalogd_args=SSL_ARGS)
|
||||
@@ -156,7 +157,7 @@ class TestClientSsl(CustomClusterTestSuite):
|
||||
cls.ImpalaTestMatrix.add_dimension(
|
||||
create_impala_shell_executable_dimension(dev_only=True))
|
||||
cls.ImpalaTestMatrix.add_constraint(lambda v:
|
||||
v.get_value('protocol') != 'beeswax')
|
||||
v.get_value('protocol') != BEESWAX)
|
||||
|
||||
@pytest.mark.execute_serially
|
||||
@CustomClusterTestSuite.with_args(impalad_args=WEBSERVER_SSL_ARGS,
|
||||
|
||||
Reference in New Issue
Block a user