integration-tests/src/test/java/oracle/kubernetes/operator/MiiBaseTest.java
public Domain createMiiDomainWithConfigMap(String domainUidPrefix,
                                             String domainNS, String wdtModelFile, String wdtModelPropertiesFile,
                                             String cmFile, String wdtDomainType) throws Exception {
    Map<String, Object> domainMap =
        createModelInImageMap(getNewSuffixCount(), domainUidPrefix);
    // config map before deploying domain crd
    String cmName = domainMap.get("domainUID") + "-mii-config-map";

    domainMap.put("namespace", domainNS);
    domainMap.put("wdtModelFile", wdtModelFile);
    domainMap.put("wdtModelPropertiesFile", wdtModelPropertiesFile);
    domainMap.put("wdtDomainType", wdtDomainType);

    domainMap.put("miiConfigMap", cmName);
    domainMap.put("miiConfigMapFileOrDir", cmFile);

    Domain domain = TestUtils.createDomain(domainMap);
    // domain = new Domain(domainMap, true, false);
    domain.verifyDomainCreated();
    return domain;
  }
/**
   * Create domain using model in image.
   * @param domainUidPrefix domain UID prefix
   * @param domainNS domain namespace
   * @param wdtModelFile file should be under test/resouces/model-in-image dir,
   *                     value can be ./model.wls.yaml
   * @param wdtModelPropertiesFile file should be under test/resouces/model-in-image dir,
   *                               value can be ./model.empty.properties
   * @param cmFile creates configmap from this file or dir
   */
Create domain using model in image.
Create domain using model in image .
public Domain createMiiDomainWithConfigMap(String domainUidPrefix,
                                             String domainNS, String wdtModelFile, String wdtModelPropertiesFile,
                                             String cmFile, String wdtDomainType) throws Exception {
    Map<String, Object> domainMap =
        createModelInImageMap(getNewSuffixCount(), domainUidPrefix);
    String cmName = domainMap.get("domainUID") + "-mii-config-map";
    domainMap.put("namespace", domainNS);
    domainMap.put("wdtModelFile", wdtModelFile);
    domainMap.put("wdtModelPropertiesFile", wdtModelPropertiesFile);
    domainMap.put("wdtDomainType", wdtDomainType);
    domainMap.put("miiConfigMap", cmName);
    domainMap.put("miiConfigMapFileOrDir", cmFile);
    Domain domain = TestUtils.createDomain(domainMap);
    domain.verifyDomainCreated();
    return domain;
  }
public Domain createMiiDomainWithConfigMap ( String domainUidPrefix , String domainNS , String wdtModelFile , String wdtModelPropertiesFile , String cmFile , String wdtDomainType ) throws Exception { Map < String , Object > domainMap = createModelInImageMap ( getNewSuffixCount ( ) , domainUidPrefix ) ; String cmName = domainMap . get ( "domainUID" ) + "-mii-config-map" ; domainMap . put ( "namespace" , domainNS ) ; domainMap . put ( "wdtModelFile" , wdtModelFile ) ; domainMap . put ( "wdtModelPropertiesFile" , wdtModelPropertiesFile ) ; domainMap . put ( "wdtDomainType" , wdtDomainType ) ; domainMap . put ( "miiConfigMap" , cmName ) ; domainMap . put ( "miiConfigMapFileOrDir" , cmFile ) ; Domain domain = TestUtils . createDomain ( domainMap ) ; domain . verifyDomainCreated ( ) ; return domain ; }
Create domain using model in image.
Create domain using model in image .
// config map before deploying domain crd // domain = new Domain(domainMap, true, false);