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)
| 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 |
nothing calls this directly
no test coverage detected