Java Code Examples for org.apache.hadoop.security.ssl.KeyStoreTestUtil#cleanupSSLConfig()

The following examples show how to use org.apache.hadoop.security.ssl.KeyStoreTestUtil#cleanupSSLConfig() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TestTimelineAuthenticationFilter.java    From hadoop with Apache License 2.0 6 votes vote down vote up
@AfterClass
public static void tearDown() throws Exception {
  if (testMiniKDC != null) {
    testMiniKDC.stop();
  }

  if (testTimelineServer != null) {
    testTimelineServer.stop();
  }

  if (withSsl) {
    KeyStoreTestUtil.cleanupSSLConfig(keystoresDir, sslConfDir);
    File base = new File(BASEDIR);
    FileUtil.fullyDelete(base);
  }
}
 
Example 2
Source File: TestTimelineAuthenticationFilter.java    From big-c with Apache License 2.0 6 votes vote down vote up
@AfterClass
public static void tearDown() throws Exception {
  if (testMiniKDC != null) {
    testMiniKDC.stop();
  }

  if (testTimelineServer != null) {
    testTimelineServer.stop();
  }

  if (withSsl) {
    KeyStoreTestUtil.cleanupSSLConfig(keystoresDir, sslConfDir);
    File base = new File(BASEDIR);
    FileUtil.fullyDelete(base);
  }
}
 
Example 3
Source File: TestSSLHttpServer.java    From hadoop with Apache License 2.0 5 votes vote down vote up
@AfterClass
public static void cleanup() throws Exception {
  server.stop();
  FileUtil.fullyDelete(new File(BASEDIR));
  KeyStoreTestUtil.cleanupSSLConfig(keystoresDir, sslConfDir);
  clientSslFactory.destroy();
}
 
Example 4
Source File: TestHttpCookieFlag.java    From big-c with Apache License 2.0 5 votes vote down vote up
@AfterClass
public static void cleanup() throws Exception {
  server.stop();
  FileUtil.fullyDelete(new File(BASEDIR));
  KeyStoreTestUtil.cleanupSSLConfig(keystoresDir, sslConfDir);
  clientSslFactory.destroy();
}
 
Example 5
Source File: TestSSLHttpServer.java    From big-c with Apache License 2.0 5 votes vote down vote up
@AfterClass
public static void cleanup() throws Exception {
  server.stop();
  FileUtil.fullyDelete(new File(BASEDIR));
  KeyStoreTestUtil.cleanupSSLConfig(keystoresDir, sslConfDir);
  clientSslFactory.destroy();
}
 
Example 6
Source File: TestHftpFileSystem.java    From big-c with Apache License 2.0 5 votes vote down vote up
@AfterClass
public static void tearDown() throws Exception {
  if (cluster != null) {
    cluster.shutdown();
  }
  FileUtil.fullyDelete(new File(BASEDIR));
  KeyStoreTestUtil.cleanupSSLConfig(keystoresDir, sslConfDir);
}
 
Example 7
Source File: TestNfs3HttpServer.java    From big-c with Apache License 2.0 5 votes vote down vote up
@AfterClass
public static void tearDown() throws Exception {
  FileUtil.fullyDelete(new File(BASEDIR));
  if (cluster != null) {
    cluster.shutdown();
  }
  KeyStoreTestUtil.cleanupSSLConfig(keystoresDir, sslConfDir);
}
 
Example 8
Source File: TestHttpCookieFlag.java    From hadoop with Apache License 2.0 5 votes vote down vote up
@AfterClass
public static void cleanup() throws Exception {
  server.stop();
  FileUtil.fullyDelete(new File(BASEDIR));
  KeyStoreTestUtil.cleanupSSLConfig(keystoresDir, sslConfDir);
  clientSslFactory.destroy();
}
 
Example 9
Source File: TestHftpFileSystem.java    From hadoop with Apache License 2.0 5 votes vote down vote up
@AfterClass
public static void tearDown() throws Exception {
  if (cluster != null) {
    cluster.shutdown();
  }
  FileUtil.fullyDelete(new File(BASEDIR));
  KeyStoreTestUtil.cleanupSSLConfig(keystoresDir, sslConfDir);
}
 
Example 10
Source File: TestNfs3HttpServer.java    From hadoop with Apache License 2.0 5 votes vote down vote up
@AfterClass
public static void tearDown() throws Exception {
  FileUtil.fullyDelete(new File(BASEDIR));
  if (cluster != null) {
    cluster.shutdown();
  }
  KeyStoreTestUtil.cleanupSSLConfig(keystoresDir, sslConfDir);
}
 
Example 11
Source File: TestNameNodeHttpServer.java    From hadoop with Apache License 2.0 4 votes vote down vote up
@AfterClass
public static void tearDown() throws Exception {
  FileUtil.fullyDelete(new File(BASEDIR));
  KeyStoreTestUtil.cleanupSSLConfig(keystoresDir, sslConfDir);
}
 
Example 12
Source File: TestStorageContainerManagerHttpServer.java    From hadoop-ozone with Apache License 2.0 4 votes vote down vote up
@AfterClass public static void tearDown() throws Exception {
  connectionFactory.destroy();
  FileUtil.fullyDelete(new File(BASEDIR));
  KeyStoreTestUtil.cleanupSSLConfig(keystoresDir, sslConfDir);
}
 
Example 13
Source File: TestHttpsFileSystem.java    From hadoop with Apache License 2.0 4 votes vote down vote up
@AfterClass
public static void tearDown() throws Exception {
  cluster.shutdown();
  FileUtil.fullyDelete(new File(BASEDIR));
  KeyStoreTestUtil.cleanupSSLConfig(keystoresDir, sslConfDir);
}
 
Example 14
Source File: TestEncryptedShuffle.java    From big-c with Apache License 2.0 4 votes vote down vote up
@After
public void cleanUpMiniClusterSpecialConfig() throws Exception {
  new File(classpathDir, "core-site.xml").delete();
  String keystoresDir = new File(BASEDIR).getAbsolutePath();
  KeyStoreTestUtil.cleanupSSLConfig(keystoresDir, classpathDir);
}
 
Example 15
Source File: TestEncryptedShuffle.java    From hadoop with Apache License 2.0 4 votes vote down vote up
@After
public void cleanUpMiniClusterSpecialConfig() throws Exception {
  new File(classpathDir, "core-site.xml").delete();
  String keystoresDir = new File(BASEDIR).getAbsolutePath();
  KeyStoreTestUtil.cleanupSSLConfig(keystoresDir, classpathDir);
}
 
Example 16
Source File: TestHttpsFileSystem.java    From big-c with Apache License 2.0 4 votes vote down vote up
@AfterClass
public static void tearDown() throws Exception {
  cluster.shutdown();
  FileUtil.fullyDelete(new File(BASEDIR));
  KeyStoreTestUtil.cleanupSSLConfig(keystoresDir, sslConfDir);
}
 
Example 17
Source File: TestNameNodeHttpServer.java    From big-c with Apache License 2.0 4 votes vote down vote up
@AfterClass
public static void tearDown() throws Exception {
  FileUtil.fullyDelete(new File(BASEDIR));
  KeyStoreTestUtil.cleanupSSLConfig(keystoresDir, sslConfDir);
}
 
Example 18
Source File: TestOzoneManagerHttpServer.java    From hadoop-ozone with Apache License 2.0 4 votes vote down vote up
@AfterClass public static void tearDown() throws Exception {
  connectionFactory.destroy();
  FileUtil.fullyDelete(new File(BASEDIR));
  KeyStoreTestUtil.cleanupSSLConfig(keystoresDir, sslConfDir);
}
 
Example 19
Source File: TestOzoneTokenIdentifier.java    From hadoop-ozone with Apache License 2.0 4 votes vote down vote up
@AfterClass
static public void cleanUp() throws Exception {
  FileUtil.fullyDelete(base);
  KeyStoreTestUtil.cleanupSSLConfig(KEYSTORES_DIR, sslConfsDir);
}