Add a few client tests for HS2

These HiveServer2 client tests (in tests/hs2) are intended to check the
HS2 API implementation in the following ways:

* API tests: Can all the supported API endpoints be called successfully?
* Query lifecycle tests: does calling the API in an unusual sequence
  result in reasonable behaviour?
* Malformed query tests: does sending an incorrectly constructed request
  correctly result in an error?

This patch adds a few simple tests as a starting point for a larger test suite.

Change-Id: I4b926d1639c640317ea3478bdeb0aa4b5a9286ee
Reviewed-on: http://gerrit.ent.cloudera.com:8080/320
Reviewed-by: Lenni Kuff <lskuff@cloudera.com>
Tested-by: jenkins
This commit is contained in:
Henry Robinson
2013-08-23 17:46:11 -07:00
parent cdf93565a6
commit 49eeb8ef2e
2 changed files with 161 additions and 2 deletions

View File

@@ -22,8 +22,8 @@ import pytest
import sys
# We whitelist valid test directories. If a new test directory is added, update this.
VALID_TEST_DIRS = ['failure', 'query_test', 'stress',
'unittests', 'aux_query_tests', 'shell']
VALID_TEST_DIRS = ['failure', 'query_test', 'stress', 'unittests', 'aux_query_tests',
'shell', 'hs2']
TEST_DIR = os.path.join(os.environ['IMPALA_HOME'], 'tests')
TEST_RESULT_DIR = os.path.join(TEST_DIR, 'results')