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

Method test_open_session_unsupported_protocol

tests/hs2/test_hs2.py:188–196  ·  view source on GitHub ↗

Test that we get the right protocol version back if we ask for one larger than the server supports. This test will fail as we support newer version of HS2, and should be updated.

(self)

Source from the content-addressed store, hash-verified

186 assert 'in_flight_queries' in queries_json
187
188 def test_open_session_unsupported_protocol(self):
189 """Test that we get the right protocol version back if we ask for one larger than the
190 server supports. This test will fail as we support newer version of HS2, and should be
191 updated."""
192 client_protocol = TCLIService.TProtocolVersion.HIVE_CLI_SERVICE_PROTOCOL_V7
193 with ScopedSession(self.hs2_client, client_protocol=client_protocol) as session:
194 TestHS2.check_response(session)
195 assert session.serverProtocolVersion == \
196 TCLIService.TProtocolVersion.HIVE_CLI_SERVICE_PROTOCOL_V6
197
198 def test_open_session_empty_user(self):
199 """Test that we get the expected errors back if either impala.doas.user is set but

Callers

nothing calls this directly

Calls 2

ScopedSessionFunction · 0.85
check_responseMethod · 0.80

Tested by

no test coverage detected