Package org.apache.hadoop.hbase.thrift
Class TestThriftSpnegoHttpServer
java.lang.Object
org.apache.hadoop.hbase.thrift.TestThriftHttpServer
org.apache.hadoop.hbase.thrift.TestThriftSpnegoHttpServer
Start the HBase Thrift HTTP server on a random port through the command-line interface and talk
to it from client side with SPNEGO security enabled.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static Fileprivate static Stringprivate static org.apache.kerby.kerberos.kerb.server.SimpleKdcServerprivate static final org.slf4j.Loggerprivate static Fileprivate static Stringprivate static Fileprivate static StringFields inherited from class org.apache.hadoop.hbase.thrift.TestThriftHttpServer
exception, tableCreated, TEST_UTIL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidaddSecurityConfigurations(org.apache.hadoop.conf.Configuration conf) private org.apache.http.impl.client.CloseableHttpClientprotected Supplier<org.apache.hadoop.hbase.thrift.ThriftServer>static voidprotected voidtalkToThriftServer(String url, int customHeaderSize) static voidvoidBlock call through to this method.Methods inherited from class org.apache.hadoop.hbase.thrift.TestThriftHttpServer
runThriftServer, testExceptionThrownWhenMisConfigured, testRunThriftServer
-
Field Details
-
CLASS_RULE
-
LOG
-
kdc
-
serverKeytab
-
spnegoServerKeytab
-
clientKeytab
-
clientPrincipal
-
serverPrincipal
-
spnegoServerPrincipal
-
-
Constructor Details
-
TestThriftSpnegoHttpServer
public TestThriftSpnegoHttpServer()
-
-
Method Details
-
addSecurityConfigurations
-
setUpBeforeClass
- Throws:
Exception
-
getThriftServerSupplier
- Overrides:
getThriftServerSupplierin classTestThriftHttpServer
-
tearDownAfterClass
- Throws:
Exception
-
testRunThriftServerWithHeaderBufferLength
Block call through to this method. It is a messy test that fails because of bad config and then succeeds only the first attempt adds a table which the second attempt doesn't want to be in place to succeed. Let the super impl of this test be responsible for verifying we fail if bad header size.- Overrides:
testRunThriftServerWithHeaderBufferLengthin classTestThriftHttpServer- Throws:
Exception
-
talkToThriftServer
- Overrides:
talkToThriftServerin classTestThriftHttpServer- Throws:
Exception
-
createHttpClient
- Throws:
Exception
-