org.apache.hive.service.cli.thrift
Class ThriftCLIServiceTest

java.lang.Object
  extended by org.apache.hive.service.cli.thrift.ThriftCLIServiceTest
Direct Known Subclasses:
TestThriftBinaryCLIService, TestThriftHttpCLIService

public abstract class ThriftCLIServiceTest
extends Object

ThriftCLIServiceTest. This is the abstract class that tests ThriftCLIService. Subclass this to test more specific behaviour.


Field Summary
protected static String anonymousPasswd
           
protected static String anonymousUser
           
protected static TCLIService.Client client
           
protected static HiveConf hiveConf
           
protected static HiveServer2 hiveServer2
           
protected static String host
           
protected static int port
           
 
Constructor Summary
ThriftCLIServiceTest()
           
 
Method Summary
protected static org.apache.thrift.transport.TTransport createBinaryTransport()
           
protected static void initClient(org.apache.thrift.transport.TTransport transport)
           
 void setUp()
           
static void setUpBeforeClass()
           
protected static void startHiveServer2WithConf(HiveConf hiveConf)
           
protected static void stopHiveServer2()
           
 void tearDown()
           
static void tearDownAfterClass()
           
 void testDoAs()
          Test setting HiveConf.ConfVars} config parameter HIVE_SERVER2_ENABLE_DOAS for kerberos secure mode
 void testExecuteStatement()
           
 void testGetFunctions()
           
 void testOpenSession()
           
protected  void testOpenSessionExpectedException()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

port

protected static int port

host

protected static String host

hiveServer2

protected static HiveServer2 hiveServer2

client

protected static TCLIService.Client client

hiveConf

protected static HiveConf hiveConf

anonymousUser

protected static String anonymousUser

anonymousPasswd

protected static String anonymousPasswd
Constructor Detail

ThriftCLIServiceTest

public ThriftCLIServiceTest()
Method Detail

setUpBeforeClass

public static void setUpBeforeClass()
                             throws Exception
Throws:
Exception

tearDownAfterClass

public static void tearDownAfterClass()
                               throws Exception
Throws:
Exception

startHiveServer2WithConf

protected static void startHiveServer2WithConf(HiveConf hiveConf)
                                        throws Exception
Throws:
Exception

stopHiveServer2

protected static void stopHiveServer2()
                               throws Exception
Throws:
Exception

createBinaryTransport

protected static org.apache.thrift.transport.TTransport createBinaryTransport()
                                                                       throws Exception
Throws:
Exception

initClient

protected static void initClient(org.apache.thrift.transport.TTransport transport)

testOpenSession

public void testOpenSession()
                     throws Exception
Throws:
Exception

testGetFunctions

public void testGetFunctions()
                      throws Exception
Throws:
Exception

testExecuteStatement

public void testExecuteStatement()
                          throws Exception
Throws:
Exception

testOpenSessionExpectedException

protected void testOpenSessionExpectedException()

testDoAs

public void testDoAs()
              throws HiveSQLException,
                     LoginException,
                     IOException
Test setting HiveConf.ConfVars} config parameter HIVE_SERVER2_ENABLE_DOAS for kerberos secure mode

Throws:
IOException
LoginException
HiveSQLException

setUp

public void setUp()
           throws Exception
Throws:
Exception

tearDown

public void tearDown()
              throws Exception
Throws:
Exception


Copyright © 2012 The Apache Software Foundation