public final String getContainerHostAddress() {
    String hostAddress = System.getenv("HIVE_TEST_DOCKER_HOST");
    if (hostAddress != null) {
      return hostAddress;
    } else {
      return "localhost";
    }
  }
Abstract JUnit TestRule for different RDMBS types.
standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/dbinstall/rules/DatabaseRule.java