integration-tests/src/test/java/oracle/kubernetes/operator/utils/Domain.java
private void changeClusterTypeInCreateDomainJobTemplate() throws Exception {

    // change CLUSTER_TYPE to CONFIGURED in create-domain-job-template.yaml for configured cluster
    // as samples only support DYNAMIC cluster

    // domain in image
    if (domainMap.containsKey("customWdtTemplate")) {
      TestUtils.copyFile(
          (String) domainMap.get("customWdtTemplate"),
          resultsDir
              + "/docker-images/OracleWebLogic/samples/"
              + "12213-domain-home-in-image-wdt/simple-topology.yaml");
      ExecResult exec =
          TestUtils.execOrAbortProcess(
              "cat " + resultsDir
                  + "/docker-images/OracleWebLogic/samples/"
                  + "12213-domain-home-in-image-wdt/simple-topology.yaml");
      LoggerHelper.getLocal().log(Level.FINEST, exec.stdout());
    } else if (clusterType.equalsIgnoreCase("CONFIGURED")) {
      // domain on pv
      StringBuffer createDomainJobTemplateFile = new StringBuffer(resultsDir);
      createDomainJobTemplateFile.append(
          "/samples/scripts/create-weblogic-domain/domain-home-on-pv/"
              + "create-domain-job-template.yaml");
      TestUtils.execOrAbortProcess("sed -i -e 's?DYNAMIC?CONFIGURED?g' " + createDomainJobTemplateFile);
    }
  }
/**
   * Option to provide cluster type. Change cluster type in domain template to CONFIGURED or use
   * configured cluster topology if clusterType is CONFIGURED.
   *
   * @throws Exception when errors occured during reading/writing the file or executing the command
   *                   to change the value in create-domain-job-template.yaml
   */
Option to provide cluster type. Change cluster type in domain template to CONFIGURED or use
configured cluster topology if clusterType is CONFIGURED.

@throws Exception when errors occured during reading/writing the file or executing the command
to change the value in create-domain-job-template.yaml
Option to provide cluster type . Change cluster type in domain template to CONFIGURED or use configured cluster topology if clusterType is CONFIGURED . @throws Exception when errors occured during reading / writing the file or executing the command to change the value in create - domain - job - template . yaml
private void changeClusterTypeInCreateDomainJobTemplate() throws Exception {
    if (domainMap.containsKey("customWdtTemplate")) {
      TestUtils.copyFile(
          (String) domainMap.get("customWdtTemplate"),
          resultsDir
              + "/docker-images/OracleWebLogic/samples/"
              + "12213-domain-home-in-image-wdt/simple-topology.yaml");
      ExecResult exec =
          TestUtils.execOrAbortProcess(
              "cat " + resultsDir
                  + "/docker-images/OracleWebLogic/samples/"
                  + "12213-domain-home-in-image-wdt/simple-topology.yaml");
      LoggerHelper.getLocal().log(Level.FINEST, exec.stdout());
    } else if (clusterType.equalsIgnoreCase("CONFIGURED")) {
      StringBuffer createDomainJobTemplateFile = new StringBuffer(resultsDir);
      createDomainJobTemplateFile.append(
          "/samples/scripts/create-weblogic-domain/domain-home-on-pv/"
              + "create-domain-job-template.yaml");
      TestUtils.execOrAbortProcess("sed -i -e 's?DYNAMIC?CONFIGURED?g' " + createDomainJobTemplateFile);
    }
  }
private void changeClusterTypeInCreateDomainJobTemplate ( ) throws Exception { if ( domainMap . containsKey ( "customWdtTemplate" ) ) { TestUtils . copyFile ( ( String ) domainMap . get ( "customWdtTemplate" ) , resultsDir + "/docker-images/OracleWebLogic/samples/" + "12213-domain-home-in-image-wdt/simple-topology.yaml" ) ; ExecResult exec = TestUtils . execOrAbortProcess ( "cat " + resultsDir + "/docker-images/OracleWebLogic/samples/" + "12213-domain-home-in-image-wdt/simple-topology.yaml" ) ; LoggerHelper . getLocal ( ) . log ( Level . FINEST , exec . stdout ( ) ) ; } else if ( clusterType . equalsIgnoreCase ( "CONFIGURED" ) ) { StringBuffer createDomainJobTemplateFile = new StringBuffer ( resultsDir ) ; createDomainJobTemplateFile . append ( "/samples/scripts/create-weblogic-domain/domain-home-on-pv/" + "create-domain-job-template.yaml" ) ; TestUtils . execOrAbortProcess ( "sed -i -e 's?DYNAMIC?CONFIGURED?g' " + createDomainJobTemplateFile ) ; } }
Option to provide cluster type.
Option to provide cluster type .
// change CLUSTER_TYPE to CONFIGURED in create-domain-job-template.yaml for configured cluster // as samples only support DYNAMIC cluster // domain in image // domain on pv