Package org.apache.hadoop.hbase.http
Class TestSSLHttpServer
java.lang.Object
org.apache.hadoop.hbase.http.HttpServerFunctionalTest
org.apache.hadoop.hbase.http.TestSSLHttpServer
This testcase issues SSL certificates configures the HttpServer to serve HTTPS using the created
certficates and calls an echo servlet using the corresponding HTTPS URL.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static URLstatic final HBaseClassTestRuleprivate static org.apache.hadoop.security.ssl.SSLFactoryprivate static HBaseCommonTestingUtilityprivate static Fileprivate static final org.slf4j.Loggerprivate static org.apache.hadoop.hbase.http.HttpServerprivate static org.apache.hadoop.conf.Configurationprivate static StringFields inherited from class org.apache.hadoop.hbase.http.HttpServerFunctionalTest
TEST_BUILD_WEBAPPS -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.hadoop.hbase.http.HttpServerFunctionalTest
access, createAndStartTestServer, createServer, createServer, createServer, createServer, createServer, createTestServer, createTestServer, createTestServer, createTestServer, createTestServerWithSecurity, createTestServerWithSecurityAndAcl, deleteRecursively, getFreePort, getServerURL, prepareTestWebapp, readOutput, stop
-
Field Details
-
CLASS_RULE
-
LOG
-
serverConf
-
server
-
baseUrl
-
keystoresDir
-
sslConfDir
-
clientSslFactory
-
HTU
-
-
Constructor Details
-
TestSSLHttpServer
public TestSSLHttpServer()
-
-
Method Details
-
setup
- Throws:
Exception
-
cleanup
- Throws:
Exception
-
testEcho
- Throws:
Exception
-
testSecurityHeaders
- Throws:
IOExceptionGeneralSecurityException
-
readOut
- Throws:
Exception
-