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
Modifier and TypeFieldDescriptionprivate static URL
static final HBaseClassTestRule
private static org.apache.hadoop.security.ssl.SSLFactory
private static HBaseCommonTestingUtility
private static File
private static final org.slf4j.Logger
private static org.apache.hadoop.hbase.http.HttpServer
private static org.apache.hadoop.conf.Configuration
private static String
Fields inherited from class org.apache.hadoop.hbase.http.HttpServerFunctionalTest
TEST_BUILD_WEBAPPS
-
Constructor Summary
-
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:
IOException
GeneralSecurityException
-
readOut
- Throws:
Exception
-