integration-tests/src/test/java/oracle/kubernetes/operator/MiiConfigUpdateBaseTest.java
protected Domain createDomainUsingMii(boolean createDS, String domainNS, String testClassName) {
    final String cmFile = "model.empty.properties";
    String wdtModelFile = "model.wls.yaml";
    String wdtModelPropFile = "model.properties";
    Domain domain = null;

    if (createDS) {
      wdtModelFile = "model.jdbc.image.yaml";
      wdtModelPropFile = "model.jdbc.image.properties";
    }

    StringBuffer paramBuff = new StringBuffer("Creating a Domain with: ");
    paramBuff
        .append("testClassName=")
        .append(testClassName)
        .append(", domainNS=")
        .append(domainNS)
        .append(", wdtModelFile=")
        .append(wdtModelFile)
        .append(", wdtModelPropFile=")
        .append(wdtModelPropFile)
        .append(", cmFile=")
        .append(cmFile)
        .append(", WdtDomainType=")
        .append(WdtDomainType.WLS.geWdtDomainType());

    LoggerHelper.getLocal().log(Level.INFO, "Params used to create domain: " + paramBuff);

    try {
      domain = createMiiDomainWithConfigMap(
        testClassName,
        domainNS,
        wdtModelFile,
        wdtModelPropFile,
        cmFile,
        WdtDomainType.WLS.geWdtDomainType());
    } catch (Exception ex) {
      LoggerHelper.getLocal().log(Level.INFO, "FAILURE: command: "
          + paramBuff
          + " failed \n"
          + ex.getMessage());

      ex.printStackTrace();
    }

    return domain;
  }
/**
   * Create domain using model in image.
   * @param createDS a boolean value to determine whether or not
   *                 to config a JDBC DS when creating domain
   * @param domainNS domain namespace name
   * @param testClassName test class name that calls this method
   */
Create domain using model in image.
@param createDS a boolean value to determine whether or not
to config a JDBC DS when creating domain
@param domainNS domain namespace name
@param testClassName test class name that calls this method
Create domain using model in image . @param createDS a boolean value to determine whether or not to config a JDBC DS when creating domain @param domainNS domain namespace name @param testClassName test class name that calls this method
protected Domain createDomainUsingMii(boolean createDS, String domainNS, String testClassName) {
    final String cmFile = "model.empty.properties";
    String wdtModelFile = "model.wls.yaml";
    String wdtModelPropFile = "model.properties";
    Domain domain = null;
    if (createDS) {
      wdtModelFile = "model.jdbc.image.yaml";
      wdtModelPropFile = "model.jdbc.image.properties";
    }
    StringBuffer paramBuff = new StringBuffer("Creating a Domain with: ");
    paramBuff
        .append("testClassName=")
        .append(testClassName)
        .append(", domainNS=")
        .append(domainNS)
        .append(", wdtModelFile=")
        .append(wdtModelFile)
        .append(", wdtModelPropFile=")
        .append(wdtModelPropFile)
        .append(", cmFile=")
        .append(cmFile)
        .append(", WdtDomainType=")
        .append(WdtDomainType.WLS.geWdtDomainType());
    LoggerHelper.getLocal().log(Level.INFO, "Params used to create domain: " + paramBuff);
    try {
      domain = createMiiDomainWithConfigMap(
        testClassName,
        domainNS,
        wdtModelFile,
        wdtModelPropFile,
        cmFile,
        WdtDomainType.WLS.geWdtDomainType());
    } catch (Exception ex) {
      LoggerHelper.getLocal().log(Level.INFO, "FAILURE: command: "
          + paramBuff
          + " failed \n"
          + ex.getMessage());
      ex.printStackTrace();
    }
    return domain;
  }
protected Domain createDomainUsingMii ( boolean createDS , String domainNS , String testClassName ) { final String cmFile = "model.empty.properties" ; String wdtModelFile = "model.wls.yaml" ; String wdtModelPropFile = "model.properties" ; Domain domain = null ; if ( createDS ) { wdtModelFile = "model.jdbc.image.yaml" ; wdtModelPropFile = "model.jdbc.image.properties" ; } StringBuffer paramBuff = new StringBuffer ( "Creating a Domain with: " ) ; paramBuff . append ( "testClassName=" ) . append ( testClassName ) . append ( ", domainNS=" ) . append ( domainNS ) . append ( ", wdtModelFile=" ) . append ( wdtModelFile ) . append ( ", wdtModelPropFile=" ) . append ( wdtModelPropFile ) . append ( ", cmFile=" ) . append ( cmFile ) . append ( ", WdtDomainType=" ) . append ( WdtDomainType . WLS . geWdtDomainType ( ) ) ; LoggerHelper . getLocal ( ) . log ( Level . INFO , "Params used to create domain: " + paramBuff ) ; try { domain = createMiiDomainWithConfigMap ( testClassName , domainNS , wdtModelFile , wdtModelPropFile , cmFile , WdtDomainType . WLS . geWdtDomainType ( ) ) ; } catch ( Exception ex ) { LoggerHelper . getLocal ( ) . log ( Level . INFO , "FAILURE: command: " + paramBuff + " failed \n" + ex . getMessage ( ) ) ; ex . printStackTrace ( ) ; } return domain ; }
Create domain using model in image.
Create domain using model in image .