@Ignore("HIVE-19509: Disable tests that are failing continuously")
  @Test
  public void testSSLFetchHttp() throws Exception {
    SSLTestUtils.setSslConfOverlay(confOverlay);
    // Test in http mode
    SSLTestUtils.setHttpConfOverlay(confOverlay);
    miniHS2.start(confOverlay);

    String tableName = "sslTab";
    Path dataFilePath = new Path(dataFileDir, "kv1.txt");

    // make SSL connection
    hs2Conn = DriverManager.getConnection(miniHS2.getJdbcURL("default", SSLTestUtils.SSL_CONN_PARAMS),
        System.getProperty("user.name"), "bar");

    // Set up test data
    SSLTestUtils.setupTestTableWithData(tableName, dataFilePath, hs2Conn);
    Statement stmt = hs2Conn.createStatement();
    ResultSet res = stmt.executeQuery("SELECT * FROM " + tableName);
    int rowCount = 0;
    while (res.next()) {
      ++rowCount;
      assertEquals("val_" + res.getInt(1), res.getString(2));
    }
    // read result over SSL
    assertEquals(500, rowCount);

    hs2Conn.close();
  }
Start HS2 in Http mode with SSL enabled, open a SSL connection and fetch data
@throws Exception
itests/hive-unit/src/test/java/org/apache/hive/jdbc/TestSSL.java