Package org.apache.hadoop.hbase.thrift
Class TestThriftSpnegoHttpFallbackServer
java.lang.Object
org.apache.hadoop.hbase.thrift.TestThriftHttpServer
org.apache.hadoop.hbase.thrift.TestThriftSpnegoHttpFallbackServer
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. Supplemental test to
TestThriftSpnegoHttpServer which falls back to the original Kerberos principal and keytab
configuration properties, not the separate SPNEGO-specific properties.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static File
private static String
private static org.apache.kerby.kerberos.kerb.server.SimpleKdcServer
private static final org.slf4j.Logger
private static File
private static String
private static String
Fields inherited from class org.apache.hadoop.hbase.thrift.TestThriftHttpServer
exception, tableCreated, TEST_UTIL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static void
addSecurityConfigurations
(org.apache.hadoop.conf.Configuration conf) private org.apache.http.impl.client.CloseableHttpClient
protected Supplier<org.apache.hadoop.hbase.thrift.ThriftServer>
static void
protected void
talkToThriftServer
(String url, int customHeaderSize) static void
void
Block 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
-
clientKeytab
-
clientPrincipal
-
serverPrincipal
-
spnegoServerPrincipal
-
-
Constructor Details
-
TestThriftSpnegoHttpFallbackServer
public TestThriftSpnegoHttpFallbackServer()
-
-
Method Details
-
addSecurityConfigurations
-
setUpBeforeClass
- Throws:
Exception
-
tearDownAfterClass
- Throws:
Exception
-
talkToThriftServer
- Overrides:
talkToThriftServer
in classTestThriftHttpServer
- Throws:
Exception
-
createHttpClient
- Throws:
Exception
-
getThriftServerSupplier
- Overrides:
getThriftServerSupplier
in classTestThriftHttpServer
-
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:
testRunThriftServerWithHeaderBufferLength
in classTestThriftHttpServer
- Throws:
Exception
-