integration-tests/src/test/java/oracle/kubernetes/operator/BaseTest.java
public Map<String, Object> createDomainInImageMap(
      int suffixCount, boolean wdt, String prefix) {
    Map<String, Object> domainMap = createDomainMap(suffixCount, prefix);
    if (wdt) {
      domainMap.put("domainHomeImageBuildPath",
          "./docker-images/OracleWebLogic/samples/12213-domain-home-in-image-wdt");
      domainMap.put("createDomainFilesDir", "wdt");
    } else {
      domainMap.put("domainHomeImageBuildPath",
          "./docker-images/OracleWebLogic/samples/12213-domain-home-in-image");
    }
    domainMap.put("domainHomeImageBase", weblogicImageName + ":" + weblogicImageTag);
    domainMap.put("logHomeOnPV", "true");
    domainMap.put("clusterType", "CONFIGURED");

    // To get unique image name
    DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
    Date date = new Date();
    String currentDateTime = dateFormat.format(date) + "-" + System.currentTimeMillis();

    if (prefix != null && !prefix.trim().equals("")) {
      domainMap.put("image", prefix.toLowerCase() + "-dominimage:" + currentDateTime);
    } else {
      domainMap.put("image", "dominimage:" + currentDateTime);
    }
    return domainMap;
  }
/**
   * Creates a map with commonly used domain in image input attributes using suffixCount and prefix
   * to make the namespaces and ports unique.
   *
   * @param suffixCount unique numeric value
   * @param prefix      prefix for the artifact names
   * @return map with domain input attributes
   */
Creates a map with commonly used domain in image input attributes using suffixCount and prefix
to make the namespaces and ports unique.

@param suffixCount unique numeric value
@param prefix      prefix for the artifact names
@return map with domain input attributes
Creates a map with commonly used domain in image input attributes using suffixCount and prefix to make the namespaces and ports unique . @param suffixCount unique numeric value @param prefix prefix for the artifact names @return map with domain input attributes
public Map<String, Object> createDomainInImageMap(
      int suffixCount, boolean wdt, String prefix) {
    Map<String, Object> domainMap = createDomainMap(suffixCount, prefix);
    if (wdt) {
      domainMap.put("domainHomeImageBuildPath",
          "./docker-images/OracleWebLogic/samples/12213-domain-home-in-image-wdt");
      domainMap.put("createDomainFilesDir", "wdt");
    } else {
      domainMap.put("domainHomeImageBuildPath",
          "./docker-images/OracleWebLogic/samples/12213-domain-home-in-image");
    }
    domainMap.put("domainHomeImageBase", weblogicImageName + ":" + weblogicImageTag);
    domainMap.put("logHomeOnPV", "true");
    domainMap.put("clusterType", "CONFIGURED");
    DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
    Date date = new Date();
    String currentDateTime = dateFormat.format(date) + "-" + System.currentTimeMillis();
    if (prefix != null && !prefix.trim().equals("")) {
      domainMap.put("image", prefix.toLowerCase() + "-dominimage:" + currentDateTime);
    } else {
      domainMap.put("image", "dominimage:" + currentDateTime);
    }
    return domainMap;
  }
public Map < String , Object > createDomainInImageMap ( int suffixCount , boolean wdt , String prefix ) { Map < String , Object > domainMap = createDomainMap ( suffixCount , prefix ) ; if ( wdt ) { domainMap . put ( "domainHomeImageBuildPath" , "./docker-images/OracleWebLogic/samples/12213-domain-home-in-image-wdt" ) ; domainMap . put ( "createDomainFilesDir" , "wdt" ) ; } else { domainMap . put ( "domainHomeImageBuildPath" , "./docker-images/OracleWebLogic/samples/12213-domain-home-in-image" ) ; } domainMap . put ( "domainHomeImageBase" , weblogicImageName + ":" + weblogicImageTag ) ; domainMap . put ( "logHomeOnPV" , "true" ) ; domainMap . put ( "clusterType" , "CONFIGURED" ) ; DateFormat dateFormat = new SimpleDateFormat ( "yyyy-MM-dd" ) ; Date date = new Date ( ) ; String currentDateTime = dateFormat . format ( date ) + "-" + System . currentTimeMillis ( ) ; if ( prefix != null && ! prefix . trim ( ) . equals ( "" ) ) { domainMap . put ( "image" , prefix . toLowerCase ( ) + "-dominimage:" + currentDateTime ) ; } else { domainMap . put ( "image" , "dominimage:" + currentDateTime ) ; } return domainMap ; }
Creates a map with commonly used domain in image input attributes using suffixCount and prefix
 to make the namespaces and ports unique.
Creates a map with commonly used domain in image input attributes using suffixCount and prefix to make the namespaces and ports unique .
// To get unique image name