integration-tests/src/test/java/oracle/kubernetes/operator/utils/Domain.java
private String prepareCmdToCallCreateDomainScript(String outputDir) {

    StringBuffer createDomainScriptCmd = new StringBuffer("export WDT_VERSION=");
    createDomainScriptCmd.append(BaseTest.WDT_VERSION).append(" && ")
        .append(resultsDir);
    // call different create-domain.sh based on the domain type
    if (domainHomeSourceType.equals("FromModel")) {
      createDomainScriptCmd
          .append(
              "/samples/model-in-image/create-domain.sh -u ")
          .append(BaseTest.getUsername())
          .append(" -p ")
          .append(BaseTest.getPassword())
          .append(" -i ");
    } else if (domainMap.containsKey("domainHomeImageBase")) {
      createDomainScriptCmd
          .append(
              "/samples/scripts/create-weblogic-domain/domain-home-in-image/create-domain.sh -u ")
          .append(BaseTest.getUsername())
          .append(" -p ")
          .append(BaseTest.getPassword())
          .append(" -k -i ");
    } else if (domainMap.containsKey("rcuDatabaseURL")) {
      createDomainScriptCmd.append(
          "/samples/scripts/create-fmw-infrastructure-domain/"
              + "domain-home-on-pv/create-domain.sh -v -i ");
    } else {
      createDomainScriptCmd.append(
          "/samples/scripts/create-weblogic-domain/domain-home-on-pv/create-domain.sh -v -i ");
    }
    createDomainScriptCmd.append(generatedInputYamlFile);

    // skip executing yaml if configOverrides or domain in image
    if (!domainMap.containsKey("configOverrides")
        && !domainMap.containsKey("domainHomeImageBase")
        && !domainMap.containsKey("shutdownOptionsOverrides")
        && createDomainResource) {
      createDomainScriptCmd.append(" -e ");
    }

    createDomainScriptCmd.append(" -o ").append(outputDir);
    return createDomainScriptCmd.toString();
  }
/**
   * Prepare the command to call create-domain.sh based on the domain type.
   *
   * @param outputDir directory for the generated Kubernetes YAML files for the domain when
   *                  create-domain.sh is called
   * @return the command
   */
Prepare the command to call create-domain.sh based on the domain type.
@param outputDir directory for the generated Kubernetes YAML files for the domain when
create-domain.sh is called
@return the command
Prepare the command to call create - domain . sh based on the domain type . @param outputDir directory for the generated Kubernetes YAML files for the domain when create - domain . sh is called @return the command
private String prepareCmdToCallCreateDomainScript(String outputDir) {
    StringBuffer createDomainScriptCmd = new StringBuffer("export WDT_VERSION=");
    createDomainScriptCmd.append(BaseTest.WDT_VERSION).append(" && ")
        .append(resultsDir);
    if (domainHomeSourceType.equals("FromModel")) {
      createDomainScriptCmd
          .append(
              "/samples/model-in-image/create-domain.sh -u ")
          .append(BaseTest.getUsername())
          .append(" -p ")
          .append(BaseTest.getPassword())
          .append(" -i ");
    } else if (domainMap.containsKey("domainHomeImageBase")) {
      createDomainScriptCmd
          .append(
              "/samples/scripts/create-weblogic-domain/domain-home-in-image/create-domain.sh -u ")
          .append(BaseTest.getUsername())
          .append(" -p ")
          .append(BaseTest.getPassword())
          .append(" -k -i ");
    } else if (domainMap.containsKey("rcuDatabaseURL")) {
      createDomainScriptCmd.append(
          "/samples/scripts/create-fmw-infrastructure-domain/"
              + "domain-home-on-pv/create-domain.sh -v -i ");
    } else {
      createDomainScriptCmd.append(
          "/samples/scripts/create-weblogic-domain/domain-home-on-pv/create-domain.sh -v -i ");
    }
    createDomainScriptCmd.append(generatedInputYamlFile);
    if (!domainMap.containsKey("configOverrides")
        && !domainMap.containsKey("domainHomeImageBase")
        && !domainMap.containsKey("shutdownOptionsOverrides")
        && createDomainResource) {
      createDomainScriptCmd.append(" -e ");
    }
    createDomainScriptCmd.append(" -o ").append(outputDir);
    return createDomainScriptCmd.toString();
  }
private String prepareCmdToCallCreateDomainScript ( String outputDir ) { StringBuffer createDomainScriptCmd = new StringBuffer ( "export WDT_VERSION=" ) ; createDomainScriptCmd . append ( BaseTest . WDT_VERSION ) . append ( " && " ) . append ( resultsDir ) ; if ( domainHomeSourceType . equals ( "FromModel" ) ) { createDomainScriptCmd . append ( "/samples/model-in-image/create-domain.sh -u " ) . append ( BaseTest . getUsername ( ) ) . append ( " -p " ) . append ( BaseTest . getPassword ( ) ) . append ( " -i " ) ; } else if ( domainMap . containsKey ( "domainHomeImageBase" ) ) { createDomainScriptCmd . append ( "/samples/scripts/create-weblogic-domain/domain-home-in-image/create-domain.sh -u " ) . append ( BaseTest . getUsername ( ) ) . append ( " -p " ) . append ( BaseTest . getPassword ( ) ) . append ( " -k -i " ) ; } else if ( domainMap . containsKey ( "rcuDatabaseURL" ) ) { createDomainScriptCmd . append ( "/samples/scripts/create-fmw-infrastructure-domain/" + "domain-home-on-pv/create-domain.sh -v -i " ) ; } else { createDomainScriptCmd . append ( "/samples/scripts/create-weblogic-domain/domain-home-on-pv/create-domain.sh -v -i " ) ; } createDomainScriptCmd . append ( generatedInputYamlFile ) ; if ( ! domainMap . containsKey ( "configOverrides" ) && ! domainMap . containsKey ( "domainHomeImageBase" ) && ! domainMap . containsKey ( "shutdownOptionsOverrides" ) && createDomainResource ) { createDomainScriptCmd . append ( " -e " ) ; } createDomainScriptCmd . append ( " -o " ) . append ( outputDir ) ; return createDomainScriptCmd . toString ( ) ; }
Prepare the command to call create-domain.sh based on the domain type.
Prepare the command to call create - domain . sh based on the domain type .
// call different create-domain.sh based on the domain type // skip executing yaml if configOverrides or domain in image