integration-tests/src/test/java/oracle/kubernetes/operator/MiiBaseTest.java
public Map<String, Object> createModelInImageMap(
      int suffixCount, String prefix) {
    Map<String, Object> domainMap = createDomainMap(suffixCount, prefix);
    domainMap.put("domainHomeSourceType", "FromModel");
    domainMap.put("domainHomeImageBase",
        getWeblogicImageName() + ":" + getWeblogicImageTag());
    domainMap.put("logHomeOnPV", "true");
    //domainMap.put("wdtDomainType", "WLS");

    // 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() + "-modelinimage:" + currentDateTime);
    } else {
      domainMap.put("image", "modelinimage:" + currentDateTime);
    }
    return domainMap;
  }
/**
   * Creates a map with customized domain input attributes using suffixCount and prefix
   * to make the namespaces and ports unique for model in image.
   *
   * @param suffixCount unique numeric value
   * @param prefix      prefix for the artifact names
   * @return map with domain input attributes
   */
Creates a map with customized domain input attributes using suffixCount and prefix
to make the namespaces and ports unique for model in image.

@param suffixCount unique numeric value
@param prefix      prefix for the artifact names
@return map with domain input attributes
Creates a map with customized domain input attributes using suffixCount and prefix to make the namespaces and ports unique for model in image . @param suffixCount unique numeric value @param prefix prefix for the artifact names @return map with domain input attributes
public Map<String, Object> createModelInImageMap(
      int suffixCount, String prefix) {
    Map<String, Object> domainMap = createDomainMap(suffixCount, prefix);
    domainMap.put("domainHomeSourceType", "FromModel");
    domainMap.put("domainHomeImageBase",
        getWeblogicImageName() + ":" + getWeblogicImageTag());
    domainMap.put("logHomeOnPV", "true");
    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() + "-modelinimage:" + currentDateTime);
    } else {
      domainMap.put("image", "modelinimage:" + currentDateTime);
    }
    return domainMap;
  }
public Map < String , Object > createModelInImageMap ( int suffixCount , String prefix ) { Map < String , Object > domainMap = createDomainMap ( suffixCount , prefix ) ; domainMap . put ( "domainHomeSourceType" , "FromModel" ) ; domainMap . put ( "domainHomeImageBase" , getWeblogicImageName ( ) + ":" + getWeblogicImageTag ( ) ) ; domainMap . put ( "logHomeOnPV" , "true" ) ; 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 ( ) + "-modelinimage:" + currentDateTime ) ; } else { domainMap . put ( "image" , "modelinimage:" + currentDateTime ) ; } return domainMap ; }
Creates a map with customized domain input attributes using suffixCount and prefix
 to make the namespaces and ports unique for model in image.
Creates a map with customized domain input attributes using suffixCount and prefix to make the namespaces and ports unique for model in image .
//domainMap.put("wdtDomainType", "WLS"); // To get unique image name